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,但为什么它仍然是这样。
我是安卓新手,这有什么意义。
感谢您的帮助。