I am facing a weird experience with Android studio that during when it suddenly hangs, the previous changes that I made in my project are not saved. This issue happened for me several times when I close the Android studio manually from Task Manager during system crash or when I get Android studio not responding error. This kinda error is not occuring if I save the workspace often through ctrl+s(Save) or ctrl+shift+s (Save All), but these issues I have never faced with Eclipse previously I used for development. So kindly please mentor me whether is there any settings that I have to change or update in my Android studio to resolve this issue. Your solution would help and useful for me to prevent my code from losing the changes I made. Thanks in advance.
Please text me if my question is not clear. Expecting your valuable answers and solutions. I have been facing this issue since I started using Android studio and because of this I have lost lots of data in my code.
Have you allocated the correct amount of ram to the avd? As well as having enough to run studio anyway? Additionally Cpu can be an issue if you're using something like an i3 or low end i5.
I can't run studio on my laptop due to it being generally bad but also the Cpu can't take the load.
Related
Hey guys and girls for a the past week I've grown a lot of interest in android studio (even without knowing quite much about it) I decided to create an app that I deemed quite useful. However the app required maps to be integrated in it and I really did not know what I was doing and at one point I started messing with the settings and then all hell broke loose and I kept getting AAPT2 errors and I even tried to fix this issue with the gradle properties line that you add (I forgot the line of code to add). Anyways it still didnt work. However I rembered that I always kept the good version (before I broke everything) of the app on my phone. So when I go in my phone the app is there and it works just fine. Ive tried so many things to get the source code from the app on my phone without any succes. My question is, how can I get the source code back from the working app onto my laptop to continue coding in android studio? If it helps I am using Linux 18.04 LTS and running the newest version of android studio. Thank you for any help from you guys. This means a lot to me.
You can’t get back the ‘source code’ from an already compiled app.
You should consider using some version control platforms like git from the next time
Lately I've been having problems with Android Studio, mostly what it seems with code synchronization. For example, I'll comment out a section which is causing the issue and sync the project before running it again, only to have the Android Monitor point out to the line in comments, as if it still interprets it as code. I'm curious what you would recommend? A full reinstall? Is there any feature that restores default settings and would alleviate this issue?
Thanks in advance.
I have had this weird problem with android studio, The UI seems to ghost randomly and will disappear when I click somewhere in the software.
I have searched around and can't find anything that seems related, I have wasted hours trying to figure out whats causing this, anyone got any idea?
It looks similar to when a system lag's really bad and UI messes up, but this is definitely not the issue.
Its android studio 1.4 on Windows 10.
Any help would be greatly appreciated.
Image Below:
Android Studio 1.4 UI
Delete android studio, including the user settings, and reinstall it again. That worked for me very well for me.
I am having a good problem with Android Studio. Initially I was using eclipse to develop android App, but eclipse display funny stuffs like deleting all my codes and most times crashes so I decided to try Android Studio.
Now am using android studio, but whenever I open an activity to start typing code, the IDE forcefully shuts down. Initially i tougth this happens when there is an error in your code, because I had an instance where the IDE shut down, was fixed by correcting the errors. But now the codes are all correct and when I install on emulator it installs properly.
But whenever I open an Activity and start to type Android Studio shuts down. I have tried to check for similar question, but could not find anything suitable. Please I need your help because I have a lot of project with deadlines and this AS behaviour is making me run nuts.. Thanks
There might be memory issue with Android Studio. I recommend you to shutdown all the heavy-weight memory consuming application like Chrome etc. to be shutdown.
I hope it will help.
Thanks all I finally got the solution to the shutdown. I had to create all the Activity used from AS and copy the codes into each file created. Initially i copied all the Activities, resources and Manifest I created in eclipse and paste them into AS. I guess AS doesn't perform auto update and this cause it not have have reference of the pasted files in memory making it to crash.
Sometimes some plugins keep running if studio crashes and they consume so much memory that studio is not able to launch again.
Or see if other applications are running and consuming much memory.
Or you can restart the system.
My studio's current version is 0.9.9 (recently updated), now here is the history:
There was some problems when I shifted eclipse to studio. The last problem happened when I updated it. My app became full of error. One of them was cannot resolve Symbol ActionbarActivity. And so many others. I spend a day behind it and gave up. I recreated my app from first to last with the same resources, then it became totally good to go. Three days later(today) again another problem raised. I turned on my laptop, opened Android studio and it says Rendering problem No Android SDK found. Please configure an Android SDK. But last night it was running fine. Now there is no design window.
I am wondering that why the errors come automatically. I don't do anythings in the settings stuff of the studio. I just develop my app. I just write code and make my app. So whats wrong with the studio. It crashes without any reason and I have to waste the half of the time. Is this a kind of jokes? It too much irritating. Updating latest version is not the reason. The problem is occurring from whenever I downloaded the Android Studio and shifted from Eclipse to it. With 2 or 3 days intervals it comes with new problem.
I suggest you to try fresh Installation or, As it happens because of some internal Intellij's libraries problem.