简体   繁体   中英

Flurry Analytics Integration Errors

After I successfully integrated flurry SDK into the library by using this code in my build.gradle file.

compile 'com.flurry.android:analytics:6.2.0'

I created java Class to integrate my API Key into my code, but I faced this probleme and I have no clue what should I do to successfully integrate it

-cannot resolve symbol FlurryAgent

-cannot resolve symbol flurrylistener

错误图片

PS: I'm new to Flurry analytics and Android Studio

For now just remove the withListener() line. It's not necessary to initialize Flurry. Once you have your integration working, you can go back and set it up if you want, I've found it only to be necessary if you need to send events before Flurry completes initialization.

Flurry is working to get this corrected. Joel Duggan is correct the listener is "only necessary if you need to send events before Flurry completes initialization."

We will be removing this line of code from the basic instructions:

.withListener(flurryListener)

And here is the correct syntax for those who need it:

import com.flurry.android.FlurryAgentListener;

....

FlurryAgent.Builder() .withLogEnabled(true) .withListener(new FlurryAgentListener() { @Override public void onSessionStarted() { // Session handling code } }) .build(this, 'your_api_key');

I was facing same problem, I have updated gradle and my problem is solved. Use latest gradle as follows,

//Flurry compile 'com.flurry.android:analytics:7.0.0@aar'

for more reference use this url

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM