You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After npx @react-native-community/cli@latest init DetoxTest3 got React Native version 0.75.3 then install dependencies and finally run project on android.
The app will open and close immediately.
Doing the same process with ReactNative 0.75.2 causes no issues.
Any clue on how to fix this ?
FATAL EXCEPTION: main
Process: com.detoxtest3, PID: 14033
java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/startup/R$string;
at androidx.startup.AppInitializer.discoverAndInitialize(AppInitializer.java:216)
at androidx.startup.AppInitializer.discoverAndInitialize(AppInitializer.java:206)
at androidx.startup.InitializationProvider.onCreate(InitializationProvider.java:45)
at android.content.ContentProvider.attachInfo(ContentProvider.java:2644)
at android.content.ContentProvider.attachInfo(ContentProvider.java:2613)
at android.app.ActivityThread.installProvider(ActivityThread.java:8292)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:7807)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7488)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2416)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loopOnce(Looper.java:232)
at android.os.Looper.loop(Looper.java:317)
at android.app.ActivityThread.main(ActivityThread.java:8705)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:886)
Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.startup.R$string" on path: DexPathList[[zip file "/data/app/~~C1pgfbus2jLxxbDbs15rDA==/com.detoxtest3-pCtxp66TvB3RdwMepKmkqA==/base.apk"],nativeLibraryDirectories=[/data/app/~~C1pgfbus2jLxxbDbs15rDA==/com.detoxtest3-pCtxp66TvB3RdwMepKmkqA==/lib/arm64, /data/app/~~C1pgfbus2jLxxbDbs15rDA==/com.detoxtest3-pCtxp66TvB3RdwMepKmkqA==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
at java.lang.ClassLoader.loadClass(ClassLoader.java:637)
at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
... 17 more
Description
After
npx @react-native-community/cli@latest init DetoxTest3
got React Native version0.75.3
then install dependencies and finally run project on android.The app will open and close immediately.
Doing the same process with ReactNative
0.75.2
causes no issues.Any clue on how to fix this ?
Steps to reproduce
React Native Version
0.75.3
Affected Platforms
Runtime - Android
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/jorgtz/detoxtest3
Screenshots and Videos
Screen.Recording.2024-09-19.at.4.42.35.p.m.mov
The text was updated successfully, but these errors were encountered: