Error Execution failed for task ‘:app:mergeReleaseResources’ building APK

The problem occured becaused when I tried to build once, it has created drawables dirs on android/app/src/main/res/. Then when I tried on second time, it has shown me this error Execution failed for task ‘:app:mergeReleaseResources’ building APK I just deleted the drawable-* dirs and it worked. Hope it helps! rm -rf android/app/src/main/res/drawable-*

Android Install on Device Failure [INSTALL_CANCELED_BY_USER]

Happens to my Xiaomi phone after updated it to MIUI 8. Took me hours to figure it out! Check the followings if you’re a victim too: Go to Settings -> Permissions -> Install via USB: Uncheck your App if it’s listed. Go to Settings -> Additional Settings -> Privacy: Check the Unknown Sources option. Finally … Read more

How to run (not only install) an android application using .apk file?

You can’t install and run in one go – but you can certainly use adb to start your already installed application. Use adb shell am start to fire an intent – you will need to use the correct intent for your application though. A couple of examples: adb shell am start -a android.intent.action.MAIN -n com.android.settings/.Settings … Read more