Android Studioでアプリを作成してビルドまでは上手く行ったのですが、
アプリが起動されてすぐ、「問題が発生したため、アプリ名を終了します。」
と表示されて画面が閉じられてしまいます。
ちなみに「アプリ名」は「アンドロイドアプリ名」です。
どこをどう調査して修正したらいいのかわからず困っています。
「Android Monitor」でのログを表示致します。
log
109-26 10:40:13.990 12811-12811/org.test.myapplication.App2 E/AndroidRuntime: FATAL EXCEPTION: main 2 3Process: org.test.myapplication.App2, PID: 12811 4java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{org.test.myapplication.App2/org.test.myapplication.App2.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "org.test.myapplication.App2.MainActivity" on path: DexPathList[[zip file "/data/app/org.test.myapplication.App2-2/base.apk", zip file "/data/app/org.test.myapplication.App2-2/split_lib_dependencies_apk.apk", zip file "/data/app/org.test.myapplication.App2-2/split_lib_slice_0_apk.apk", zip file "/data/app/org.test.myapplication.App2-2/split_lib_slice_1_apk.apk", zip file "/data/app/org.test.myapplication.App2-2/split_lib_slice_2_apk.apk", zip file "/data/app/org.test.myapplication.App2-2/split_lib_slice_3_apk.apk", zip file "/data/app/org.test.myapplication.App2-2/split_lib_slice_4_apk.apk", zip file "/data/app/org.test.myapplication.App2-2/split_lib_slice_5_apk.apk", zip file "/data/app/org.test.myapplication.App2-2/split_lib_slice_6_apk.apk", zip file "/data/app/org.test.myapplication.App2-2/split_lib_slice_7_apk.apk", zip file "/data/app/org.test.myapplication.App2-2/split_lib_slice_8_apk.apk", zip file "/data/app/org.test.myapplication.App2-2/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/vendor/lib64, /system/lib64]] 5at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2310) 6at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2464) 7at android.app.ActivityThread.access$1000(ActivityThread.java:161) 8at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1371) 9at android.os.Handler.dispatchMessage(Handler.java:102) 10at android.os.Looper.loop(Looper.java:135) 11at android.app.ActivityThread.main(ActivityThread.java:5438) 12at java.lang.reflect.Method.invoke(Native Method) 13at java.lang.reflect.Method.invoke(Method.java:372) 14at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:917) 15at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:712) 16Caused by: java.lang.ClassNotFoundException: Didn't find class "org.test.myapplication.App2.MainActivity" on path: DexPathList[[zip file "/data/app/org.test.myapplication.App2-2/base.apk", zip file "/data/app/org.test.myapplication.App2-2/split_lib_dependencies_apk.apk", zip file "/data/app/org.test.myapplication.App2-2/split_lib_slice_0_apk.apk", zip file "/data/app/org.test.myapplication.App2-2/split_lib_slice_1_apk.apk", zip file "/data/app/org.test.myapplication.App2-2/split_lib_slice_2_apk.apk", zip file "/data/app/org.test.myapplication.App2-2/split_lib_slice_3_apk.apk", zip file "/data/app/org.test.myapplication.App2-2/split_lib_slice_4_apk.apk", zip file "/data/app/org.test.myapplication.App2-2/split_lib_slice_5_apk.apk", zip file "/data/app/org.test.myapplication.App2-2/split_lib_slice_6_apk.apk", zip file "/data/app/org.test.myapplication.App2-2/split_lib_slice_7_apk.apk", zip file "/data/app/org.test.myapplication.App2-2/split_lib_slice_8_apk.apk", zip file "/data/app/org.test.myapplication.App2-2/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/vendor/lib64, /system/lib64]] 17at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) 18at java.lang.ClassLoader.loadClass(ClassLoader.java:511) 19at java.lang.ClassLoader.loadClass(ClassLoader.java:469) 20at android.app.Instrumentation.newActivity(Instrumentation.java:1065) 21at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2300) 22at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2464)? 23at android.app.ActivityThread.access$1000(ActivityThread.java:161)? 24at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1371)? 25at android.os.Handler.dispatchMessage(Handler.java:102)? 26at android.os.Looper.loop(Looper.java:135)? 27at android.app.ActivityThread.main(ActivityThread.java:5438)? 28at java.lang.reflect.Method.invoke(Native Method)? 29at java.lang.reflect.Method.invoke(Method.java:372)? 30at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:917)? 31at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:712)? 32Suppressed: java.lang.ClassNotFoundException: org.test.myapplication.App2.MainActivity 33at java.lang.Class.classForName(Native Method) 34at java.lang.BootClassLoader.findClass(ClassLoader.java:781) 35at java.lang.BootClassLoader.loadClass(ClassLoader.java:841) 36at java.lang.ClassLoader.loadClass(ClassLoader.java:504) 37... 13 more 38Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
宜しくお願いします。
回答2件
あなたの回答
tips
プレビュー