Gradle: FAILURE: Could not determine which tasks to execute

前端 未结 6 680
南方客
南方客 2020-12-08 21:33

Upgraded to Android Studio 0.2.0 and got the following error. The error got resolved after applying suggested solution but now the following error appeared.



        
6条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-08 22:15

    Inspired by the answer from @Dhafer.Dhib to check the installed gradle version, I want to add: The recommended way to install gradle under linux is using sdk, see https://gradle.org, I did the following steps:

    sudo apt install zip    ## zip required by SDKman, see http://sdkman.io/
    ## do the following steps as the user who wants to use the tools NOT root!
    curl -s "https://get.sdkman.io" | bash    ## SDKman recommended option to install *up-to-date* gradle, see https://gradle.org/install/
    source "/root/.sdkman/bin/sdkman-init.sh"     ## set env to use sdk without opening a new shell
    sdk install gradle 4.6
    gradle -v
    

提交回复
热议问题