I tried to start two emulators for the same project in the Android Studio. For the previous version, it's kind of easy. I just need to click on the run button and choose a new emulator.
After I upgraded to the Android Studio 2.3, the latest version now, it will always run in the running emulator. The dialog that asks me to select a different emulator never show up, which used to be there in the old version.
Anybody have some ideas on that? Thank you so much!
after the first Run,
stop it by clicking the stop button (red square, top | centre)
then Re run
Related
In Android Studio, when I press play button to install and run the app on the Android Emulator, after about 5-10 seconds, I get a message on the bottom of the screen saying "Install successful" but the app doesn't actually run on the emulator, I have to press the play button again. This is quite frustrating because I have worked on projects where I just press play once and it installs and runs at the same time.
I tried searching this forum but couldn't find an answer. Does anybody else experience this and how do you fix it?
EDIT: Looks like the 'Run on Multiple Devices' option has been removed from the latest Android Studio update. The problem has started again and I can't seem to find a workaround or a solution.
--
Outdated solution:
Instead of clicking on the icon, I started using the dropdown box, clicking on 'Run on Multiple Devices', selecting the devices and clicking 'Run'.
This seems to have solved the problem for now.
I am using
Android studio 2.1.1 Build #AI-143.2821654 build on April 28, 2016.
JRE: 1.8.0_77-b03 x86_64
OS X El Capitan 10.11.3
I have met Android studio mouse problem a lot of times recently. I cannot use mouse to click anything in Android studio. All I can do is to use keyboard and shortcuts.
And only solution I found is to restart my whole computer. I have noticed that there is problem in other version of Android studio. So my question is that how can I deal with it?
I found that sometime I can reproduce this problem after I middle click the Editor Tab to close tab.
Just had this issue this morning. Android Studio wasn't responding to mouse click events. The odd thing was that it was responding to mouse position (tooltips, hover effects).
I updated to the newest version of Android Studio using Android Studio > Check for Updates and navigated the dialog menu with tab and spacebar. This did not solve the issue, but is probably worthwhile to try.
I'm not 100% certain what solved it, but I started pressing other buttons on my mouse (right-click, middle click, etc). Eventually it started accepting my left-click input again.
It happened to me with Intellij IDEA, when a dialog window has been opened by the IDE, but for some reason it is hidden behind the main window. You may try to find if there is any open dialog and close it.
I had the same issue on my Android Studio (4.1.1) on my MacBook Pro (macOS 11.1). For me, I just restarted my MacBook and the mouse click started working on Android Studio.
Not sure what caused it.
The mouse clicks thing and closing the android studio from task manager and open again did not help for me. im not sure why but CTRL+ALT+DELETE and going back to desktop fixed the problem.
Here is how I fixed this issue:
Use keyboard arrows and tab key to navigate to google assistant
Press enter to launch it
type and search "Power Menu : Software Power Bu"
navigate to install the app in results from playstore
Open the app after install and accept & set permissions
Open Power Menu now And you will get Android Power Options
Navigate to "Restart" and restart device
Viola!!! Now Emulator clicks works
In my case it happened, because one of the plugins started crashing in the loop, somehow disabling mouse click handlers.
Verify logs
Log file location:
~/Library/Logs/Google/AndroidStudio2020.3/
Remove bad plugins
~/Library/Application Support/Google/AndroidStudio2021.3/plugins
I am using Android Studio 0.9.9 and Genymotion 2.3.1.
When I press run app in Android Studio, the Android Studio will allow me to choose to deploy my app in Genymotion which I usually do.
At this point, the app is running.
Let say at this point, I want to make a change in the code.
I saved the changes in Android Studio.
How do I reload my changes and redeploy the app without rebooting the Genymotion?
EDIT
Ultimately, just upgrade to latest stable downloads of Android Studio was the solution.
Press F1 in Genymotion and click on "Reload JS" incase of react-native app development.
Press F2 for Android Studio emulator.
First as eyal-lezmy mentioned you should download Android Studio 1.0.2 Stable edition, (you always want the latest edition, especialy if the IDE is that fresh as Android Studio is.
If I understood correctly you want to erase and re install your application from your emulator. To do so,In your emulator, go to Menu-->Settings-->Apps, then choose your application and unistall it. Then, go to Android Studio and run your applciation.
Edit considering your comment
Reload being the fact that if my app has a button in activity A, and I press it, and it opens activity B, and I go back to Android Studio to type a comment, I want to reload the app and it auto starts right back at activity A.
If you make any change to your code, then to see in in action you must re-run the application. However, if you want your default starting activity to be Activity B, then you should go to your manifest file, remove this from Activity A code:
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
and place it inside the activity B code, where you want your application to start from.
-Turn off the emulator
-In Genymotion Window click the settings icon infront of the device name
-under "Android system options", check the "Show Android navigation bar"
-click ok and start the emulator
You will get the navigation bar from where you can kill the app
I have met a similar problem in Android 2.3.7 under Genymotion. I just closed the application before starting
If you only need to reload (refresh) an application on your Genymotion mobile device emulator and see your last changes in the code, you are going to do the following:
Go to the window of Genymotion virtual device, that you run yet;
Point cursor on the top bar with ᴧ Expo logo
Make left click mouse and hold it
Move cursor to the refresh symbol ↻ and push on it
You actually don't really need to do nothing.
When you click on the IDE's button to build and deploy your app. Android Studio will close it, install it and then run it again including your changes.
What's happening on your side?
Btw, I really advise you to update Android Studio, since the 1.0 version, the soft is very stable and behaving really as expected.
I'm a newbie that needs some help on getting the AVD running with my app. I've been developing C code for decades, but I have to admit the Eclipse/AVD setup has me stumped! I'm following the 'HelloWorld' tutorials on the developer.android website (and some others) and everything seems to be working OK, up to the point where I try to run it on the AVD simulator. I'm not getting any warnings, the Eclipse build/run output window says that everything is installed OK and the AVD does startup and run. Eclipse says that my app is loading, but it never runs. All I get is the simulator window with "ANDROID" on the screen and the buttons on the right-hand side.
I've got Eclipse Indigo and r18 of the Android PlugIn (I tried to install Helios, but the Eclipse website directed me to Indigo!). Is Indigo OK for running the simulator, or do I specifically need Helios? I also have Java 1.7.
The API level I have installed is Level 15 (v4.xxx of Android, I think). Don't know if I need a lower version to get my tutorial app to run, but level 15 is the only one I can select when setting up a device in the AVD manager.
I've been trying to get this going for days, trying all sorts of switches and buttons, but to no avail. Before I start uninstalling everything and reinstalling, can anyone advise if there is anything I might be missing, or has tripped over this problem themselves and found a way around it? Something that always trips up new starters maybe? Or do I need to go back to scratch?
Any help would be much appreciated.
How long are you leaving your emulator running after you attempt to launch your application? The Android OS can take a long time to boot up in the emulator. If it's stuck on the "ANDROID" screen then you're either not waiting long enough or there's something wrong with your emulator. It should eventually boot into the normal Android lock screen or home screen just like a device.
You can launch your emulator ahead of attempting to run your app by opening the Android Virtual Device Manager (toolbar icon in Eclipse, if installed properly) and then selecting an emulator and clicking the "Start" button. If you don't have any emulators listed, then you need to create one by clicking the "New..." button.
This is my first time running Eclipse on a mac. For some reason, when I launch an app in the emulator, while the console tells me that it successfully started the app, I can't see an emulator window anywhere. I know its running bc when I tried again, console told me "Activity not started, its current task has been brought to the front."
How do I find the emulator?!
Did you try cycling through open applications with command-tab or clicking on the application icon in the dock? Running applications will have a bright dot under them.
Ok, I'm using MotoDev Studio. Apparently I had to click the little cell phone icon in the bottom right to bring up the emulator.
Thanks all!