Gradle Distribution URL issue in Android Studio - android-studio

Facing error -"The specified Gradle distribution 'https://services.gradle.org/distributions/gradle-6.5-all.zip' does not exist." when I'm running android studio normally.
But if I start the android studio as administrator above error is not coming.
I tried deleting the .gradle and .idea file and restarting the android studio, but same error is coming.

So, after trying out lot of solutions on stack nth helped and sort out this problem. Eventually, I had to restore my android studio to default settings. So, that how my problem was resolved.

Related

Null issue in Android Studio Gradle

After I upgraded the Android Studio to Dolphin my project, which worked perfectly fine in Chipmunk, stopped working by giving me this weird error from Gradle:
There is no explanation of what is wrong except this weird error null.
I tried lots of stuff like:
Invalidating caches and restart
Deleting .gradle files
Upgrading the Gradle and Gradle Plugin. Right now versions are, for Gradle Plugin: 7.3.0 and for Gradle 7.4
Updated google services to the latest version 4.3.14
But none of this helped and I don't know what is wrong so any help is more than welcome. Thanks in advance.
It seems this is an Android Studio bug and is still active on the Google Issuetracker.
Apparently two people have found a workaround by:
Deleting the .idea folder and restarting Android Studio
Deleting the .idea, .gradle, build folders and restarting Android Studio
Hope this helps!

How to fix "synce failed"

My android studio worked fine but now I always have this message when I start it:
C:\Users\GERA.gradle\caches\4.6\file-changes\last-build.bin (Access is denied)
Also my files tree looks diferent now and Java files are not blue anymore.
This is a Android studio level problem, not only one project.
How to fix that?
Go to File-> Invalidate caches / Restart
remove .gradle folder
Restart Android Studio
Gradle build succeed
Rebuild project

Unknown Attribute Android: error on Android STUDIO 3.2.1

Things i have done to resolve this issue:
Clean Build & Rebuild
Deleted .idea file
Invalidated Caches/ Restart.. option
Turn On Power Save Mode.
SDk is up to date.
Sync Project with Gradle Files done.
Reinstall Android Studio done
recreate new project done
changed something in app Gradle file and synced the project again
android studio old version change also not help
Intellij shows to reset to default namespace, it will delete android namespace..
(In Project, Layout file corrections not reflecting into app)
Android Studio Version
Error Image
gradle image
Intelij Solution
This worked for me
Close Android studio
Delete all files from
C:\Users\.AndroidStudio3.2\system\caches
C:\Users\.AndroidStudio3.2\config //not importent
start android studio
Ran into the same issue. Seems to be something specifically related to Android Studio 3.2. My solution on Windows was to delete everything withing the cache/ folder in the .AndroidStudio3.2/ folder.
This problem happen for Android studio Cache & History.
Firstly In android studio go File -> Close Project and Exit Android Studio.
Then Delete below 2 Folders:
C:\Users\user-name.AndroidStudio3.X\system\caches
C:\Users\user-name.AndroidStudio3.X\config\terminal\history (optional)
Open the Android Studio and Enjoy!
Complete uninstall Android Studio (including system and cache files) and Reinstalling clears my bug...

Android Studio: Can not calculate Diff

My compare files utility from Android Studio 2.3.3 is not working anymore, it shows the message "Can not calculate diff" and generate the following error on Event Log:
NullPointerException: update failed for ActionGroup: null (null)[null]
Here is the log captured by the Report to Google dialog
I'm using Mac, I already uninstalled Android Studio, Android-sdk, cloned the project again from git and deleted the Android folder under ~/User/MyUser/Library/Android, but the problem continues.
It does not happen with the other computers from my team.
Anyone knows how to fix this? It wasn't happening last week.
Delete Android Studio.app
Delete the following folders:
~/Library/Application Support/AndroidStudio
~/Library/Caches/AndroidStudio
~/Library/Logs/AndroidStudio
~/Library/Preferences/AndroidStudio
Reinstall Android Studio.

I cant create new project in android studio

I installed android studio and when I tried to open the android studio I cant run android emulator and It display the error report in below tab.
This is that error message
null value in entry:libOutputDir=null
and line down display the Build Failed
This maybe a gradle bug. Delete the gradle folder in the root directory of your application. Then open the app, let the studio rebuild the gradle again. This has been an issue for a lot of people.

Resources