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

标签 android

当我尝试将 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/

相关文章:

android - 问题关闭弹出窗口

android - 包与同名的现有包冲突

安卓一加二 : Failed to change locale for db

android - 创建可以在多个 Activity 之间共享的布局代码

java - 在 java 文件中将 CheckBox View 定义为全局变量会使应用程序在 Android Studio 中终止

android - 将 build.prop 推送到/system/build.prop

java - 如何通过在 Fragment 中单击按钮多次 inflatedView/容器?

Android MediatorLiveData源订阅不触发

java - 将底部的线性布局固定为 android 中的页脚

java - 获取 WCDMA 信号强度