应用程序启动后立即关闭

Application close immediatly after start-up

实际上是全栈跟踪:

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

编辑:

我找到了解决方案!

在应用程序中 class 我有一个抛出异常的转换。

Cannot cast Application to CustomApplication

我只是忘了在清单中添加 android:name=".CustomApplication"