Gradle version 3.3 does not support forTask() method on BuildActionExecuter

后端 未结 10 1167
没有蜡笔的小新
没有蜡笔的小新 2020-12-07 17:04

I just updated my Android Studio to 3.0 canary 1. Now I am working on my existing project on Android Studio 3.0 canary 1. By default gradle:3.0.0-alpha1 is

相关标签:
10条回答
  • 2020-12-07 17:37

    I resolved the issue by changinf distributionUrl in the following code in gradle-wrapper.properties file

    distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
    
    0 讨论(0)
  • 2020-12-07 17:39

    This happened when trying to build debug apk.

    SOLUTION: Update Gradle version to 3.5

    Navigate to File -> Project Structure -> Project -> Gradle Version = 3.5

    This works for Android Studio 3.0

    0 讨论(0)
  • 2020-12-07 17:41

    Only Change the gradle URL to

    "distributionUrl=https://services.gradle.org/distributions/gradle-4.1-all.zip"

    as follow image :

    0 讨论(0)
  • 2020-12-07 17:43

    put this code in gradle-wrapper.properties file and it will work with you

    distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
    
    0 讨论(0)
  • 2020-12-07 17:53

    I've just had the same issue. Fixed it by changing Gradle distributionUrl in "gradle-wrapper.properties".

    Here is what I have configured:

    #Wed Mar 22 16:13:58 BRT 2017
    distributionBase=GRADLE_USER_HOME
    distributionPath=wrapper/dists
    zipStoreBase=GRADLE_USER_HOME
    zipStorePath=wrapper/dists
    distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
    

    for more details

    Offical video to help migaration https://www.youtube.com/watch?v=oBsbI8ICYKg

    see also comment below from @TmTron

    0 讨论(0)
  • 2020-12-07 17:59

    We have two way to deal with it.

    1. You can update your gradle's version from the early one to 3.5 version product;

    2. Or,you can figure your gradle wrapper to 4.1 version.

    All of the ways are both useful.

    0 讨论(0)
提交回复
热议问题