将构建工具更改为21

时间:2016-08-16 18:12:14

标签: android

Warning : Project is building density based multiple APKs but using tools version 19, you should upgrade to build-tools 21 or above to ensure proper packaging of resources

好的,上面是我运行应用程序时在我的gradle控制台中出现的2个错误。该应用程序无法运行,只是停止。如何将构建工具更改为21?

1 个答案:

答案 0 :(得分:1)

在Android Studio中:

  • 工具 - > Android - > Sdk Manager并安装 build-tools 21.0.2
  • 在android块中更改 build.gradle

    compileSdkVersion 21 buildToolsVersion" 21.0.2"