Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AXFlurryEventRecordStatus cannot be resolved to a type #19

Closed
udirub opened this issue Aug 21, 2015 · 11 comments
Closed

AXFlurryEventRecordStatus cannot be resolved to a type #19

udirub opened this issue Aug 21, 2015 · 11 comments

Comments

@udirub
Copy link

udirub commented Aug 21, 2015

I just downloaded the newest version and I started getting this error in AnalyticXBridge.java.
This error is also present when I load the supplied example project.
I tried to find the AXFlurryEventRecordStatus in the code but I could only find it for C++ in the header file.
Where is the AXFlurryEventRecordStatus definition for Java?

@jmgomezg
Copy link

Hi, I'm getting the same issue, any news?

@haxpor
Copy link
Contributor

haxpor commented Nov 18, 2015

@udirub Those types introduced in Flurry, and I'm the one who added it in iOS. I don't think Android code catches up with it. Someone might contribute to Android for this.

@diwu
Copy link
Owner

diwu commented Nov 18, 2015

If anyone could fix this issue, please submit a pull request. Many thanks.

@jmgomezg
Copy link

On the C++ side we have a typedef defined on the AnaliticX.h

typedef enum {
AXFlurryEventFailed = 0,
AXFlurryEventRecorded,
AXFlurryEventUniqueCountExceeded,
AXFlurryEventParamsCountExceeded,
AXFlurryEventLogCountExceeded,
AXFlurryEventLoggingDelayed
} AXFlurryEventRecordStatus;

But I'm not sure what to do on the Java side, I tried to recreate the typedef but the returns funcions are falling to cast.

@jmgomezg
Copy link

If it helps, I managed to get the AnalyticXBridge.java file to compile, I downloaded latest Flurry Android SDK, replace the FlurryAgen.jar with the FlurryAnalytics-6.2.0.jar (or whatever version is), on the AnalyticXBridge.java rename AXFlurryEventRecordStatus to FlurryEventRecordStatus, and be sure we import all package:
import com.flurry.android.*;

But then I get a run time error:
JNI DETECTED ERROR IN APPLICATION: the return type of CallStaticIntMethodV does not match void com.diwublog.AnalyticX.AnalyticXBridge.Bridge(java.lang.String, java.lang.String, java.lang.String)'

Will keep you guys updated with my progress.

@jmgomezg
Copy link

I have pushed some changes to make this work on Android.

@diwu
Copy link
Owner

diwu commented Nov 26, 2015

Hi all, if @jmgomezg 's pull request has fixed the issue, please let me know and I'll close the issue.

@haxpor
Copy link
Contributor

haxpor commented Nov 26, 2015

I have no android dev environment with me right now, so if you guys think it's cool, please go ahead :) 👍

@jmgomezg
Copy link

Sorry let me do some more checks, now I'm not 100% sure yet it's logging the events properly. I will confirm.

El 26 nov 2015, a las 6:29, Wasin Thonkaew notifications@github.com escribió:

I have no android dev environment with me right now, so if you guys think it's cool, please go ahead :)


Reply to this email directly or view it on GitHub.

@jmgomezg
Copy link

Ok all working, Flurry was just taking a while to log the events. All good now, I have an android app working nicely with Android.

El 26 nov 2015, a las 6:29, Wasin Thonkaew notifications@github.com escribió:

I have no android dev environment with me right now, so if you guys think it's cool, please go ahead :)


Reply to this email directly or view it on GitHub.

@diwu
Copy link
Owner

diwu commented Nov 26, 2015

Cool I'll close it for now. Let me know if the issue persists.

@diwu diwu closed this as completed Nov 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants