Gradle 'PName' project refresh failed - android

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.

Related

Unable to open project in Android Studio

I'm trying to open a project for an Android Studio tutorial book in Android Studio and running into a lot of problems. The latest problem is when trying to build the project, getting an error:
10:11 PM Gradle sync failed: Unsupported method:
SyncIssue.getMultiLineMessage().
The version of Gradle you connect to does not support that method.
To resolve the problem you can change/upgrade the target version of Gradle you connect to.
Alternatively, you can ignore this exception and read other information from the model.
Consult IDE log for more details (Help | Show Log) (1 s 538 ms)
Any ideas what is going on here? Using Android Studio 4.1

Migrating existing project to Android Studio 3.3 Failed

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.

Android Studio gradle sync failed: no cached version

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

i installed latest version of Android studio i.e. 2.3.1. it shows gradle sync error

Gradle sync failed: Cause: error in opening zip file
Consult IDE log for more details (Help | Show Log)
Try this steps, it may work.
File -> Invalidate caches / Restart
Shutdown Android Studio
Rename/remove .gradle folder in the user home directory
Restart Android Studio let it download all the Gradle stuff it needs
Gradle build success!
Rebuild project success!
Try updating your gradle too. I also faced the same issue but after updating gradle it got resolved

New project not opened in Android studio

whenever I try to open new project in Android Studio I am getting the following error.
How to solve this error please help
Failed to import Gradle project: Could not install Gradle distribution from 'http://services.gradle.org/distributions/gradle-1.6-bin.zip'.
java.net.UnknownHostException: services.gradle.org
services.gradle.org
Consult IDE log for more details (Help | Show Log)
Be sure to have a working internet connection. Android studio need working internet connection to create new project.

Categories

Resources