android 4.x无法启动。点击app就直接死掉。错误日志在帖子里面。求大神指点



  • 08-12 01:15:30.647 2264-2264/com.demotest E/AndroidRuntime: FATAL EXCEPTION: main
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.demotest/com.demotest.MainActivity}: java.lang.RuntimeException: Requested enabled DevSupportManager, but DevSupportManagerImpl class was not found or could not be created
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
    at android.app.ActivityThread.access$600(ActivityThread.java:130)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:4745)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
    at dalvik.system.NativeStart.main(Native Method)
    Caused by: java.lang.RuntimeException: Requested enabled DevSupportManager, but DevSupportManagerImpl class was not found or could not be created
    at com.facebook.react.devsupport.DevSupportManagerFactory.create(DevSupportManagerFactory.java:84)
    at com.facebook.react.ReactInstanceManager.<init>(ReactInstanceManager.java:240)
    at com.facebook.react.ReactInstanceManagerBuilder.build(ReactInstanceManagerBuilder.java:248)
    at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:84)
    at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:41)
    at com.facebook.react.ReactActivityDelegate.loadApp(ReactActivityDelegate.java:111)
    at com.facebook.react.ReactActivityDelegate.onCreate(ReactActivityDelegate.java:100)
    at com.facebook.react.ReactActivity.onCreate(ReactActivity.java:54)
    at com.demotest.MainActivity.onCreate(MainActivity.java:21)
    at android.app.Activity.performCreate(Activity.java:5008)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
    at cn.jiguang.a.a.d.a.a.d.callActivityOnCreate(Unknown Source)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084) 
    at android.app.ActivityThread.access$600(ActivityThread.java:130) 
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195) 
    at android.os.Handler.dispatchMessage(Handler.java:99) 
    at android.os.Looper.loop(Looper.java:137) 
    at android.app.ActivityThread.main(ActivityThread.java:4745) 
    at java.lang.reflect.Method.invokeNative(Native Method) 
    at java.lang.reflect.Method.invoke(Method.java:511) 
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) 
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) 
    at dalvik.system.NativeStart.main(Native Method) 
    Caused by: java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Constructor.constructNative(Native Method)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
    at com.facebook.react.devsupport.DevSupportManagerFactory.create(DevSupportManagerFactory.java:76)
    at com.facebook.react.ReactInstanceManager.<init>(ReactInstanceManager.java:240) 
    at com.facebook.react.ReactInstanceManagerBuilder.build(ReactInstanceManagerBuilder.java:248) 
    at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:84) 
    at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:41) 
    at com.facebook.react.ReactActivityDelegate.loadApp(ReactActivityDelegate.java:111) 
    at com.facebook.react.ReactActivityDelegate.onCreate(ReactActivityDelegate.java:100) 
    at com.facebook.react.ReactActivity.onCreate(ReactActivity.java:54) 
    at com.demotest.MainActivity.onCreate(MainActivity.java:21) 
    at android.app.Activity.performCreate(Activity.java:5008) 
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079) 
    at cn.jiguang.a.a.d.a.a.d.callActivityOnCreate(Unknown Source) 
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023) 
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084) 
    at android.app.ActivityThread.access$600(ActivityThread.java:130) 
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195) 
    at android.os.Handler.dispatchMessage(Handler.java:99) 
    at android.os.Looper.loop(Looper.java:137) 
    at android.app.ActivityThread.main(ActivityThread.java:4745) 
    at java.lang.reflect.Method.invokeNative(Native Method) 
    at java.lang.reflect.Method.invoke(Method.java:511) 
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) 
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) 
    at dalvik.system.NativeStart.main(Native Method) 
    Caused by: java.lang.NoClassDefFoundError: com.facebook.react.R$layout
    at com.facebook.react.devsupport.DevLoadingViewController.<init>(DevLoadingViewController.java:51)
    at com.facebook.react.devsupport.DevSupportManagerImpl.<init>(DevSupportManagerImpl.java:235)
    at java.lang.reflect.Constructor.constructNative(Native Method) 
    at java.lang.reflect.Constructor.newInstance(Constructor.java:417) 
    at com.facebook.react.devsupport.DevSupportManagerFactory.create(DevSupportManagerFactory.java:76) 
    at com.facebook.react.ReactInstanceManager.<init>(ReactInstanceManager.java:240) 
    at com.facebook.react.ReactInstanceManagerBuilder.build(ReactInstanceManagerBuilder.java:248) 
    at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:84) 
    at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:41) 
    at com.facebook.react.ReactActivityDelegate.loadApp(ReactActivityDelegate.java:111) 
    at com.facebook.react.ReactActivityDelegate.onCreate(ReactActivityDelegate.java:100) 
    at com.facebook.react.ReactActivity.onCreate(ReactActivity.java:54) 
    at com.demotest.MainActivity.onCreate(MainActivity.java:21) 
    at android.app.Activity.performCreate(Activity.java:5008) 
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079) 
    at cn.jiguang.a.a.d.a.a.d.callActivityOnCreate(Unknown Source) 
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023) 
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084) 
    at android.app.ActivityThread.access$600(ActivityThread.java:130) 
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195) 
    at android.os.Handler.dispatchMessage(Handler.java:99) 
    at android.os.Looper.loop(Looper.java:137) 
    at android.app.ActivityThread.main(ActivityThread.java:4745) 
    at java.lang.reflect.Method.invokeNative(Native Method) 
    at java.lang.reflect.Method.invoke(Method.java:511) 
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) 
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) 
    at dalvik.system.NativeStart.main(Native Method)



  • 楼主解决没?我今天也碰到了、研究了一天了。没找到原因


登录后回复