申请在启动后立即关闭

时间:2017-02-16 17:05:54

标签: java android code-injection dagger-2 butterknife

  • 我的应用程序在成功构建并加载到我的设备后立即关闭

实际上它是完整的堆栈跟踪:

/? 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

编辑:

  • 项目中现在唯一配置的是注入Dagger并且所有内容都正确编译

1 个答案:

答案 0 :(得分:0)

我找到了解决方案!

在Application类中,我有一个抛出异常的强制转换。

Cannot cast Application to CustomApplication

我忘了在清单

中添加android:name=".CustomApplication"