Java Question Library Compiler Turorial Error

lymey

Active Member
Licensed User
Longtime User
Hi,
I have finally decided to take the plunge and learn how to create libraries. I downloaded the compiler, and got the FirstLib library to compile and work
However, when I try the 'Flurry' example, I get the following compiler error message:
Starting step: Compiling Java code.
javac 1.7.0_45
C:\Users\PR\Documents\B4J\LibraryCompiler\SimpleLibraryCompiler\Flurry\src\anywheresoftware\b4a\objects\FlurryAgentWrapper.java:22: error: cannot find symbol
FlurryAgent.onStartSession(ba.context, ApiKey);
^
symbol: variable context
location: variable ba of type BA
1 error


Error.

Can anyone that is more enlightened help?
:)
 

Daestrum

Expert
Licensed User
Longtime User
Have you got Flurry Analytics on your machine?
 

lymey

Active Member
Licensed User
Longtime User
Have you got Flurry Analytics on your machine?

Yes I do! Realised that FlurryAgent.jar doesn't exist any longer in the SDK - I just did some digging on the Flurry site and under the support area: http://support.flurry.com/index.php?title=Analytics/Code/ReleaseNotes/Android I noticed that they no longer use the FlurryAgent name. They have changed the SDK:
Version 3.2.1 - 06/21/2013
  1. Changed the jar file name from FlurryAgent.jar to Flurry_<ReleaseVersion>.jar
and also:
Version 3.2.0 - 04/04/2013
  1. Moved advertising API from FlurryAgent to FlurryAds. Please check the migration notes for more details and build instructions

So that could explain the error. However what part of the SDK is the example using - is it now Flurry Ads? How should the example/tutorial FlurryAgentWrapper.java be amended?

I will keep playing with it, but it's all new to me!
 

lymey

Active Member
Licensed User
Longtime User
The flurry wrapper was just an example to demonstrate the Simple Library Compiler tool.
Hi Erel, I understand.
Is there another Tutorial that involves wrapping an SDK? It would greatly help my understanding if there was a working example.

- I am looking at trying to create a library that wraps Smack for XMPP.
 

birnesoft

Active Member
Licensed User
Longtime User
Top