Android 安卓工作室-

Android 安卓工作室-,android,android-studio,build-tools,Android,Android Studio,Build Tools,我试图运行该应用程序,但buildToolsVersion“20”不配合。它给了我这个错误: Warning:Project is building density based multiple APKs but using tools version 20, you should upgrade to build-tools 21 or above to ensure proper packaging of resources. 然后我换个话题: buildToolsVersion "21"

我试图运行该应用程序,但
buildToolsVersion“20”
不配合。它给了我这个错误:

Warning:Project is building density based multiple APKs but using tools version 20, you should upgrade to build-tools 21 or above to ensure proper packaging of resources.
然后我换个话题:

buildToolsVersion "21"
然后我得到了105个类似于这些错误的错误:

/Users/Money/AndroidStudioProjects/LiFi2/app/build/intermediates/res/merged/debug/values-ldltr-v21/values-ldltr-v21.xml
Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner.Underlined'.
/Users/Money/AndroidStudioProjects/LiFi2/app/build/intermediates/res/merged/debug/values-v21/values-v21.xml
Error:(14) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Inverse'.
Error:(16) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Large.Inverse'.
..错误以如下方式结束:

Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/Money/Library/Android/sdk/build-tools/21.0.0/aapt'' finished with non-zero exit value 1
Information:BUILD FAILED
怎么办


谢谢。

您将收到这些错误,因为这些错误已从API级别21弃用。您需要删除该属性。谢谢,但是如果我删除了它,那么我将返回相同的错误“警告:Project正在构建基于密度的多个APK,但使用的是tools version 20,您应该升级到build tools 21或更高版本,以确保资源的正确打包。”您知道这一点吗?您会收到这些错误,因为这些错误已从API级别21弃用。您需要删除该属性。谢谢,但是如果我删除它,那么我将返回相同的错误“警告:Project正在基于密度构建多个APK,但使用的是tools version 20,您应该升级到build tools 21或更高版本,以确保正确打包资源。”您知道这一点吗?