gpt4 book ai didi

javascript - java.lang.RuntimeException : Requested enabled DevSupportManager, 但未找到或无法创建 DevSupportManagerImpl 类

转载 作者:行者123 更新时间:2023-12-01 17:17:51 25 4
gpt4 key购买 nike

在 React-Native 中创建应用程序后,我将第三方组件导入 Android。在将这个在 Android 应用程序上运行的组件集成到 React-Native 中的应用程序之后,它给了我这个错误:

2020-03-30 10:07:49.005 13979-13979/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.smartsign, PID: 13979
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.smartsign/com.smartsign.MainActivity}: java.lang.RuntimeException: Requested enabled DevSupportManager, but DevSupportManagerImpl class was not found or could not be created
...
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.facebook.react.devsupport.DevSupportManagerImpl" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.smartsign-LPgTscLKBMEXk1VohB6_Lw==/base.apk"],nativeLibraryDirectories=[/data/app/com.smartsign-LPgTscLKBMEXk1VohB6_Lw==/lib/x86, /data/app/com.smartsign-LPgTscLKBMEXk1VohB6_Lw==/base.apk!/lib/x86, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at java.lang.Class.classForName(Native Method) 
at java.lang.Class.forName(Class.java:453) 
at java.lang.Class.forName(Class.java:378) 
at com.facebook.react.devsupport.DevSupportManagerFactory.create(DevSupportManagerFactory.java:67) 
at com.facebook.react.ReactInstanceManager.<init>(ReactInstanceManager.java:231) 
at com.facebook.react.ReactInstanceManagerBuilder.build(ReactInstanceManagerBuilder.java:275) 
at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:86) 
at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:38) 
at com.facebook.react.ReactDelegate.loadApp(ReactDelegate.java:103) 
at com.facebook.react.ReactActivityDelegate.loadApp(ReactActivityDelegate.java:88) 
at com.facebook.react.ReactActivityDelegate.onCreate(ReactActivityDelegate.java:83) 
at com.facebook.react.ReactActivity.onCreate(ReactActivity.java:44) 
at android.app.Activity.performCreate(Activity.java:7136) 
at android.app.Activity.performCreate(Activity.java:7127) 
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271) 
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2893) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3048) 
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78) 
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108) 
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808) 
at android.os.Handler.dispatchMessage(Handler.java:106) 
at android.os.Looper.loop(Looper.java:193) 
at android.app.ActivityThread.main(ActivityThread.java:6669) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) 

我该如何解决它以启动当它打开时立即崩溃的应用程序?

最佳答案

这样做将解决 app/build.gradle 中的问题

implementation 'com.squareup.okhttp3:okhttp:4.9.0' 

关于javascript - java.lang.RuntimeException : Requested enabled DevSupportManager, 但未找到或无法创建 DevSupportManagerImpl 类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60926425/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com