Android Studio how to run gradle sync manually?

前端 未结 10 1608
遥遥无期
遥遥无期 2020-12-02 21:35

I\'m debugging Gradle issues in Android Studio and see references to \"Run gradle sync\", but I\'m not sure how to run this command.

How do I run \"Gradle sy

10条回答
  •  感情败类
    2020-12-02 22:14

    WARNING: --recompile-scripts command has been deprecated since gradle's version 5.0. To check your gradle version, run gradle -v.

    ./gradlew --recompile-scripts
    

    it will do a sync without building anything.


    Alternatively, with command line in your root project

    ./gradlew build

    It will sync and build your app, and take longer than just a Gradle sync

    To see all available gradle task, use ./gradlew tasks

提交回复
热议问题