我的应用程序仅在低于20 api级别时崩溃
错误日志
E/Android Runtime: FATAL EXCEPTION: main
Process: docbooking.armino.bill_app_demo_24bit_static, PID: 1935
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{docbooking.armino.bill_app_demo_24bit_static/docbooking.armino.bill_app_demo.Splash_Screen}: java.lang.ClassNotFoundException: Didn't find class "docbooking.armino.bill_app_demo.Splash_Screen" on path: DexPathList[[zip file "/data/app/docbooking.armino.bill_app_demo_24bit_static-2.apk"],nativeLibraryDirectories=[/data/app-lib/docbooking.armino.bill_app_demo_24bit_static-2, /vendor/lib, /system/lib]]
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2264)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2401)
at android.app.ActivityThread.access$800(ActivityThread.java:151)
app运行于19<版本。
答案 0 :(得分:0)
这种情况正在发生,因为您的项目和库中有不同版本 android支持库,检查library's gradle
文件中的版本并添加与您的app's gradle
相同的版本。这应该可以解决问题
或者您可以尝试在项目的build.gradle中添加它
compile 'com.android.support:appcompat-v7:24.2.1'