./gradlew cC报错: Unable to install xxx/app-debug.apk,User rejected permissions
volity opened this issue · 0 comments
用的是mac,只连了一个android设备,adb devices正常,用monkeyrunner的时候一切正常。在./gradlew cC的时候报了如下错误:
Task :app:connectedDebugAndroidTest FAILED
06:38:39 V/ddms: execute: running am get-config
06:38:39 V/ddms: execute 'am get-config' on 'AYKNW18505005564' : EOF hit. Read: -1
06:38:39 V/ddms: execute: returning
06:38:39 D/app-debug.apk: Uploading app-debug.apk onto device 'AYKNW18505005564'
06:38:39 D/Device: Uploading file onto device 'AYKNW18505005564'
06:38:39 D/ddms: Reading file permision of /Users/xxx/Downloads/android-uiautomator-server-master/app/build/outputs/apk/debug/app-debug.apk as: rw-r--r--
06:38:39 V/ddms: execute: running pm install -r -t "/data/local/tmp/app-debug.apk"
06:38:40 V/ddms: execute 'pm install -r -t "/data/local/tmp/app-debug.apk"' on 'AYKNW18505005564' : EOF hit. Read: -1
06:38:40 V/ddms: execute: returning
Unable to install /Users/wuwh/Downloads/android-uiautomator-server-master/app/build/outputs/apk/debug/app-debug.apk
com.android.ddmlib.InstallException: INSTALL_FAILED_ABORTED: User rejected permissions
求助各位大佬,这是怎么了?