While starting android, GRADLE SYNC failed and this error pop up
Gradle sync failed: No cached version of com.android.tools.build:gradle:3.1.2 available for offline mode.
Consult IDE log for more details (Help | Show Log) (4m 29s 435ms)
Please help to solve this error.
Uncheck Offline mode setting in Build and Execution Setting, and then sync the project.
In new Android Studio 3.6.3 Version which I am using Offline Mode setting is in gradle which is right side of the Android Studio
Related
there is no option to build gradle over network in V-3.6.4 there is no checkbox to disable offline build.
also there is no commmand to disable offline build .
please help me to come out from this issue
===============================
Exception i got
Could not resolve all artifacts for configuration ':classpath'.
Could not resolve com.android.tools.build:gradle:3.6.4.
Required by:
project :
No cached version of com.android.tools.build:gradle:3.6.4 available for offline mode.
No cached version of com.android.tools.build:gradle:3.6.4 available for offline mode.
Could not resolve com.google.gms:google-services:4.3.3.
Required by:
project :
No cached version of com.google.gms:google-services:4.3.3 available for offline mode.
No cached version of com.google.gms:google-services:4.3.3 available for offline mode.
To disable Gradle offline mode in android studio v 3.6.4
Here are the steps:
step1: goto View> Tool windows> Gradle
Step 2: Now the gradle panel opens up there you will see toggle button that enables and disables the gradle offline mode
Might this solve your problem :)
Gradle sync failed: No cached version of com.android.tools.build:gradle:3.4.1 available for offline mode.
Consult IDE log for more details (Help | Show Log) (39 s 571 ms)
Go to Android Studio -> Preferences. Then search for Gradle and uncheck off line work. Then invalidate cache and restart.
I have just installed Android Studio 3.3 and opened my existing project. It unfortunately finds out that there are run configuration problem. Would you please tell me the way to fix or reinstall?
When I import the project with gradle , close and open the project again , it shows the following errors on the log :
2:16 PM Unable to save plugin settings: The plugin org.jetbrains.android failed to save settings and has been disabled. Please restart Android Studio
2:16 PM Gradle sync failed: 'Gradle: org.jetbrains.anko:anko-coroutines:0.10.8#aar' already disposed: --------------Creation trace:
java.lang.Throwable: 1548137815181
at com.intellij.openapi.util.TraceableDisposable.<init>(TraceableDisposable.java:45)
at com.intellij.openapi.roots.impl.libraries.LibraryImpl.<init>(LibraryImpl.java:102)
at com.intellij.openapi.roots.impl.libraries.LibraryImpl.<init>(LibraryImpl.java:74)
at com.intellij.openapi.roots.impl.libraries.LibraryTableBase$LibraryModel.createLibrary(LibraryTableBase.java:298)
at com.intellij.openapi.roots.impl.libraries.LibraryTableBase$LibraryModel.createLibrary(LibraryTableBase.java:291)
at com.intellij.openapi.roots.impl.libraries.LibraryTableBase$LibraryModel.createLibrary(LibraryTableBase.java:285)
at com.intellij.openapi.externalSystem.service.project.AbstractIdeModifiableModelsProvider.createLibrary(AbstractIdeModifiableModelsProvider.java:257)
at com.android.tools.idea.gradle.project.sync.setup.module.android.AndroidMod... (show balloon)
2:17 PM Unable to save settings: Failed to save settings. Please restart Android Studio
The Android plugin got disabled in Settings | Plugins. You need to re-enable it.
For preview it's showing.
Preview is unavailable until a successful build
And for gradle sync error it's showing
Gradle sync failed :cause services. Gradle. Org
Clean your project, then if you have resolved the dependencies before, you can turn on Offline Gradle Sync.
You can enable it by Preferences | Settings | Build, Execution, Development | Gradle -> Offline Work
This happens mostly when your internet connection is not proper so just go to build->clean project and then try to sync again it should work
iv'e lately installed android studio and unfortunately faced this problem when i try to create a project :
Gradle sync failed: Connection timed out: connect
Consult IDE log for more details (Help | Show Log)
what should i do
Close Android Studio.
Open android-studio/plugins/gradle/lib directory.
Delete all gradle-*-1.8 files
Start Android Studio again and rebuild/refresh.