Gradle build errors with Android Studio

前端 未结 3 1843
谎友^
谎友^ 2021-01-12 11:50

When I try to build my project in Android Studio I get the following error, using the gradle plugin provided with the download (v 1.6):

The specified Gradle in

3条回答
  •  情歌与酒
    2021-01-12 12:09

    I also had this problem which can indeed be worked around with Mark's suggestion of using ./gradlew assemble.

    However, this does not help you run Make Project from within Android Studio.

    To do that, I had to go to Preferences / Gradle / Use local gradle distribution

    and select any random (but NOT gradle) folder inside the project folder.

    You might notice that this is marked as an invalid location, but you can ignore that, it seems...

    Not a great solution, but it works.

提交回复
热议问题