gpt4 book ai didi

android - 应用程序不运行此错误 : Failed to execute aapt

转载 作者:行者123 更新时间:2023-11-30 00:22:04 26 4
gpt4 key购买 nike

我下载了一个源代码,然后导入到我的 android studio 中。现在我的项目显示此错误。

Information:Gradle tasks [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies]
/home/td/Downloads/link/app/build/intermediates/res/merged/debug/values-v24/values-v24.xml
Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
Error:(4) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.
Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
Error:(4) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

问题在这个文件上指出

..../link/app/build/intermediates/res/merged/debug/values-v24/values-v24.xml

我怎样才能摆脱这个。我搜索了几件事。他们中的一些人正在谈论更改 minSDKversion 但这行不通。

这是我的gradle文件

apply plugin: 'com.android.application'

安卓{ 编译SDK版本23 buildToolsVersion '25.0.0'

defaultConfig {
applicationId "com.creativedroids.link"
minSdkVersion 14
targetSdkVersion 23
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile 'com.android.support:support-v4:23.4.0'
compile 'com.google.android.gms:play-services:+'
compile files('libs/dagger-1.2.2.jar')
compile files('libs/javax.inject-1.jar')
compile files('libs/nineoldandroids-2.4.0.jar')
compile files('libs/tapjoyconnectlibrary.jar')
compile files('libs/tween-engine-api-sources.jar')
compile files('libs/tween-engine-api.jar')
compile files('libs/vungle-publisher-adaptive-id-3.3.2.jar')
}

最佳答案

Your compile SDK version must match the support library's major version.

你可以在下面问题提到的gradle文件上做

Error retrieving parent for item: No resource found that matches the given name after upgrading to AppCompat v23

关于android - 应用程序不运行此错误 : Failed to execute aapt,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46104332/

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