Android Studio: ClassNotFoundException

后端 未结 17 908
时光说笑
时光说笑 2021-01-11 13:23

i was busy with my app for over a week, when suddenly:

11-12 07:59:17.860    1653-1653/nl.test.myapp E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.Runtim         


        
17条回答
  •  暖寄归人
    2021-01-11 13:55

    If you're creating an android library, you may simply have forgotten to import your library in your app build.gradle with the implementation project keyword :

    dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) testImplementation 'junit:junit:4.12' implementation 'com.android.support:design:27.0.2' implementation 'com.android.support:mediarouter-v7:27.0.2' implementation project(':mylib-module:mymodule') implementation 'com.google.firebase:firebase-core:10.0.1' }

    Hope this helps :)

提交回复
热议问题