I am currently developing an Android App. Four days ago I messed up the Git repository I was working with and I decided to create a new Android Studio project and clone the repository inside this new project.
Since then Android Studio freezes like every 2 - 10 Minutes. I even installed Canary 12 for that reason, I tried to remove everything I found regarding Android on my Computer before! Nevertheless, I still get those freezes.
I already set memory to maximum. At the time Android Studio crashes the total memory consumption is not above 50%, so it can't be a memory problem (in my opinion) - any ideas?
I would try File > Invalidate cache and restart, maybe disable all non included extensions. if that does not work try restarting your computer and/or reinstall android studio.
Related
I accidentally ran my Android Studio project on an emulator (for a different device) instead of my real device (forgotten I unplugged it), and the whole computer froze/ran out of memory. No big deal I thought, I turned off my computer and started it again.
However, now when I start Android Studio, I run into problems. It first says indexing for a very long time (like 10 minutes+), then it goes to Building symbols also for 10 minutes+, until it warns me about low memory and eventually runs out of memory.
The out-of-memory error window gave me the opportunity to increase the memory limit and I tried increase the memory field to 2000 (from 1200 something), and that is where I am now, still building symbols 20 minutes later.
Edit: Now it ran out of memory again.
Note that before, when I start Android Studio, everything was set up
within minutes
What should I do? Do I have to reinstall Android Studio? Should I change these memory settings to something else, or clean up Android Studio settings somehow?
What finally worked for me was downloading version 3.2 of Android Studio (if I download via Ubuntu Software it is version 3.3), installing to a different directory and reinstalling the sdk to a different directory. Not sure what part of that was the solution, but anyway, if anyway has the same problem they can try this.
Try going to File then Invalidate Caches / Restart
Try going to C:\users\.android\avd and remove all folders. If the issue is related to your emulators, deleting all folders might help.
I am new to the Android Studio. I installed Android Studio when I try to build the new project it keeps on downloading some files for hours and hours. It shows this thing:
When this happens, I usually restart my PC after trying to rebuild/clean, close and reopen the project.
Similar issues may occur also while waiting for the emulator to load or the APK to be installed on it as well.
However, there are some updates that may really take a while to complete just like when you update many SDK standalone elements, for instance.
After updating my Android Studio to version 2.2.1 I can't get my app to display anything except black on the screen of my phone. Before updating it used to work. The app uses OpenGL ES 2.0. It works on an emulator but not on the real device. The app is running, it plays sounds as I touch on the screen, it's just not displaying anything. My phone is Huawei Honor 7.
I've tried everything I can think of such as restarting the phone, deleting the app from the phone, cleaning the project multiple times, manually deleting all the build directories and .iml files, disabling the instant run, building with different gradle versions, testing previous revisions of the app, switching between debug and release builds etc.
What could be causing this?
I still don't know what caused this, but what I did to get it working was that I deleted my previous project from Android Studio and made a completely new project with all the new project files stuff that Android Studio created for me, including CMake stuff that didn't exist before, and then copied all the relevant content to it from the previous project. Took one whole day but now at least it works. A lesson learned: Don't update your Android Studio if you're not prepared to spend some time fixing issues. I wish the Android Studio guys had hard of a concept called backwards compatibility...
Android Studio not executes the IDE, it only shows the splash screen, after few seconds, it dissapears.
I tried the following solutions:
I uninstalled the program and installed again
I restarted my PC after installation
I added "JAVA_HOME" and "JDK_HOME" as environment variables
I checked if "studio.exe" process is executing, if IDE is executing in background.
I executed Android Studio as "Administrator"
I disabled Antivirus temporarily
I deleted ".android", ".AndroidStudio", ".gradle", ... folders
These solutions not worked.
Which is the problem with execution?
If you have done this:
do you have installed the JAVA SDK donwload the latest release from here!
be sure to have configured the JAVA_HOME and JDK_HOME in your environmet variables.
then check the .log file generated by Android Studio to get more information about your issue:
C:\Users[MyUser].AndroidStudio1.2\system\log\idea.log
I recently experienced this issue as well.
It was related to me having dual monitors and oddly the secondary screen was not able to load android studio.
In my setup the issue resolved itself once the secondary screen was made the primary screen ( I have an ATI graphic card 8300) with Android Studio 2.3 and Canary build 3.x
This is typicaly a low memory problem. I currently have the same and I was able to make few correlations. If you start your task manager, you will notice that "Disk" goes to ceiling when starting Android Studio. Actually, you will surely notice that it goes more often to 100% that you'd expect and Android Studio is just the perfect vector to observe this, since it consumes a lot of resources.
The annoying part of the answer is that this "Disk 100%" bug on windows 8.1 is really widespread and solutions doesn't seem that straightforward. For the record, if I find my cause (or if I'm all wrong in my hypothesis), I'll keep you posted.
Regards
I've been using Android Studio for the past few months, and I've noticed that it's a lot slower to build an app than Eclipse. For instance, in Eclipse, if I were to modify a line of code and then re-build, it would take less than 10 seconds. The same act in the same project in Android Studio causes the build process to last more than a minute (sometimes 2). Is there any setting or configuration I can change to help with this? Is it gradle related?