启动活动后已安装的应用程序关闭

时间:2020-02-19 15:15:44

标签: android

我创建了一个应用程序,并在可运行Android 10的手机上对其进行了测试。我觉得一切正常。然后,我为该应用程序生成了一个apk文件。当我尝试在运行Android 6.0.1的另一部手机上安装时,该应用在启动活动后被关闭。错误消息如下。请让我知道怎么了?

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.vcr/com.example.vcr.HomeActivity}: java.lang.RuntimeException: A TaskDescription's primary color should be opaque
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2485)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2545)
at android.app.ActivityThread.access$1100(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1396)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:157)
at android.app.ActivityThread.main(ActivityThread.java:5601)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:774)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:652)
Caused by: java.lang.RuntimeException: A TaskDescription's primary color should be opaque
at android.app.ActivityManager$TaskDescription.<init>(ActivityManager.java:617)
at android.app.Activity.onApplyThemeResource(Activity.java:3836)
at android.view.ContextThemeWrapper.initializeTheme(ContextThemeWrapper.java:150)
at android.view.ContextThemeWrapper.setTheme(ContextThemeWrapper.java:94)
at androidx.appcompat.app.AppCompatActivity.setTheme(AppCompatActivity.java:111)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2431)
... 9 more

0 个答案:

没有答案