android启动应用java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack tra
2017-12-23 13:54
549 查看
在android studio 点击RUN运行应用APP,可以正常运行,但是将生成有APK,用adb install到系统,提示APP已经安装成功
但是运行应用就提示**应用已经停止运行,看log发现如下的信息
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.tct.weather.provider.WeatherContentProvider"
java.lang.RuntimeException: Unable to get provider com.tct.weather.provider.WeatherContentProvider: java.lang.ClassNotFoundException: Didn't find class "com.tct.weat
明明已经安装了应用为会什么会找不到类?同时android studio 点击RUN是可以正常运行的,APP没什么问题,后续查找资料,找到了原因:
在Android Studio 2.3 或者更高版本,有个 Instant
Run 的操作影响到了我们的代码,需要disable
Disable
File -> Settings -> Build, Execution, Deployment -> Instant Run
但是运行应用就提示**应用已经停止运行,看log发现如下的信息
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.tct.weather.provider.WeatherContentProvider"
java.lang.RuntimeException: Unable to get provider com.tct.weather.provider.WeatherContentProvider: java.lang.ClassNotFoundException: Didn't find class "com.tct.weat
明明已经安装了应用为会什么会找不到类?同时android studio 点击RUN是可以正常运行的,APP没什么问题,后续查找资料,找到了原因:
在Android Studio 2.3 或者更高版本,有个 Instant
Run 的操作影响到了我们的代码,需要disable
Disable
Instant Run 的方法如下:
File -> Settings -> Build, Execution, Deployment -> Instant Run
相关文章推荐
- android启动应用java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack tra
- Android -- java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
- Android异常汇集----3.java.lang.NoClassDefFoundError: Class not found using the boot class
- Class not found using the boot class loader; no stack available
- Android studio异常Class not found using the boot class loader; no stack available
- android studio 错误:Class not found using the boot class loader; no stack available
- Eclipse启动报错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- 启动maven项目报错:java.lang.ClassNotFoundException: ContextLoaderListener解决方法
- maven项目 启动报错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- maven项目 启动报错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- Tomcat启动报错“java.lang.ClassNotFoundException: org.apache.catalina.loader.DevLoader”
- 启动报错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- maven项目 启动报错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- 【Exception】java.lang.ClassNotFoundException: android.view.fragment in loader dalvik.system.PathClass
- 已经加载了类库,还是报错启动报错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderList
- 启动报错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- 启动报错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- maven项目 启动报错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- Fragment:java.lang.ClassNotFoundException: android.view.fragment in loader dalvik.system.PathClassLo
- javaweb启动java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener