Failed to build project with Android studio

前端 未结 6 1034
醉酒成梦
醉酒成梦 2021-02-02 05:15

Can anyone tell me why I\'m getting this error with AndroidStudio?

Execution failed for task \':sampleapp:preBuild\'.
> Build Tools Revision 19.0.0+ is requir         


        
6条回答
  •  说谎
    说谎 (楼主)
    2021-02-02 06:07

    Check all your build.gradle files whether they are using the 19.0.x version or not.

    buildToolsVersion will be defined under the android tag inside the build.gradle file, like this:

    android {
         compileSdkVersion 19
         buildToolsVersion '19.0.3'
    
         // Other Configuration
    }
    

    You can find a list of versions for the Android Build Tools here as well as in the SDK Manager.

提交回复
热议问题