AppsFlyerSDK / appsflyer-react-native-plugin

AppsFlyer plugin for React Native
MIT License
279 stars 199 forks source link

java.lang.IllegalAccessException #464

Open dnvarun opened 1 year ago

dnvarun commented 1 year ago

Report

Plugin Version

6.9.4

On what Platform are you having the issue?

android

What did you do?

Called appsFlyer.logEvent

What did you expect to happen?

Event to be logged successfully

What happened instead?

logEvent failed and called error callback with the following stack trace

Fatal Exception: java.lang.Error: java.lang.IllegalAccessException: Class java.lang.Class<java.lang.reflect.Method> cannot access protected  method java.lang.Class com.appsflyer.internal.AFa1zSDK$$.loadClass(java.lang.String, boolean) of class java.lang.Class<com.appsflyer.internal.AFa1zSDK$$>
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1168)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
       at java.lang.Thread.run(Thread.java:764)

Caused by java.lang.IllegalAccessException: Class java.lang.Class<java.lang.reflect.Method> cannot access protected  method java.lang.Class com.appsflyer.internal.AFa1zSDK$$.loadClass(java.lang.String, boolean) of class java.lang.Class<com.appsflyer.internal.AFa1zSDK$$>
       at java.lang.reflect.Method.invokeImpl(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:411)
       at com.appsflyer.internal.AFa1zSDK$$.valueOf(:100)
       at com.appsflyer.internal.AFa1zSDK$$.AFKeystoreWrapper(:20)
       at java.lang.reflect.Method.invokeImpl(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:411)
       at com.appsflyer.internal.AFa1wSDK.values(:125)
       at com.appsflyer.internal.AFc1vSDK.AFKeystoreWrapper(:143)
       at com.appsflyer.internal.AFd1rSDK.AFKeystoreWrapper(:65)
       at com.appsflyer.internal.AFd1vSDK.values(:113)
       at com.appsflyer.internal.AFc1gSDK$1.run(:109)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
       at java.lang.Thread.run(Thread.java:764)

Please provide any other relevant information.

Till now noticed this issue on Android 8.1.0

amit-kremer93 commented 1 year ago

@dnvarun do you still see this exception?

renanbronchart commented 1 year ago

I have the same error, 5% of my users.

renanbronchart commented 1 year ago
Capture d’écran 2023-06-05 à 22 52 57
renanbronchart commented 1 year ago

@dnvarun do you still see this exception?

Yes this exception is still present on production and it's a dealbreaker because it's a fatal error for my customers. Please can you help us on this exception?

dnvarun commented 1 year ago

@amit-kremer93 yes we still see it

sregg commented 1 year ago

We're seeing this too.

dnvarun commented 1 year ago

Any update on this?

lhreska commented 1 year ago

https://github.com/AppsFlyerSDK/appsflyer-android-app/issues/20#issuecomment-1644473907 seems that the fix will come at the next week

aditya-keri-betterhalf commented 1 year ago

@lhreska That fix will come to Android SDK first. But this react-native-appsflyer package is still at 6.10.3. It's lagging behind by 5 versions.

Can someone from the dev team please respond regarding a tentative timeline for this fix for react native ?

amit-kremer93 commented 1 year ago

@aditya-keri-betterhalf new version is going to be released in the next few days

aditya-keri-betterhalf commented 1 year ago

@amit-kremer93 Could you please confirm if this new version is going to be 6.12.2 ? Because that's the one containing the fix for this issue.

amit-kremer93 commented 1 year ago

No. it contains 6.12.1

aditya-keri-betterhalf commented 1 year ago

@amit-kremer93 Thank you for replying again. Any tentative timeline on releasing 6.12.2 so that we can get rid of this issue ?

DevenHurt commented 1 year ago

I'm having this issue as well. It looks like I can't upgrade to 6.12.2 yet.