AppsFlyerSDK / appsflyer-cordova-plugin

AppsFlyer plugin for Cordova
MIT License
37 stars 71 forks source link

"Didn't find class "com.appsflyer.AppsFlyerLib" error was reported after upgraded to version 6.2.3 #159

Closed zengjie-android closed 3 years ago

zengjie-android commented 3 years ago

I need to upgraded appsflyer sdk to version 6.2.3 and got this error: AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.appsflyer.AppsFlyerLib" on path: DexPathList[[zip file "/data/app/~~FvFWLvnrVtldkS2_TMEW8g==/com.uxin.live.overseas-FBcwFccULnUTK2Px3ww7kw==/base.apk"],nativeLibraryDirectories=...

my code is below. build.gradle: dependencies { implementation 'com.appsflyer:af-android-sdk:6.2.3' implementation 'com.android.installreferrer:installreferrer:1.0' }

proguard.cfg: -dontwarn com.android.installreferrer -keep class com.appsflyer.* { ; }

and the initialization part is the same as the official recommendation.Now I have no solution to the problem,so I will be very grateful for any help!

amit-kremer93 commented 3 years ago

@zengjie-android thank you for opening this issue. did you upgrade from earlier sdk version? if yes, which version?