Android Studio: Gradle build fails — Execution failed for task ':compileDebugAidl'

前端 未结 10 1929
孤街浪徒
孤街浪徒 2021-02-06 22:18

After changes to source and building with gradle in Android Studio (I/O preview) AI - 130.677228 the build fails with the following error:

Gradle: 
FAILURE: Buil         


        
10条回答
  •  一生所求
    2021-02-06 23:06

    I solved this issue by setting buildToolsVersion in my build.gradle file to match the latest version of the Android SDK Build-tools in the SDK manager.

    Showing Build-tools version 22.0.1 is installed

    In my case, I have the Android SDK Build-tools version 22.0.1 installed, so I set buildToolsVersion accordingly:

    apply plugin: 'com.android.application'
    
    android {
        compileSdkVersion 22
        buildToolsVersion "22.0.1"
    ...
    

    After making that change, my app builds uneventfully.

提交回复
热议问题