Every time I load Android Studio (1.5), it runs gradle sync, even though nothing has changed since the last run. The funny thing is that a project that sync-ed properly yesterday will fail for random reasons today. Such as "Error:Cause: peer not authenticated" or "Could not reserve enough space for object heap".
Could I disable automatic gradle sync at startup?
We can find the Gradle configuration in Eclipse by navigating to the Preferences -> Gradle section. We can see the Offline Mode config and toggle it off: As a result, we'll find that the offline mode works in Eclipse.
Open your gradle. properties file in Android Studio. Restart Android Studio for your changes to take effect. Click Sync Project with Gradle Files to sync your project.
This is a little late, but for anyone else looking:
In "Settings" -> "Appearance & Behavior" -> "System Settings"
Uncheck "Synchronize files on frame or editor tab activation"
You'll have to remember to hit the "Sync Project with Gradle Files" button whenever you make changes to Gradle. (To the left of AVD Manager)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With