小编Kot*_*ner的帖子

错误:无效的父引用“style/Widget.AppCompat.Light.ActionBar.Solid.Inverse”

theme.xml

<style name="Theme.App.ActionBar" parent="style/Widget.AppCompat.Light.ActionBar.Solid.Inverse">
    <!-- Support library compatibility -->
    <!--<item name="elevation">0dp</item>-->
</style>

Error:(160, 5) error: invalid parent reference 'style/Widget.AppCompat.Light.ActionBar.Solid.Inverse'.
Run Code Online (Sandbox Code Playgroud)

APP模型buding.gradle像这样:

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
Run Code Online (Sandbox Code Playgroud)

}

我添加了 com.android.support:appcompat-v7:26.1.0,但为什么它仍然是这样。

我是安卓新手,这有什么意义。

感谢您的帮助。

android android-appcompat

7
推荐指数
1
解决办法
3539
查看次数

标签 统计

android ×1

android-appcompat ×1