I know that this has been asked for 10 times but I have tried all solutions have been proposed on stackoverflow but none of them worked for me.
I have tried these but no result:
Android Studio Stuck at Gradle Download on create new project
Android Studio error installing Gradle
Build issues with Gradle Android studio 0.2.1
This problem happens when we work with android sdk studio different from what you should do is install Android Support Repository
https://sites.google.com/a/android.com/tools/knownissues
Related
Yesterday I updated my Android Studio version from 2.3 to 2.3.1 and today when I tried to create a New Project this familiar screen should disappear after sometime but it didn't disappeared after 30 minutes of waiting. Anyhow I managed to close android studio by Task Manager and started Android Studio again and created a new project again and the same thing happened again.
Although when I open my previous projects again they are working fine but the problem is with the new project creation only. I am having a good working internet connection along with the latest version of gradle 3.4.1
Any idea why this would be happening?
How to resolve this?
I had this "problem" with android studio but after looking here and there I found out that when I update gradle version for my project, for example from 2.2 to 2.2.1, if I do not have that gradle version already android studio tries to download gradle distribution for that version to build the project and since I have poor internet connection, it was the download which was taking time.
Maybe your android studio is downloading the gradle too and it takes time.
I recently upgraded from Android studio 2.2.2 or 2.2.3 can't remember - to Android Studio 2.3.1 . Please can someone point me in the right direction as to how to get older projects running on this newer version of android studio ?
i tried changing the gradle build dependency to 2.3.1 as some suggested but that didn't help
thanks
Your gradle may need some updates. When the android studio starts some update are suggested, they get the proper sdks, or version of the android you may be emulating.
I upgraded to Android Studio 2.2 yesterday since it's made available in the stable channel. An app that I had working properly in AS v2.1.3 now results in the following error whenever I try to Debug/Run the app.
A problem occurred configuring project ':app'. Could not get unknown
property 'compileReleaseJavaWithJavac' for project ':app' of type
org.gradle.api.Project
If I change Gradle Plugin version to 2.1.3 in build.gradle(Project), everything works again and I can run/debug the app without issue.
I have searched on SO and found similar posts but none of the suggested solutions worked for me so far. I'm developing on a Mac and using the embedded JDK shipped with 2.2.
Please try to remove the $PROJECT_HOME/.gradle directory after changing the gradle plugin 2.2.0, and clean and build again.
I upgraded my Mac to Sierra and now everything is working fine. I no longer get any error when I run/debug app on Android devices. I'm using Android Studio 2.2 with Gradle plug-in 2.2.0.
So for anyone experiencing similar issues with Android Studio 2.2 and Yosemite, try upgrading your OS and see it resolves the issue. Good luck.
I am trying to import a cordova project in Android Studio. I have seen this answer but still have some issues which need clarification or a solution if exists.
The cordova project is now imported in Android Studio and got an Gradle sync error. It suggests me to "install build tools 19.0.0 and sync project". I suppose that by doing this the cordova won't support Android 5. Am I right? Moreover, is there any workaround for that?
I'm getting error while importing gradle projects. The same when creating new project.
Using gradle from console builds project fine.
So I think that the problem somewhere in the android studio.
I was changing the OS(win 7 to win 8.1), java version(1.6, 1.7, 1.8), android studio versions(from 0.8 to 1.0), gradle versions(1.10, 1.12, 2.1, 2.2), using gradel wrapper and downloaded gradle zips.
Nothing helped.
I don't know how I can fix this, please help
Added logs of android studio
I've solved this problem - re-installed some of the environment and now it's working fine with jdk 8. The main change that I did - I've installed everything(JDK 8, android studio, Android sdk) to the default folders. Try this if you are facing the same issue