I have been installing flutter and Android Studio for a few times because I've encountered an unsolved issue. At first, the issue was it did not detect my Android Studio but The Android toolchain had no issue.
After I config my Android Studio and run flutter doctor again, Android Studio was not an issue anymore but turns out Android Toolchain became an issue.
My java version: jre1.8.0_291
I found some solutions stating that the Obsolete package should be installed in the SDK tools and I already have that
If you read the terminal output of the second image carefully, you need to accept the SDK licenses by flutter doctor --android-licenses
I have successfully solved the issue by editing the environmental variables, set JAVA_HOME values to
C:\Program Files (x86)\Java\jre1.8.0_291
it was previously at the Android Studio jre
Related
So I recently deleted the -studio64.exe.vmoptions file and the next time I launched it, it's unable to detect common libraries like 'String' and 'System'. I tried to download Jetbrains IDE also, and it throws the same error-
https://i.stack.imgur.com/EV3EV.png
What I have tried so far:
Change gradle build version
Reinstall Android studio
Uninstall Android studio completely- including jdk and sdk dependencies. Upon reinstallation (technically from scratch), the issue still persisted.
Any help will be appreciated. Thanks!
Hello I'm wondering to start using Android studio but I am facing a settings problem.
I want to run on Android studio an Android app already working. But when I want to build the app there is an error message that indicates that Android studio don't find the tools.jar file of JAVA.
My Android studio version is 2020.3.1
I have initially install Java JDK 17 version and it seems that since JAVA 1.8 version the tools.jar file is not present anymore.
So I tried to downgrade Java to 1.8 version but the Android studio app is not compatible with versions older than JAVA 11.
So I was wondering if someone have faced the same problem and how I could overcome this.
Thanks in advance for any kind of help.
Recently, when I start eclipse program, always got below error. I did not see this issue before, seems the error started after I update the Android SDK. Could you please help?
I got some answers from here. They recommend me to uninstall some images from android sdk 5.1.1. I didn't install these images and even I cannot find them under 5.1.1 version as below.
delete this guy
the solution to above problem is to just delete(uninstall) the package Android Wear ARM EABI v7a system image available under Android 5.1.1 (API 22) if it's installed. (No need to uninstall whole 5.1.1 package). May be there is some eclipse bug with this package.
Finally restart eclipse to see your changes.
If the problem still exists, try removing other Android Wear package also (i.e Android Wear Intel x86 Atom System Image)
I'm on Linux (Arch Linux) and using Android Studio 2.3.1
When creating a new empty project in Android Studio I get the error:
Gradle sync failed:
org.gradle.internal.jvm.UnsupportedJavaRuntimeException.assertUsingVersion(Ljava/lang/String;Lorg/gradle/api/JavaVersion;)V
Consult IDE log for more details (Help | Show Log)
It seems that there is something with the java version. I have openjdk-8 installed and also tried with Oracle JDK version 8 (also tried with version 7).
Things i've tried:
Using installed gradle or gradle that comes with Android Studio
Removing ~/.gradle and ~/.android.
Update:
If I enter the project directory and run gradle build i.e. using my installed gradle version it seem to build. However, being able to run gradle from Android Studio seem essential to even use Android Studio.
I upgraded to Android Studio 2.3.2 and then this particular problem was solved.
I did not use the package from AUR (Arch User Repository) when upgrading, instead I used the Android Studio "Check for updates" and upgraded that way. I don't know if that matters.
Update:
Happened again when upgrading to Android Studio 3.0.1 from AUR. Installing the official build from http://developer.android.com works though so it's some issue with the build in AUR for ArchLinux.
I had the same problem AFAIK.
Firstly I had a version previous to 3.0.1 of Android, then I downloaded the Android zip package from the official website, then installed it and kept the same old preference files (or so). Then this problem appeared. What I did is uninstalling (thus deleted the android-studio folder in terms of Ubuntu) and installing it back again and it was solved.
I can't load any project after updating Android Studio to v2.3. Here is a picture of the error:
and it reads:
Cannot load project: com.intellij.ide.plugins.PluginManager$StartupAbortedException:
com.intellij.diagnostic.PluginException:
com/android/tools/idea/gradle/invoker/GradleInvoker$AfterGradleInvocationTask [Plugin: com.drakklord.gradle.metric.core]
After I tried to uninstall the Checkstyle plugin and reinstall Android Studio, I still get the same error. I have updated JDK to 1.8 version.
After removed cache directory also if it is not working, then look at the Terminal for error.
If it says,
[ 96470] ERROR - llij.ide.plugins.PluginManager - null
Then it is the problem with some plugins that you already installed in the IDE.
In my case it was BlackBerry Pugin for Android development. I just removed it from plugins and it worked.
Click on plugins from the bottom right dropdown and uninstall the plugin that you manually installed.
Found this in a similar thread:
• Close Android Studio
• Go to the directory home_dir/.AndroidStudio/system/cache
• Remove all the files in the cache directory.
• Then restart IntelliJ / Android Studio
I'd suggest making a backup of anything before removing.