我得到了这个我无法找到的奇怪的错误。我的应用程序完美适用于其他设备与棒棒糖和棉花糖。但是Android 4.4上的崩溃了,每台设备都安装了Android 4.4。
这里是错误日志:
@PropertySource(name="prodPropertiesFile", value="classpath:/WEB-INF/config/prod.properties")
public class ProdConfig {
}
我已经尝试重命名错误中涉及的类。
我也尝试从FATAL EXCEPTION: main
Process: se.itmaskinen.android.nativemint.saco16, PID: 3371
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{se.itmaskinen.android.nativemint.saco16/se.itmaskinen.android.nativemint.leadingage.Activity_Init2}: java.lang.ClassNotFoundException: Didn't find class "se.itmaskinen.android.nativemint.leadingage.Activity_Init2" on path: DexPathList[[zip file "/system/framework/com.google.android.maps.jar", zip file "/data/app/se.itmaskinen.android.nativemint.saco16-2.apk"],nativeLibraryDirectories=[/data/app-lib/se.itmaskinen.android.nativemint.saco16-2, /vendor/lib, /system/lib]]
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2121)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
Caused by: java.lang.ClassNotFoundException: Didn't find class "se.itmaskinen.android.nativemint.leadingage.Activity_Init2" on path: DexPathList[[zip file "/system/framework/com.google.android.maps.jar", zip file "/data/app/se.itmaskinen.android.nativemint.saco16-2.apk"],nativeLibraryDirectories=[/data/app-lib/se.itmaskinen.android.nativemint.saco16-2, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2112)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
Suppressed: java.lang.ClassNotFoundException: se.itmaskinen.android.nativemint.leadingage.Activity_Init2
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 "Lse/itmaskinen/android/nativemint/leadingage/Activity_Init2;" not found
... 16 more
11-10 22:40:56.056 2309-2546/system_process W/ActivityManager: Force finishing activity se.itmaskinen.android.nativemint.saco16/se.itmaskinen.android.nativemint.leadingage.Activity_Init2
更改为complete.package.name.leadingage.Activity_Init2
我也尝试过清理和建造项目MILLION TIMES。
请帮忙。谢谢!
我正在使用.Activity_Init2
,buildToolsVersion '25'
和Android Studio版本2.2.2,Gradle 2.14.1
答案 0 :(得分:0)
您应该检查您的armeabi文件夹。 该崩溃是由您的手机CPU与您的
不匹配引起的