相关疑难解决方法(0)

无法解析符号Theme,ThemeOverlay

我将我的android studio更新到最新版本 - 3.0.1.从那以后,它在以下代码行中为Theme和ThemeOverlay抱怨'无法解析符号'.应用程序运行正常但它们在文件中以红色标记.

styles.xml

<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"></style>
 <style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
    <style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
Run Code Online (Sandbox Code Playgroud)

build.gradle使用最新版本进行更新

 dependencies {
        classpath 'com.android.tools.build:gradle:3.0.1'
    }
Run Code Online (Sandbox Code Playgroud)

android android-appcompat android-theme build.gradle

20
推荐指数
2
解决办法
1万
查看次数