I'm working with a device running Android 5.1 and using Android Studio 3.4.1. I've enabled developer options on my device. See image below.
Now when I connect the USB cable from my Android device to my windows machine and click on the debug icon in Android Studio I get the following errors/messages:
05/23 09:18:20: Launching app
$ adb push C:\Users\nortonj\Documents\Projects\AndroidApps\transact_esn_registration\app\build\outputs\apk\debug\app-debug.apk /data/local/tmp/TransAct.AccuDate.ESN_SN.Registration
com.android.ddmlib.AdbCommandRejectedException: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.
Error while Installing APK
See image below of my Android Studio window.
And in the "Select Deployment Target" dialog I see the following:
So a few questions:
Look gradle/app
buildTypes { debug { debuggable true } release { minifyEnabled true shrinkResources true proguardFiles 'proguard-rules.pro' } }