Android Studio/Gradle build can't find custom Application class -


i'm using new android studio , gradle build test project. set in default way (new project wizard). seems work ok, except specify custom application instance in manifest file. app builds ok, crashes when run on device with:

caused by: java.lang.classnotfoundexception: didn't find class "co.touchlab.android.testapp.myapplication" on path: /data/app/co.touchlab.android.testapp-1.apk         @ dalvik.system.basedexclassloader.findclass(basedexclassloader.java:65)         @ java.lang.classloader.loadclass(classloader.java:501)         @ java.lang.classloader.loadclass(classloader.java:461)         @ android.app.instrumentation.newapplication(instrumentation.java:968)         @ android.app.loadedapk.makeapplication(loadedapk.java:499) 

intellij seems think ok, , if take out custom app works (until hit screen tries use it, of course).

i'm going copy on normal build dir , give whirl on idea 12 till sorted, figure out. try totally stock app custom application class , see if has trouble well.

open build.gradle file app , add this:

dependencies {     compile 'path_of_missing_class_here' } 

Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -