首页 > 代码库 > Class not found using the boot class loader; no stack trace available

Class not found using the boot class loader; no stack trace available

<style>p.p1 { margin: 0.0px 0.0px 15.0px 0.0px; line-height: 17.0px; font: 15.0px "PingFang SC"; color: #242729 } p.p2 { margin: 0.0px 0.0px 15.0px 0.0px; line-height: 17.0px; font: 13.0px Menlo; color: #242729 } p.p3 { margin: 0.0px 0.0px 15.0px 0.0px; line-height: 17.0px; font: 15.0px Arial; color: #242729 } span.s1 { } span.s2 { font: 15.0px Arial } span.s3 { font: 15.0px "PingFang SC" } span.s4 { background-color: #eff0f1 }</style>

Android Studio 2.3 及以上版本,关闭 Instant Run即可

关闭 Instant Run

File -> Settings -> Build, Execution, Deployment -> Instant Run

 

错误代码如下:

at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 12 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available

Class not found using the boot class loader; no stack trace available