Question :
I’m developing a nice project and I came across a difficulty that I could not get out yesterday, the project stopped recognizing all api’s, butterknife, YouTube, everything …
The following is the error:
NoClassDefFoundError: Class not found using the boot loader class; at the
stack available
Didn't find class "com.fasterxml.jackson.databind.ObjectMapper" on path: DexPathList[[zip file "/data/app/br.com.dev_sirox.bandmember-2/base.apk", zip file "/data/app/br.com.dev_sirox.bandmember-2/split_lib_dependencies_apk.apk", zip file "/data/app/br.com.dev_sirox.bandmember-2/split_lib_slice_0_apk.apk", zip file "/data/app/br.com.dev_sirox.bandmember-2/split_lib_slice_1_apk.apk", zip file "/data/app/br.com.dev_sirox.bandmember-2/split_lib_slice_2_apk.apk", zip file "/data/app/br.com.dev_sirox.bandmember-2/split_lib_slice_3_apk.apk", zip file "/data/app/br.com.dev_sirox.bandmember-2/split_lib_slice_4_apk.apk", zip file "/data/app/br.com.dev_sirox.bandmember-2/split_lib_slice_5_apk.apk", zip file "/data/app/br.com.dev_sirox.bandmember-2/split_lib_slice_6_apk.apk", zip file "/data/app/br.com.dev_sirox.bandmember-2/split_lib_slice_7_apk.apk", zip file "/data/app/br.com.dev_sirox.bandmember-2/split_lib_slice_8_apk.apk", zip file "/data/app/br.com.dev_sirox.bandmember-2/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
Answer :
Does your error show which line it breaks on?
One of the answers below can help you solve your problem.
1- Try “Clean” and “Sync Project with Gradle Files”. Run your project
2- Your package in manifest.xml and its MainActivity may be different.
3- Disable Instant Run