Search code examples
javaandroidcode-injectiondagger-2butterknife

Application close immediatly after start-up


  • My application close just after it is build with success and loaded into my device

Actually it is the fullstack trace :

/? I/art: Late-enabling -Xcheck:jni
W/System: ClassLoader referenced unknown path: /data/app/com.akadream.musicplayer.MOCK-1/lib/arm64
I/HwCust: Constructor found for class android.app.HwCustHwWallpaperManagerImpl
W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
I/Process: Sending signal. PID: 30693 SIG: 9

EDIT :

  • The only thing configured for now in the project is the injection with Dagger and everything compile correctly

Solution

  • I found the solution !

    In the Application class I had a cast that were throwing an exception.

    Cannot cast Application to CustomApplication

    I just forgot to add android:name=".CustomApplication" in the manifest