在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
原文:http://www.cnblogs.com/nybz/p/6942218.html