My Gradle building since yesterday My gradle has been building for more than 6 Hours now, I really have no idea of what is going on. Please help.
I tried to disable the proxy but it gives me this: Proxy Disabled
if you are working on android studio 1.5 then upgrade to version 2 because 1.5 takes more time for graddle building.
Related
Default Activity not found. I faced this problem from last 4 days. I tried all possible solution on stack over flow. but nothing work ..! only one solution is working almost 1 time only if I click on sync project with Gradle Files. some times its work or some time its not.
Edit Configuration
MainActivity.Xml
MainActivity.java
but I select Nothing option in Launch it work ..but no any activity launch in the physical device
Android Manifest
build.gradle
as said here
The Android 10 SDK includes changes that are not compatible with some older versions of Android Studio. So, for the best development experience, we recommend that you install the latest version of Android Studio.
You can compile and test Android 10 apps using Android Studio 3.3 and higher, but some users of the Android 10 SDK may encounter Gradle sync failures and warnings about outdated dependencies.
It is recommended to use Android Studio 4 with SDK 29
I have updated android studio to latest version 2.3 a week back. After so much research I'm somehow able to fix gradle build.But now android studio is not creating new projcects.It is stuck at gradle build for project.I've waited for almost 1 hour.It was at the same point.I updated the gradle to the latest version 3.4.1 but I dont know why I'm getting this error.Its not even showing any error.
Someone please help me...Thaks a lot in advance....
Update your SDK especially build tool and extras.
Delete temp files of system.
After that restart your system and android studio and create new a new project and wait until it completely build(may be it take some time more than it's usual time, but it happen first time only, so have patience).
Hope this will resolve issue.
If still you have same problem; re-install your Android studio.
It seem I'm struggled of this issue since last week because I couldn't find the same problem that I have on the internet...
My AMD Computer ran on windows xp first and trying to install the android studio 2.2.2 but I've got the problem says Incompatible Operating System so I decided to upgrade to windows 7 but I've got the same thing so I fully upgraded my computer to windows 10 pro 64 bit. Yes the issue has gone but sad to say that I've got a new problem.. Gradle stuck in
Gradle: Resolve dependencies 'app:_debugAndroidTestCompile'
. I've waited half an hour but nothing happen.
I've done checking some possible solution like gradle version and android studio plugin version but noting happen too.
so anybody knows whats going on in this version because in few months ago I am using older version of android studio but I don't get any problem like this...
Update:
Is this a normal duration of gradle synchronizing?
Have you tried deleting your gradle caches? I've found sometimes these get messed-up and deleting them seems to solve the problem.
Gradle cache locates at
On Windows: %USER_HOME%.gradle/caches
On Mac/Unix: $HOME/.gradle/caches/
have you tried updating the gradle version? How many dependencies do you have on your project? Maybe too much dependencies can cause slow actions.
I had a same issue. When I updated to 2.2.2 gradle sync begun to fail an run for 10+ mins. After a long digging through log files and gooogle search I found out it was caused by Comodo firewall blocking JCenter. After uninstalation of that traitor everything runs as before.
I have a project which was working very well on android studio , suddenly it turns not able to build anyway .. It keeps telling Build Gradle Runnig without any result for 30 min !
I tried to clear .gradle file of project without result.
I tried to uninstall android studio and clean all its files from user directory AndroidStudio 2.1 and .gradle files and also no result.
This problem occures only with this project and others working fine on android studio ..
What should I do to make my project build again ?!
I had that once when I updated the gradle wrapper. It really took 45 minutes to download that 16MB or so. I had to that time some network issues with their repo servers.
Try to run in the console gradlew aR and see what happens. If you see there hundreds of dots you need to wait if there happens nothing kill all java processes and try again.
I have downloaded latest adt bundle for mac from android developers website. I do create a library project connected to main project and suddenly, Eclipse started to nag! I checked the build progress and I figured out that build process restarts at 40-50%.
I have captured a screenshot:
Some people suggested to disable Build Automatically. After doing this, the project builds and runs OK but I have to build manually after every little change and it's boring.
I am using Eclipse IDE for android Developers version 23.0.2.1259578.
Android SDK Manager details:
What is the cause of this misbehavior? What is a good solution? Any idea?
This was my solution for this issue I have posted a few month ago,
https://stackoverflow.com/a/24631434/2970351
Also try other solution in that page if it didn't work for you.