appsflyer-react-native-plugin icon indicating copy to clipboard operation
appsflyer-react-native-plugin copied to clipboard

java.lang.IllegalAccessException

Open dnvarun opened this issue 2 years ago • 14 comments

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

dnvarun avatar Apr 25 '23 05:04 dnvarun

@dnvarun do you still see this exception?

amit-kremer93 avatar May 31 '23 07:05 amit-kremer93

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

renanbronchart avatar Jun 05 '23 20:06 renanbronchart

Capture d’écran 2023-06-05 à 22 52 57

renanbronchart avatar Jun 05 '23 20:06 renanbronchart

@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?

renanbronchart avatar Jun 07 '23 07:06 renanbronchart

@amit-kremer93 yes we still see it

dnvarun avatar Jun 09 '23 06:06 dnvarun

We're seeing this too.

sregg avatar Jun 09 '23 14:06 sregg

Any update on this?

dnvarun avatar Jul 12 '23 10:07 dnvarun

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

lhreska avatar Jul 21 '23 09:07 lhreska

@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 ?

aditya-keri-betterhalf avatar Jul 26 '23 08:07 aditya-keri-betterhalf

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

amit-kremer93 avatar Jul 26 '23 08:07 amit-kremer93

@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.

aditya-keri-betterhalf avatar Jul 26 '23 08:07 aditya-keri-betterhalf

No. it contains 6.12.1

amit-kremer93 avatar Jul 26 '23 13:07 amit-kremer93

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

aditya-keri-betterhalf avatar Jul 26 '23 13:07 aditya-keri-betterhalf

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

DevenHurt avatar Aug 03 '23 02:08 DevenHurt