我有一个Android应用程序在nougat上完美运行但是当我在较低版本(即4,5和6)上运行时它甚至在调试时都没有加载,当活动启动时它会立即崩溃我生成签名的apk同样在牛轧糖上运行良好,但是在安装apk后牛仔裤低于牛轧糖后,一旦按下它就会崩溃并显示消息'不幸停止'
以下是loagcat:
FATAL EXCEPTION: main
Process: eelam.ellalan.rechargemafia, PID: 31814
java.lang.RuntimeException: Unable to start activity ComponentInfo{eelam.ellalan.rechargemafia/eelam.ellalan.rechargemafia.SplashActivity}: java.lang.RuntimeException: A TaskDescription's primary color should be opaque
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2590)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2672)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1495)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:5769)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:861)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:751)
Caused by: java.lang.RuntimeException: A TaskDescription's primary color should be opaque
at android.app.ActivityManager$TaskDescription.<init>(ActivityManager.java:605)
at android.app.Activity.onApplyThemeResource(Activity.java:3774)
at android.view.ContextThemeWrapper.initializeTheme(ContextThemeWrapper.java:150)
at android.view.ContextThemeWrapper.setTheme(ContextThemeWrapper.java:94)
at android.support.v7.app.AppCompatActivity.setTheme(AppCompatActivity.java:89)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2530)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2672)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1495)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:5769)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:861)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:751)