I can't open the Resource Manager from Android Studio. It says "Waiting for the build to finish..." forever. I waited more than an hour but I still have the same issue --build never finishes.
How do I make sure build finishes?
I had the same problem. I Have tried many things but didn't work. Then I reset my android studio and now it's working.
For resetting,
How to reset Android Studio
Related
Waiting for the HoloLens Emulator's OS to boot up every time I make some changes to my app and I recompile can be annoying. Is there a way to deploy a new build to an already running emulator?
Yes, just don't shut down the emulator. You can push the Stop button in Visual Studio, make your changes in Unity and rebuild. Your open project should detect the changes and ask you to reload the project. Hit the Play button in VS and your new code is redeployed to the emulator.
I have a very big problem using Android Studio.
Every time I make a code changing, I have to check if all has gone well launching my app; but as soon as I click the "Run app" or the "Apply changes", it's the end: it starts the Gradle build process, which take even 30 minutes to complete, and furthermore Android Studio take the full control of my computer, not allowing to do nothing anymore (like open the browser, open notepad++, and so on...).
Can anyone help me?
Thanks
If you use Eclipse you won't have this problem anymore. but if you want to stick with android studio and gradle you can run your emulator and gradle once and whenever you want to compile your code run it on the already built gradle. this means that do not close the emulator and run your program on it again and again. this way you will not have to spent alot of time on loading the emulator and gradle
Android Studio is not a very light software.It uses a lot of your system RAM and CPU power.So if you are using an old system then it is obvious that android studio will run slow.If possible then upgrade your system.
And one more thing it's better to use actual device rather than Virtual Emulator for our application working test.
i am testing my code but i have a problem, when i try to run the "Debug" process my cell phone get stock on Waiting For Debugger screen and i have to use Attach Debugger to Android Process on Android Studio, it used to attach automatically but i have been changing my android studio configuration, if there any way to make it automatic again i tried i lot but i can't find it?
Try toggling Tools-> Android -> Enable ADB Integration off and on, I had this issue when switching to the beta 2 of Android Studio 3. This helped me solving the issue.
Yesterday I updated the Android Studio to 2.2 (from 2.1.3). Since that the Android Studio always start gradle sync at startup on every opened projects. I found this question and I tried Mick's suggestion, but unfortunately that did'nt worked for me.
If I open Android Studio, and I wait until load my projects, sync gradle and then I close Android Studio (without any change on my projects), and after that, I open it again, AS also do the same as before (run a gradle sync again senselessly).
I think, this is not a serious problem, but it's pretty weird, because it sync senselessly (otherwise I start gradle sync manually if I need to, but AS start it on every startup senselessly), and I need to wait little more to start coding (a little waste of time and energy).
Maybe this is what you want.
gradle --stop
Short Story - Android Studio doesn't open AVD and SDK Manager all of a sudden. It throws an error 4:18:46 PM ProcessNotCreatedException: Cannot run program "C:\Users\xxxxx\AppData\Local\Android\android-studio1\sdk\tools\android.bat": CreateProcess error=2, The system cannot find the file specified:..
Long Story - This may sound impossible but here is what has happened. I have been using Studio for a week now and have been running a few AVDs since day 1. Today, I opened Studio again, executed my app on one AVD, closed AVD, made some changes, reexcuted my app and waited for available AVD dialog box to open.. but instead got above mentioned error. Just like that. I didn't do anything else. It was working like a minute ago. I checked various related questions on stackoverflow but couldn't solve it. Just thought of mentioning it if it helps solving the problem.
I checked various related locations and here is what I found - no android.bat, SDK Manager or AVD Manager. While I am surely interested in finding how they disappeared all of a sudden, I am currently more interested in fixing this issue (AVD and SDK Manager not opening).
C:\Users\xxxxx\AppData\Local\Android\android-studio1\sdk
C:\Users\xxxxx\AppData\Local\Android\android-studio1\sdk\tools
C:\Users\thakkap\AppData\Local\Android\android-studio1\sdk\tools\lib
C:\Users\xxxxx\AppData\Local\Android\android-studio1\sdk\build-tools
C:\Users\xxxxx\AppData\Local\Android\android-studio1\sdk\platform-tools
Probably somehow you just lost Android Sdk Tools which was installed before. Just download Android Sdk Tools again and you will be able to open sdk manager. Don't forget to run Android Studio as an administrator.