Closed7

android-room-with-a-view-kotlin を流す

tkttkt
E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.tktcorporation.roomwithaview, PID: 13629
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.tktcorporation.roomwithaview/com.tktcorporation.roomwithaview.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.tktcorporation.roomwithaview.MainActivity" on path: DexPathList[[zip file "/data/app/~~tOGVruhjwh79fy_WuOwELg==/com.tktcorporation.roomwithaview-UtOwl0dNu8K4wJktEaHTqA==/base.apk"],nativeLibraryDirectories=[/data/app/~~tOGVruhjwh79fy_WuOwELg==/com.tktcorporation.roomwithaview-UtOwl0dNu8K4wJktEaHTqA==/lib/arm64, /system/lib64, /system_ext/lib64]]
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3365)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601)
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:223)
        at android.app.ActivityThread.main(ActivityThread.java:7656)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
     Caused by: java.lang.ClassNotFoundException: Didn't find class "com.tktcorporation.roomwithaview.MainActivity" on path: DexPathList[[zip file "/data/app/~~tOGVruhjwh79fy_WuOwELg==/com.tktcorporation.roomwithaview-UtOwl0dNu8K4wJktEaHTqA==/base.apk"],nativeLibraryDirectories=[/data/app/~~tOGVruhjwh79fy_WuOwELg==/com.tktcorporation.roomwithaview-UtOwl0dNu8K4wJktEaHTqA==/lib/arm64, /system/lib64, /system_ext/lib64]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:207)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
        at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:95)
        at androidx.core.app.CoreComponentFactory.instantiateActivity(CoreComponentFactory.java:45)
        at android.app.Instrumentation.newActivity(Instrumentation.java:1253)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3353)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601) 
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85) 
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) 
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066) 
        at android.os.Handler.dispatchMessage(Handler.java:106) 
        at android.os.Looper.loop(Looper.java:223) 
        at android.app.ActivityThread.main(ActivityThread.java:7656) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947) 

https://github.com/tktcorporation/android-room-with-a-view-kotlin/tree/6969f12a0f8925348c3c6d9bf7ff248ebb8cedf7

tkttkt

これはもしかすると、MainActivity にパッケージの宣言がなかったのかも?

tkttkt

一旦 pull してきて、差分取ってみようかな

このスクラップは2020/12/23にクローズされました