Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio - disable gradle sync

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?

like image 373
Desik Avatar asked Dec 21 '15 19:12

Desik


People also ask

How do I disable Gradle offline mode and sync project?

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.

Where is Gradle syncing in Android Studio?

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.


1 Answers

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)

like image 53
Mick Avatar answered Sep 23 '22 06:09

Mick