gpt4 book ai didi

android - "ResourceCycle": when generate signed Apk 类型问题的解释

转载 作者:塔克拉玛干 更新时间:2023-11-01 21:53:35 27 4
gpt4 key购买 nike

更新到 appcompat-v7:24.0.0-alpha1 后生成签名 apk 时出现错误。

Error:Error: Style Resource definition cycle: TextAppearance.AppCompat.Light.SearchResult.Title => TextAppearance.AppCompat.SearchResult.Title => TextAppearance.AppCompat.SearchResult.Title [ResourceCycle]

最佳答案

临时但可行的解决方案:我搜索了大约两天的解决方案,但我无法创建签名的 apk,最后我在这个线程上找到了答案:https://code.google.com/p/android/issues/detail?id=203407

只需将这 3 行放在 android() 下的“app”build.gradle 文件中

lintOptions {
checkReleaseBuilds false
abortOnError false
}

最后你的 build.gradle 文件将是这样的:

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion '24.0.0 rc2'

defaultConfig {
applicationId "abc.xyz"
minSdkVersion 9
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
//Here the magic Begins
lintOptions {
checkReleaseBuilds false
abortOnError false
}
//Here the magic Ends
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile files('src/main/libs/YouTubeAndroidPlayerApi.jar')
compile 'de.greenrobot:greendao:2.1.0'
}

希望我的回答对您有所帮助。这将创建您的构建,稍后当适当的 24 个支持库发布可用时,您必须适本地更改它。

关于android - "ResourceCycle": when generate signed Apk 类型问题的解释,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36098226/

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