Installation of Android Studio for Flutter - android-studio

Trying o install Android studio for flutter - download of android virtual device is unavailable
While installing Android Studio I am getting this path
C:\Program Files\Android\Android Studio\jbr
inspite of
C:\Program Files\Android\Android Studio\jre
so android virtual deice is unavailable for installation

Related

JAVA_HOME is set to an invalid directory Android Studio Flutter

type here
Since the last update of android studio to Electric Eel 2022.1.1,
I'm facing this issue while running my flutter project on my phone:
Launching lib\main.dart on Redmi Note 8 Pro in debug mode...
Running Gradle task 'assembleDebug'...
ERROR: JAVA_HOME is set to an invalid directory: C:\Program Files\Android\Android Studio\jre
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
Exception: Gradle task assembleDebug failed with exit code 1
And JAVA_HOME variable was sat on 'C:\Program Files\Android\Android Studio\jre'.
I've tried all possible solution that I've looked for but none of them worked.
It seemes the problem is related to the latest version of Android Studio.
What is the issue and how to solve it.
For Windows:
The problem is because of trace of old Android Studio java folder, just delete this folder and it starts working:
C:\Program Files\Android\Android Studio\jre
The new Android Studio Electric Eel is using jbr, not jre.
For macOS:
If you are using macOS replace the path in .bash_profile or .zshrc
export JAVA_HOME="/Applications/Android Studio.app/Contents/jre/Contents/Home"
with
export JAVA_HOME="/Applications/Android Studio.app/Contents/jbr/Contents/Home"

failed to load jvm dll android studio Electric Eel

I was trying to install Android Studio Electric Eel on a laptop but after installation when I'm trying to open this error comes,
failed to load jvm dll android studio
I already,
Added JAVA_HOME in system variables,
Added path of Java bin folder,
try this, it's worked for me
just delete the jre folder and it starts working(restart android studio)...
C:\Program Files\Android\Android Studio\jre
The problem is because of traces of old Android Studio java folder,The new Android Studio Electric Eel is using jbr, not jre.
You also need to add your bin directory path in path System Variable
Edit System Variables and add your path as follow

Android studio "Could not find installation home path. Please make sure bin/idea.properties is present in the installation directory"

I installed a new version of Android Studio on Windows (see version below)
Now when I run npx cap open android in my Ionic Capacitor I get the error below.
I have tried changing the PATH environment variables with no success.
Android Studio is now installed in
C:\Program Files\Android\Android Studio1
previously it was
C:\Program Files\Android\Android Studio
Any help appreciated.
Android studio version:
Android Studio Bumblebee | 2021.1.1 Patch 1
Build #AI-211.7628.21.2111.8139111, built on February 2, 2022
Runtime version: 11.0.11+9-b60-7590822 amd64
VM: OpenJDK 64-Bit Server VM by Oracle Corporation
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 8
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: org.jetbrains.kotlin (211-1.6.10-release-923-AS7442.40)
delete
C:\Program Files\Android\Android Studio
and rename
C:\Program Files\Android\Android Studio1
to
C:\Program Files\Android\Android Studio
should solve the problem.

Android studio installation folder not recognize

Android studio v4.2.1 installation folder not recognize when I select Help -> Edit Custom VM Options...
it show below path.
Whereas my Android Studio installed in C:\Android\Android Studio.
I set STUDIO_VM_OPTIONS=C:\Android\Android Studio\bin but not working.
Seems you are not installing Android Studio to the default location path which is : C:\Program Files\Android\Android Studio, and the Android SDK should be installed at : C:\Users\username\AppData\Local\Android\Sdk.
Check out this URL for guidance : https://www3.ntu.edu.sg/home/ehchua/programming/android/Android_HowTo.html#:~:text=by%20default%2C%20the%20%22Android%20Studio,Local%5CAndroid%5CSdk%20%22.
Try to re-install your Android Studio using the default options and paths.
Copy the file studio64.exe.vmoptions from the following path:
C:\Program Files\Android\Android Studio\bin
to
C:\Users\home\AppData\Roaming\Google\AndroidStudio4.2
Move your Android Studio folder to C:\Users\your.username\Android-Studio and retry
Sometimes cmd not recognize your file location , maybe permissions or other thinks.

Why is emulator in Android Studio giving the wrong path? C:\buildbot\src\android

When I start my Android Emulator for flutter, it continuously gives the following error.
Emulator: C:\buildbot\src\android\emu-master-dev\external\qemu\android\android-emugl\host\libs\Translator\GLES_V2/GLESv30Imp.cpp:glWaitSync:560 error 0x501
whereas I'm unable to locate this path on my system. I'm running Android Studio on Windows 10 Pro.
My original android location is as follows.
C:\Program Files\Android\Android Studio\bin
I upgraded Android Studio to latest version and that fixed it.

Resources