Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. #35

Open
icepeach1220 opened this issue Jun 24, 2019 · 0 comments

Comments

@icepeach1220
Copy link

宿主apk的activity是继承AppCompatActivity,在xml文件中:
<application android:name=".App" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme">
报错
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xxxxx/androidx.pluginmgr.DynamicActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.

修改DynamicActivity中的android:theme或者让DynamicActivity继承AppCompatActivity均不可,请问有什么办法?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant