New project not opened in Android studio - android

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.

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.

Gradle 'PName' project refresh failed

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.

gradle project sync failed in android studio | how to fixit it?

im a new in android studio, I simply created a new project, and it says that:
Gradle project sync failed. Basic functionality will not work properly.
The Error Message Is:
Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.
you can see this screenshot :
please help me to fix this problem !

Failed to import Gradle project error creating new project with Android Studio

Version of Android Studio:0.2.5 Build 130.782403, OS version: Windows 7 Pro 64bit, Java JRE/JDK version: 1.7, Android SDK V22.0.5, All updates/Extras are installed
I randomly get this error when trying to create a new project with Android Studio
Failed to import Gradle project: Network is unreachable: connect
Consult IDE log for more details (Help | Show Log)
It sometimes works when I'm not connected to the Internet
It sometimes doesn't work until I connect to the Internet
I believe the developer should be able to create a new project even if he/she doesn't have an Internet connection.
I had same issue with the latest Android Studio () today, and I finally found that configuring a https proxy for Gradle can solve the issue. I only set a http proxy at the beginning. Gradle needs to sync some files via HTTPS. Use IP address instead if hostname of proxy can't work.
In your android studio go to Help -> Show log in explorer then open the file idea.log and fetch in this file where is the problem, you gonna find where your android studio try to connect and it couldn't (proxy issues, some server link in your gradle refuse your connexion, non reachable server, no internet access...)

Categories

Resources