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

前端 未结 10 2066
孤街浪徒
孤街浪徒 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:04

    This works for me
    edit in your project build.gradle

    // Top-level build file where you can add configuration options common to all sub-projects/modules.
    buildscript {
        repositories {
            jcenter()
            mavenCentral()
        }
        dependencies {
            //delete this line below   
            classpath 'com.android.tools.build:gradle:1.0.1'
            //add this line below
            classpath 'com.android.tools.build:gradle:1.2.3'
        }
    }
    

提交回复
热议问题