当前位置:首页 > 编程笔记 > 正文
已解决

在android工程中新建Android模块报错

来自网友在路上 176876提问 提问时间:2023-09-20 01:25:45阅读次数: 76

最佳答案 问答题库768位专家为你答疑解惑

复制了复制正常的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>

查看全文

99%的人还看了

猜你感兴趣

版权申明

本文"在android工程中新建Android模块报错":http://eshow365.cn/6-9684-0.html 内容来自互联网,请自行判断内容的正确性。如有侵权请联系我们,立即删除!