
This will take some time even on a fast network. One of the most common reasons is that Gradle is trying to download many dependencies. Unfortunately, it often happens that builds take forever and Gradle is not providing any hint how to speed up the build. Even when you build C++ dependencies for Android. There might be other reasons behind your slow build. Share.Update: This article targets one particular scenario when Android builds are too slow. The sync should be much faster now (since you've downloaded the dependencies in terminal). gradlew app:dependencies module:dependencies. Before opening the project using Android Studio/IntelliJ, open the project using terminal and run the gradle tasks. Keyboard shortcut lovers can add a shortcut for running gradle sync manually by going to File -> Settings -> Keymap -> Plugins -> Android Support -> Sync Project with gradle files (Right click on it to add keyboard shortcut) -> Apply -> OK and you are done./gradlew -recompile-scripts What is gradle sync in Android Studio?īonus: How to speed up sync. gradlew tasks./gradlew -recompile-scripts It will sync and build your app, and take longer than just a Gradle sync.

Alternatively, with command line in your root project./gradlew build. it will do a sync without building anything. To check your gradle version, run gradle -v./gradlew -recompile-scripts. gradlew -recompile-scriptsĪndroid Studio how to run gradle sync manually? Choose any convenient key as your gradle sync shortcut which doesnot conflict. Unknown command-line option '-recompile-scripts'.Īndroid Studio how to run gradle sync manually? – DevĪNSWER: Keyboard shortcut lovers can add a shortcut for running gradle sync manually by going to File -> Settings -> Keymap -> Plugins -> Android Support -> Sync Project with gradle files (Right click on it to add keyboard shortcut) -> Apply -> OK and you are done.


General error during semantic analysis: Unsupported class file major version 57

\gradlew.bat cleanīuild file 'D:\work\wctposdemo\app\adle'Ĭould not compile build file 'D:\work\wctposdemo\app\adle'. ResValue "string", "ProductID", configProductID Previous Post Next Post Android Studio how to run gradle sync manually?Įrror opening zip file or JAR manifest missing : build/tmp/expandedArchives/-0.8.2.jar_5bdiis3s7lm1rcnv0gawjjfxc/jacocoagent.jar
