我的build.gradle是
compileSdkVersion 27
buildToolsVersion '28.0.3'
defaultConfig:
minSdkVersion 23
targetSdkVersion 27
dependencies:
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.android.support:support-v4:27.1.1'
收到此错误
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027TextAppearance.Compat.Notification.Title\u0027.","sources":[{"file":"/Users/ericji/.gradle/caches/transforms-1/files-1.1/support-media-compat-27.1.1.aar/3ace11096114d261fddf79eb9c08154c/res/values-v24/values-v24.xml","position":{"startLine":5,"startColumn":4,"startOffset":248,"endColumn":66,"endOffset":310}}],"original":"","tool":"AAPT"}
:app:processDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Failed to process resources, see aapt output above for details.
Android Studio已升级到3.2.1,因此我必须使用28.0.3。
有人遇到这个问题吗?如何解决?非常感谢!
答案 0 :(得分:0)
使用Android Gradle Plugin 3.0+,您不再需要指定buildToolsVersion版本。 https://developer.android.com/studio/releases/build-tools