react-native-plaid-link-sdk: Plaid fails to launch on Android 7.0.0
The problem
On android 7.0.0, launching plaid SDK fails to start and crashes the app. Not observable on latest android.
Environment
| Plaid Link React Native | 7.1.0 |
| ReactNative Version | 0.64.2 |
| Occurs on Android | Yes |
| Android OS Version | 7.0.0 (24) |
| Android Devices/Emulators | Pixel 4 |
| Occurs on iOS | No |
| iOS Version | N/A |
| iOS Devices/Emulators | N/A |
Steps to Reproduce
- Run plaid using
openLink. - Observe the app crashes.
Expected Result
Plaid SDK launches
Logs
java.lang.NoClassDefFoundError: Failed resolution of: Ljava/lang/invoke/MethodHandles$Lookup;
at retrofit2.Platform.<init>(Platform.java:62)
at retrofit2.Platform$Android.<init>(Platform.java:115)
at retrofit2.Platform.findPlatform(Platform.java:44)
at retrofit2.Platform.<clinit>(Platform.java:34)
at retrofit2.Platform.get(Platform.java:37)
at retrofit2.Retrofit$Builder.<init>(Retrofit.java:430)
at com.plaid.internal.m.a(SourceFile:8)
at com.plaid.internal.m2.get(SourceFile:33)
at dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
at com.plaid.internal.e1.d(SourceFile:1)
at com.plaid.internal.d1$k0.get(SourceFile:1)
at dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
at com.plaid.internal.h4.a(SourceFile:50)
at com.plaid.internal.h4.c(SourceFile:243)
at com.plaid.internal.d4.a(SourceFile:13)
at com.plaid.internal.d4$d.invokeSuspend(SourceFile:-1)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Method.java:-2)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)
Caused by: java.lang.ClassNotFoundException: Didn't find class "java.lang.invoke.MethodHandles$Lookup" on path: DexPathList[[zip file "/data/app/{REDACTED}/base.apk"],nativeLibraryDirectories=[/data/app/{REDACTED}/lib/x86, /data/app/{REDACTED}/base.apk!/lib/x86, /system/lib, /vendor/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at retrofit2.Platform.<init>(Platform.java:62)
at retrofit2.Platform$Android.<init>(Platform.java:115)
at retrofit2.Platform.findPlatform(Platform.java:44)
at retrofit2.Platform.<clinit>(Platform.java:34)
at retrofit2.Platform.get(Platform.java:37)
at retrofit2.Retrofit$Builder.<init>(Retrofit.java:430)
at com.plaid.internal.m.a(SourceFile:8)
at com.plaid.internal.m2.get(SourceFile:33)
at dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
at com.plaid.internal.e1.d(SourceFile:1)
at com.plaid.internal.d1$k0.get(SourceFile:1)
at dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
at com.plaid.internal.h4.a(SourceFile:50)
at com.plaid.internal.h4.c(SourceFile:243)
at com.plaid.internal.d4.a(SourceFile:13)
at com.plaid.internal.d4$d.invokeSuspend(SourceFile:-1)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Method.java:-2)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 7
- Comments: 18 (4 by maintainers)
Still reproduced on Android 7.0.0
I have the same issue
Following up here, after adding
implementation "com.squareup.retrofit2:retrofit:2.9.0"to the build.gradle file and upgrading react-native-plaid-sdk to 7.2.0, plaid launches, but it is stuck on the loader indefinitely. Again, this is on android api 24/25. Later versions of android do not have this issue.I have the same problem(
same problem ( does anyone have a solution?
I have the same problem
I also have the same issue(
The same issue =/
Looks like it gets stuck in an infinite loop (it goes on like this forever)