在Kitkat上安装Crash Lifecycle Components

时间:2017-11-09 12:11:59

标签: java android

  

流程:android.ul.com.ulinappchatdemo,PID:2840                                                                                 java.lang.RuntimeException:无法获取提供者   android.arch.lifecycle.ProcessLifecycleOwnerInitializer:   java.lang.ClassNotFoundException:没找到类   " android.arch.lifecycle.ProcessLifecycleOwnerInitializer"在路径上:   DexPathList [[zip文件   " /data/app/android.ul.com.demo-1.apk"],nativeLibraryDirectories = [/ data / app-lib / android.ul.com.demo-1,/ vendor / lib, /系统/ lib中]]                                                                                     在   android.app.ActivityThread.installProvider(ActivityThread.java:4793)

     

引起:java.lang.ClassNotFoundException:没找到类   " android.arch.lifecycle.ProcessLifecycleOwnerInitializer"在路径上:   DexPathList [[zip文件   " /data/app/android.ul.com.demo-1.apk"],nativeLibraryDirectories = [/ data / app-lib / android.ul.com.demo-1,/ vendor / lib, /系统/ lib中]]                                                                                     在   dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)                                                                                     at java.lang.ClassLoader.loadClass(ClassLoader.java:497)                                                                                     在java.lang.ClassLoader.loadClass(ClassLoader.java:457)

1 个答案:

答案 0 :(得分:3)

你有没有尝试过构建 - >清洁?

您的错误是ClassNotFoundException,因此您提供的上下文不足,假设您的项目适用于其他API级别,请尝试清理并构建以查看是否清除缓存。