I right click my project-> Run -> All Tests
Its Building and Installing in my Devices.
But app is not automatically launching like in eclipse.
It seems like I installed it through adb install
in terminal. Need to manually open each time I installed.
Unplug your device from the USB port on the computer. Restart the device by powering off and back on. Verify that Settings => Developer options => USB Debugging is enabled. Quit and re-launch Android Studio.
Improper installation can cause Android Studio to keep stopping. When apps are installed on a device, all the necessary files to run the app will be stored on the device. Once any required files don't store on the device, the app will not work properly and may keep sudden stops.
Open Start menu > Computer > System Properties > Advanced System Properties In the Advanced tab > Environment Variables. Add new system variable JAVA_HOME that points to JDK folder, C:\Program Files\Java\jdk1. 7.0_13\
It is because you are running it as a 'test' and not as an 'Android Application'.
Then every time you run, make sure you are running as an Android Application and not a test, and it will auto-launch on install.
File > Invalidate Caches / Restart fixes the problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With