Android Studio is not Starting - android-studio

I have recently installed latest version of Android Studio for Windows 7 32 bit. But after setting up the environment for it installing java jdk and also setting the path variable also all of a sudden it is not starting i am clicking clicking and clicking but the windows does not appear
When i try to debug that through cmd when i try to run studio.bat it says initial size of heap is set to larger than available.
studio.exe.vmoptions file

Related

Android Studio 4.1 - Error Loading Studio (JAVA_HOME & JVM)

HISTORY
Android Studio was installed successfully the first time during a walk through as part of a Flutter tutorial (including installing Git and Flutter)
Trying to launch Android Studio the second time produced the following error:
[Error launching Studio
If you already have a 64-bit JDK installed, define a JAVA_HOME variable in Computer > System Properties > System Settings > Environment Variables.
Failed to create JVM. JVM Path: C:\Users\Anthony.AndroidStudio4.0\jre\jre]1
RESEARCH
I've seen several YouTube videos addressing this that appear to be successful, but just don't work for me.
Video showing how to delete VMoptions file and check JAVA_HOME:
(my folders seem to be configured differently, but I have two VMoptions files in the bin and one in the AppData\Roaming\Google\AndroidStudio4.1 The one in AppData just contained a link to an Android support page, but the one in bin had a lot of data. It was deleted (first just the contained data within and later the file was deleted entirely)
Key points:
It seems that the issue is either with Android Studio or the Java JDK
JAVA
I've downloaded and installed Java JDK 13, and set the bin folder as the environment variable (both system variable and path) as shown in https://www.youtube.com/watch?v=IJ-PJbvJBGs
I've also tried with JDK 8 (legacy version) with the same results
ANDROID STUDIO
I've uninstalled and reinstalled Studio 4.1 and the same thing happens. I can't locate prior versions on their site.
COMPUTER Windows 10, i7, 32gb ram
value = "C:\Program Files\Android\Android Studio\jre"
Android studio 4.1, Flutter

Android Studio not starting in Ubuntu 20.04, since I edited the vmoptions from within the Andrioid Studio Settings

Android Studio not starting in Ubuntu 20.04, since I edited the vmoptions from within the Android Studio Settings.
The terminal output after running ./studio.sh :
Invalid maximum heap size: -Xmx4096m # <------ increase this to most of your RAM
Just go to home and delete the .config file

Android Studio takes too long to launch or open

When I run Android Studio it takes too long to open. Approximately 30 minutes.
I have an i5 processor with 4 GB ram & 1 TB and run Android Studio version 2.2.3
I have tried many different versions but none of them are working properly, not one has ever opened.
Help me out with this. Tell me what I should do so that Android Studio will run a little bit faster!
You may consider the steps you applied during installation.
I'll suggest you use your command prompt window to check your jdk version. Run your command prompt terminal and type : java - version
Notice the build. If youy build is less than version 7, you would need to download the latest java jdk from the official site.
Hence you would need uninstall your android studio, upgrade your jdk, then re-install the android studio.

Android Emulator won't start from Android Studio on Windows 10

Recently (after install Android Studio 2.3.x, I'm now at 2.3.1) the emulator won't start in Android Studio.
I can run the emulator from the command line if it is in the SDK\tools directory.
If I run the emulator from a directory other than the SDK\tools directory I get an error like this:
[12236]:ERROR:./android/qt/qt_setup.cpp:28:Qt library not found at ..\emulator\lib64\qt\lib
Could not launch '..\emulator/qemu/windows-x86_64/qemu-system-i386.exe': No such file or directory
The tools and platform-tools directories are in my path. Android_home is set correctly. First I tried re-installing the emulator from the SDK manager in Android (now that the standalone SDK manager is gone I can't do it there). I manually downloaded the SDK and installed it overtop of the old SDK. I then tried putting it in a new directory and changing the ANDROID_HOME and updating my paths and changed the setting in Android Studio (and all the local.properties files). Next I completely uninstalled Android Studio and SDK, rebooted and reinstalled Android Studio. Still having the same problem.
I've tried the suggestions here in the question here: Emulator on Android Studio doesn't start after SDK tools update to 25.3.1 by copying various directories (first sym-links then copy directories as sym-links work differently on windows).
I've tried all the suggestions here: https://issuetracker.google.com/issues/37137213 as well.
I've re-installed HAXM, but I don't think it is an Emulator problem as it does work when I start it from a command prompt in the tools directory.
Any suggestions?
Details:
Windows 10 (Build 1703)
Android Studio 2.3.1
I've resolved the problem in this way:
in command line, from the folder containing avd images, I've run the emulator.exe against a virtual device image using the switch -gpu swiftshader.
To be precise, in my case, in command line, from the folder C:\<Users>\.android\avd I've typed
<android sdk folder>\emulator\emulator.exe #Nexus_4_Lollipop -gpu swiftshader
where Nexus_4_Lollipop is a name of the avd image.
Changing Graphics settings from "Automatic" to "Software - GLES 2.0" in Virtual Device Configuration worked for me. I think it's the same as "-gpu" command line option, but not all modes available: https://developer.android.com/studio/run/emulator-acceleration.html

Android Nougat requires the IDE to be running with Java 1.8 or later [duplicate]

This question already has answers here:
Android N requires the IDE to be running with Java 1.8 or later?
(17 answers)
Closed 6 years ago.
Inspite of having JDK 8 installed, I'm getting this error. What can the issue be?
Check installed java version, it should be 1.8 or later.
MBP-Vitaliy:~$ java -version
java version "1.8.0_92"
Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)
Check java version in Android Studio.
In Mac OS X: Android Studio -> About Android Studio.
Where JRE should be 1.8 or later.
If you have another, In Mac OS X go to Applications folder find AndroidStudio.app and click Show content, then find in Content folder Info.plist file and change JVM VERSION to 1.8 manually.
<key>JVMVersion</key>
<string>1.8</string>
Restart Android Studio.
for mac users #Vitaliy Movchan answer works.
for windows users (who has to set JAVA_HOME in their operative system):
Install the JDK 1.8 and note the destination path, usually C:\Program Files\Java\jdk1.8.0_xx
Right-click My Computer and select Properties.
Click the Advanced System Settings link in the left column.
In the tab Advanced click Environment Variables
Create or modify the variable JAVA_HOME.
Enter the variable value as the installation path for the Java Development Kit.
You can still get the layout rendered during design time in the IDE if you choose Android version 23 (Marshmallow) rather than version 24 (Nougat).
This isn't a long-term solution, but for most purposes it should be good enough. You can always see the actual Nougat layout by running your app in the Android emulator.
Add JVMVersion 1.8*, 1.8+ to info.plist of android studio app and also check for default java version
I had the same problem, in my system i have installed 3 jdks.
jdk1.6, jkd1.7, and jdk1.8.
I am working on some projects which requires jdk 1.7 so i can't change JAVA_HOME.
So i have found another solution by tell android studio which JAVA_HOME needs to be used.
So i just edit studio.sh file and added JAVA_HOME variable.
JAVA_HOME = /usr/lib/jvm/java-8-oracle/
studio.sh file
After Restart android-studio started pointing to jdk 1.8.
Hope this will help.

Resources