After updating to Android Studio Arctic Fox, I cannot choose any of my installed themes. Invalid cache and restart didn't help ;) Also reinstalling themes still not solving this problem.
I updated AS 4.2 to Arctic Fox using Toolbox on the stable channel. I'm on win 10.
Maybe someone has an idea how to solve this issue?
What I can choose:
What I have installed:
Follow Simple Steps to Fix this
Rename the {path-of-android-studio}/lib/gson-2.7.jar file to gson-2.7.jar.disabled.
Restart Studio.
where {path-of-android-studio} is by default C:\Program Files\Android\Android Studio on Windows and /Applications/Android Studio.app/Contents on Mac.
The fix will be included in the next minor release of the 2020.3.1 Arctic Fox.
Found From issue-tracker
The bug still persists in release 2020.3.1 as highlighted here.
Renaming the gson-2.7.jar file works like a charm.
The issue is fixed
and will be included in the next minor release.
The issue still has not been fixed in 2020.3.1 Arctic Fox :(.
For people using linux, If you have installed the flatpak version of android studio you can find the file in the below directory,
/home/void/.local/share/flatpak/app/com.google.AndroidStudio/x86_64/stable/945347e3ed941b868f366b6dc46cf294cafec69f21dbcb10d3fc4e69620315a4/files/extra/android-studio/lib
you don't have to go all the way to the end. Once you get to
/home/void/.local/share/flatpak/app/com.google.AndroidStudio
search "gson" and the right file will come up in a second.
Unfortunately for people who used snap package to install (i honestly don't why still people use snap packages) there is no way to edit the file.
I had this issue even in 2020.3.1, I resolved this issue by simply deleting all the contents in .idea folder from my project. And updated my project kotlin version to 1.5.0.
For Arctic Fox 2020.3.1:
Check for new updates and update. It will be updated to 2020.3.1 Patch 1 it will solve the issue.
How can I fix this issue
And also I have JDK 8
Installed flutter dart plugins
This is a known bug with Android Studio Version 4.1.
Your choices are either to downgrade to 4.0, or wait for an update. The issue is with Android Studio, not the plugins.There is no known workaround to make the plugins work until the Android Studio team fixes it.
See https://github.com/flutter/flutter/issues/67986 for details.
This version of Android Studio cannot open this project, please retry with Android Studio 3.4 or newer.
but my android studio version is 3.2.1 and there is no new update from Google
Try to edit your project build.gradle file and set the android build gradle plugin to classpath 'com.android.tools.build:gradle:3.2.1' within the dependency section.
See also the documentation of the android grade plugin
It's a bit late, But easy and effective.
Click on About Android Studio,
Check the current version,
Open build.gradle of Project and put it in front of the class path. e.g Your studio version is 3.5.2, then your classpath should look like this
classpath 'com.android.tools.build:gradle:3.5.2'
You would need to lower your gradle version and android plugin version, or you can download latest version from beta or canary update channels.
To enable updates from other channels go to Help -> Check for Updates -> Congifure automatic updates and in that dialog select channel you want. After selecting check for update again and it will show you latest version.
This issue is caused due to use of newer version of gradle in the project.
There are two options to resolve this:
Option 1:
Change gradle/wrapper/gradle-wrapper.properties file
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
Change project level gradle build.gradle file
classpath("com.android.tools.build:gradle:3.3.2")
Option 2:
Update your Android Studio to newer version. (Highly recommended)
In IntelliJ IDEA this is an open bug: https://youtrack.jetbrains.com/issue/IDEA-252823
As a workaround, you can change the build tools version as other people advise.
My project was failing with this dependency:
com.android.tools.build:gradle:7.0.0-alpha03
Now it's working with this:
com.android.tools.build:gradle:4.0.2
As a side note, you should change that dependency in build.gradle in some projects or in dependencies.kt in newer projects.
That was the most updated version that worked.
After an update the Android Studio does not show the layout's design for some reason. I tried newer versions as well, but it did not work. So I decided to downgrade my IDE.
When I opened my project, I got the same error. The solution was the following:
Open the Project Structure.
Select the Project field.
Use the appropriate Android Plugin Version. You can copy it from a new project's structure.
Change the Gradle version too what you need.
OK.
Find the gradle-wrapper.properties file and open it.
Change the distributionUrl to that gradle version url what you saved in the Project Structure.
Or if you don't mind, then you can update your AS.
Had the same Issue when i decided to install another version of Android Studio, what worked for me was:
Creating a new project with the current version of Android Studio just to go check the classpath version at the project level build.gradle inside the dependencies section, at the time it was this:
classpath 'com.android.tools.build:gradle:3.5.0-rc01'
Copied that line and replaced it on the project i was working on.
in project's build.gradle file comment classpath com.android.tools.build:gradle:. File → Project Structure select Android Gradle Plugin Version to match Android Studio version
You can now update your android studio to 3.4 stable version. Updates for stable version are now available. cheers!!!
i just change gradle version classpath 'com.android.tools.build:gradle:3.5.3' to
classpath 'com.android.tools.build:gradle:3.3.2' and now working.
I encountered with this error and just decrease gradle version and android plugin version to 5.1.1 and 3.4.2.
Close VPN worked for me! It suprised me.
this issue occur for me after downgrade Java JDK, after upgrade JDK my problem resolved.
Open android studio then go to help menu > check for update > Update your Android Studio to newer version.
If u r here because of Jetpack Compose, I had the same problem, and solved it by using the Arctic Fox Canary build of Android studio: you can download it at this link: https://redirector.gvt1.com/edgedl/android/studio/ide-zips/2020.3.1.12/android-studio-2020.3.1.12-mac.zip
This issue arises due to updates, You can resolve this by downgrading the gradle used from
com.android.tools.build:gradle:3.2.1 to a previous gradle like com.android.tools.build:gradle:3.0.0 or anything older than the current one
This usually happens when you're opening someone else's project after unzipping it. And the person has used an updated android Studio.
The way to solve it is
1.Go to Help and about to see your android studio version
2.Go to File>Project Structure> and set your Android Gradle Plugin version to your android studio version
3.Change the Gradle version to the one you usually use.(optional)
Build the project and it should run without any errors
This seems like incompatible gradle plugin vs gradle binary versions. You can find the releases here: Gradle Plugin release and compatiblity
Upgrade your grade plugin and grade binary to compatible versions and the app should start building.
I have macosx and I would like to use kotlin from terminal. Then I would like to find where is kotlin installed, since I'm using it from Android Studio.
I know i can install Kotlin using homebrew but I want avoid having two copies of Kotlin.
The kotlin that is bundled with AS can be found here
/Applications/Android\ Studio.app/Contents/plugins/Kotlin/kotlinc/bin/kotlinc
I have Android Studio installed and I found the Kotlin location within ~/home/<user>/AS/plugins/Kotlin/kotlinc/bin.
Current OS : Ubuntu
For Windows 10 (Android 4.1 at least)
C:\Users\<User>\AppData\Roaming\Google\AndroidStudio4.1\plugins\Kotlin\kotlinc\bin\kotlinc.bat
Recently updated Build: 2.3.1, AI-162.3871768, 20170401,
AI-162.3871768, JRE 1.8.0_112-release-b06x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.11.6 unknown, screens 1440x900; Retina
Switching back to Android 2.2.2 did not help either. Successfully able to build from command Line though(MacOX Terminal)
Delete your $HOME/.gradle directory (or on Windows, %HOME%\.gradle folder). The next execution of gradle will rebuild this. (It will require some downloads, so make sure you have an internet connection).
You can try just deleting $HOME/.gradle/caches, but this will not solve the problem in all cases.
I have similar issue on 2.3.1
I tried using the Android 2.4 Preview 4 but that did not help. I am able to build from command line too.
Android-Studio-2.3.1-Gradle-Sync
It happens when Android Studio creates two instances of gradle. I tried clearing the gradle cache or even deleting the .gradle but did not help. All this problem started when I deleted my old project repo and re-pulled it and imported to my Android Studio.
Best is to delete all your gradle instance from your home directly before your re-import your project Android Studio.
Android Studio started behaving like this after I tried building with the command line(osx) using ./gradlew
What helps is running the studio with sudo:
sudo /Applications/Android\ Studio.app/Contents/MacOS/studio
I wonder if theres a fix to this problem that allows the studio to be started normally as well.