具体报错信息如下,重点,Failure [-26: Package com.macaca.android.testing new target SDK 18 doesn't support runtime permissions but the old target SDK 25 does.]
请问大家知道这个是什么原因吗,需要如何解决,多谢
$app-inspector -u GWY0217208004725 --verbose

request.js:24:12 [master] pid:70885 get remote update info failed.
server.js:16:12 [master] pid:70885 server start with config:
{ port: 5678,
verbose: true,
udid: 'GWY0217208004725',
ip: '192.168.0.103',
host: 'localhost',
loaded_time: '2018-02-24 18:56:41' }
app-inspector.js:43:12 [master] pid:70885 server start at: http://192.168.0.103:5678
{ Error: Command failed: /Users/XXX/Library/Android/sdk/platform-tools/adb -s GWY0217208004725 shell "pm install -r "/data/local/tmp/com.macaca.android.testing""
Failure [-26: Package com.macaca.android.testing new target SDK 18 doesn't support runtime permissions but the old target SDK 25 does.]

at ChildProcess.exithandler (child_process.js:275:12)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Socket.stream.socket.on (internal/child_process.js:346:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at Pipe._handle.close as _onclose
killed: false,
code: 1,
signal: null,
cmd: '/Users/XXX/Library/Android/sdk/platform-tools/adb -s GWY0217208004725 shell "pm install -r "/data/local/tmp/com.macaca.android.testing""' }

我的 macaca doctor 信息为
Android checklist:

JAVA version is 1.8.0_121
JAVA_HOME is set to /Library/java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
ANDROID_HOME is set to /Users/XXX/Library/Android/sdk
Platforms is set to /Users/XXX/Library/Android/sdk/platforms/android-26
ADB tool is set to /Users/XXX/Library/Android/sdk/platform-tools/adb
gradle is installed, version: 4.1

Installed driver list:

android: 2.0.46
chrome: 1.0.7


↙↙↙阅读原文可查看相关链接,并与作者交流