gpt4 book ai didi

android - 资源样式/Theme.Base 未找到

转载 作者:行者123 更新时间:2023-12-04 11:31:21 24 4
gpt4 key购买 nike

当我尝试将 android 代码构建到我的设备中时,我在 android studio 中收到此错误?

error: resource style/Theme.Base (aka com.example.android.bluetoothlegatt:style/Theme.Base) not found. error: failed linking references.

最佳答案

在 list 文件检查代码中使用 AppTheme 并查看我将评论的行

     <application
android:name=".application.MyApplication"
android:allowBackup="true"
android:icon="@drawable/app_icon"
android:label="@string/app_name"
android:roundIcon="@drawable/app_icon"
android:supportsRtl="true"
android:largeHeap="true"
android:networkSecurityConfig="@xml/network_security_config"
android:theme="@style/AppTheme"> // here

检查样式必须是这样的:
<style name="AppTheme" parent="Theme.AppCompat.Light">
....customize Theme....
</style>

和 Appcompat 库应该更新:
implementation 'com.android.support:appcompat-v7:28.0.0'

并检查此 link还。

关于android - 资源样式/Theme.Base 未找到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54252918/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com