在android工程中新建Android模块报错
复制了复制正常的build.gradle文件,然后把theme里面的东西改成了下面这个样就好了
<resources xmlns:tools="http://schemas.android.com/tools"><!-- Base application theme. --><style name="Theme.JiQuan" parent="Theme.MaterialComponents.DayNight.DarkActionBar"><!-- Primary brand color. --><item name="colorOnSecondary">@color/black</item><!-- Status bar color. --><item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item><!-- Customize your theme here. --></style><style name="Theme.JiQuan.NoActionBar"><item name="windowActionBar">false</item><item name="windowNoTitle">true</item></style><style name="Theme.JiQuan.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar"/><style name="Theme.JiQuan.PopupOverlay" parent="ThemeOverlay.AppCompat.Light"/><style name="Theme.AndroidProject" parent="Theme.MaterialComponents.DayNight.DarkActionBar"><item name="colorOnPrimary">@color/white</item><!-- Secondary brand color. --><item name="colorOnSecondary">@color/black</item><!-- Status bar color. --><item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item><!-- Customize your theme here. --></style><style name="tran_style" parent="Theme.AppCompat.Light"><!-- 是否支持透window明度 --><item name="android:windowIsTranslucent">true</item><item name="android:windowNoTitle">true</item><item name="android:windowActionBar">true</item><!-- 隐藏状态栏 --><item name="android:windowFullscreen">false</item></style><style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"><item name="android:windowTranslucentStatus">true</item><item name="android:windowBackground">#ffffff</item></style></resources>