gpt4 book ai didi

TargetSdkVersion 上的 Android Studio "Error retrieving parent, No resource found that match the given name"更新到 23

转载 作者:行者123 更新时间:2023-11-29 00:04:23 25 4
gpt4 key购买 nike

在 Android Studio 上使用较旧的 targetVersion 将项目构建中的 TargetSdkVersion 更新为 23 时,我在构建时遇到了以下错误。

/path/to/project/app/build/intermediates/res/merged/debug/values/values.xml
Error:(1334) Error retrieving parent for item: No resource found that matches the given name '@style/TextAppearance.AppCompat.Light.Base.SearchResult.Subtitle'.
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/path/to/AndroidSdk/build-tools/23.0.1/aapt'' finished with non-zero exit value 1

build.gradle 是

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"

defaultConfig {
applicationId "com.myapplicaitonid"
minSdkVersion 15
targetSdkVersion 23
versionCode 8
versionName "1.0.7"

}
buildTypes {
release {
minifyEnabled false;
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile "com.android.support:appcompat-v7:23.1.1"
compile 'com.google.android.gms:play-services:8.4.0'
compile 'com.squareup.picasso:picasso:2.4.0'
}

尝试过:https://stackoverflow.com/a/27243716/4221298

但还是一样的问题。

有人遇到类似的问题并解决了吗?

最佳答案

知道了

此主题已弃用。

阅读 TextAppearance.AppCompat.Light.SearchResult.Subtitle

Error:(1144) Error retrieving parent for item: No resource found that matches the given name '@style/TextAppearance.AppCompat.Light.Base.SearchResult.Subtitle'.

<style name="TextAppearance.AppCompat.Light.SearchResult.Subtitle"
parent="TextAppearance.AppCompat.Light.Base.SearchResult.Subtitle">
</style>

随着 Android 随着每个新版本的发展而发展,某些行为甚至外观可能会发生变化。但是,如果平台的 API 级别高于您应用的 targetSdkVersion 声明的版本,系统可能会启用兼容性行为以确保您的应用继续按照您期望的方式运行。

由于弃用,您不能调用

TextAppearance.AppCompat.Light.Base.SearchResult.Subtitle DEPRECATED From API 23 .

关于TargetSdkVersion 上的 Android Studio "Error retrieving parent, No resource found that match the given name"更新到 23,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35034266/

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