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.
Related
I've installed the newest version of Android Studio with the installer on my Windows 10, currently it's version 2021.3.1.17 Dolphin.
Upon launching it, the splash screen appears and the little bar loads to the end and then it gets stuck indefinitely on that screen. All I'm seeing is this:
I've tried the following stuff already:
Completely uninstalling Android Studio, making sure all the files have been removed correctly before re-installing it (except the JetBrains folder, since I have other JetBrains stuff in it)
Re-Downloading the installer from the official Android Studio Website to make sure it was not corrupted.
Run as Administrator.
Was previously installed on a non-primary drive D:/, and I've also tried installing it on my primary drive C:/ just in case, same issue with C:/ installation too.
Ran studio.bat to see any errors, however, I'm assuming that bat file itself is buggy. It tells me that it does not find any JRE or JDK installation within the path. So to fix it I've set the newest Oracle JDK19 as my JAVA_HOME and the /bin accordingly, however, the studio.bat will then continue a long java error which seems honestly unfixable, so I won't even bother posting it here. Me setting the path shouldn't even be necessary, as Android Studio comes bundled with a JDK... and it should be using that one anyway.
So I'm out of things to try. I cannot make it work. My only lead was the Java error, but according to some Google search, I shouldn't even have to deal with it as it comes bundled with Android Studio. Looking into the files, there is indeed a jre folder within the Android Studio installation. Is it not using that one? What could be the reason that it is not using it if that is the case?
So, I was able to fix it myself after trying a few hours more. I've had also other Java installations (Java JDK 8, JDK 19) that interfered somehow with Android Studio. I've uninstalled everything related to Android Studio and I've uninstalled every Java version I had.
Additionally, I've removed every reference to Java or Android Studio from all of my system and environment variables. Also removed a path to Android SDK that was within my system variables.
After rebooting and installing Android Studio, it worked. Haven't installed any Java version so far, so not sure if the issues will return if I install my Java versions again.
System specifications: 16 GB RAM, GTX 1050 8GB, i7 8th gen, HP OMEN 17T(2018), Win 10.
On opening android studios(Fresh download), multiple(80+) OpenJDK platform binary files(consume 100MB each) are opened during Gradle build(binaries can be seen running on task manager in the given image). These files take 97% of my system RAM, following which android studio crashes due to failed Gradle sync/unable to start Gradle daemon(unable to allocate memory for object heap).
These rogue OpenJDK files do not close even after I terminate android studios and continue consuming RAM.
Uninstalling and reinstalling android studios do not seem to help.
my normal RAM consumption is 20-27% and all other system processes run fine, I have McAfee antivirus on at all times.
task manager at android studio runtime
I can't believe that this exact issue I've been facing for days was simply fixed by switching off the Hotspot in my windows 10
Don't ask me why or how I don't know,, it just fixed it,, in my case
Downgrading gradle worked for me! just open project structure in Android Studio and choose gradle version as 6.0 and plugin version as 3.6.4.
The problem was with Gradle itself, seems like a bug(as #Zoe mentioned in the comments). A temporary solution is to start Gradle in offline mode. You can let it connect to the internet once the Gradle build is complete(Gradle daemon started successfully).
I tried adding other unrelated java files in the bin folder and found those binaries to be duplicated in my task manager along with OpenJDK, hope the Studio dev team fixes this soon.
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
When trying to install the android sdk for Aldebaran's pepper robot on my computer following this official tutorial:
Step 1: android.aldebaran.com/doc/installation.html
Step 2: android.aldebaran.com/doc/create_project.html#create-project
When trying to launch the Virtual Robot Environment of Pepper's tablet on my computer this message is printed: "Robot SDK'0.9' is not complete. Please download it again or re-create the robot application."
So far I have tried the following on my Ubuntu 16.04 64bit computer:
Uninstalling and re-downloading/installing the Robot sdk over the robot sdk manager provided by the android sdk for Pepper
Uninstalling and re-downloading/installing the android sdk for Pepper
Deleting, recreating and creating the android studio application turning it into a robot application
Removing other non essential android sdks
Moreover I also tried the following on another computer running windows 8.1 64bit:
Repeating the tutorial installation
Downloading and installing older version such as 2.22 and 2.11 of the android studio and repeating the tutorial installation.
Each time after I have completed Steps 1 & 2 when I want to start building or launching the application it fails on step B from this tutorial: android.aldebaran.com/doc/run_debug.html#run-debug and prints the Error mentioned above.
The project structure is identical to the one in the tutorial and I am able to sync the project via maven. But as I cannot actually launch the virtual robot environment or run the application I cannot make use of this sdk.
I have also found a similar question being asked on stackoverflow but there hasn't been a response yet. Also I don't understand the comments.
stackoverflow.com/questions/42824942/robot-sdk-0-9-is-not-complete-please-download-it-again-or-re-create-the-robot-a
I tried using another computer with windows 10 64bit freshly formatted so I installed Java jdk & jre 1.8.0_121 and android studio 2.3.1 as I couldn't find 2.3.3:
Repeated the tutorial installation
But still the same error message.
I got mine to work doing the following:
go to your current android SDK folder
rename the tools folder to tools-old
create a new Folder named tools
download this: https://android.googlesource.com/platform/prebuilts/android-emulator/+archive/android-7.1.1_r1/windows.tar.gz
unpacke it into your new tools folder
Make sure you have your AVD Options set to arm and not x86
and that "Use Host GPU" is enabled
After that the emulator worked.(note that it takes quite long to launche)
The suspected cause is that the Pepper emulator tries to use the emulator-arm.exe wich is not availible in the standart installation of Android Studio
You should try installing Android Studio 2.3.3 on Windows 10, 64-bit. I know that works at least.
I got this working finally thanks to theGary's hint above. No need to wipe out your whole tools directory though -- I was able to get the x86 Pepper emulator running (on Mac in my case) by copying these files and directories from the Android sdk/emulator directory into the sdk/tools directory:
emulator64-x84
qemu
bin64
lib/pc-bios
lib/ca-bundle.pem
Then edit your run/debug configurations and change the “robot app” AVD options from armeabi-v7 to x86.
I had got my system formatted. I have linux mint installed on laptop with 8gb ram and Intel i5 processor.
I have installed Android studio 2.1 stable version and have configured it for instant run. First it was running very well for few days but now my laptop is hanging frequently and I have to restart it in every while.
I had increased heap size to 15000mb in gradle.properties within .gradle folder for instant run to work properly.
I had installed jdk 1.8, android studio, chrome and postman setup in
system.
Any help to fix issue would be appreciated