I want to install a developing app to some emulators and devices for testing.
Just press run, android studio will make, build and then install. It seems useless to make and build everytime if I don't modify code. And building will cost much time.
So, how to just install app without building everytime.
It is possible to just install the apk:
adb install -r PATH/TO/PROJECT/build/apk/PROJECT-(release|debug).apk
If you are using Android Studio, open the Terminal window.
Then:
adb install -r app/build/outputs/apk/app-debug.apk
This is a slightly different path than shown in the accepted answer, which may be due to updates in Android Studio's build path. In an example project where a normal build/run takes 30-60 seconds, this took about 1 second in comparison. If the app was already running, it will exit and can be run from its icon in the device OS.
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