macacajs / app-inspector

App-inspector is a mobile UI viewer in browser.
https://macacajs.github.io/app-inspector/
MIT License
390 stars 78 forks source link

Unable to find instrumentation target package: com.macaca.android.testing #204

Open jimmyru983 opened 6 years ago

jimmyru983 commented 6 years ago

app-inspector.js:45:12 [master] pid:1936 server start at: http://192.168.1.65 :5678 uiautomator-client.js:38:12 [master] pid:1936 Package com.macaca.android.test ing is not exists,execute intsall action. uiautomator-client.js:51:14 [master] pid:1936 Package com.macaca.android.test ing.test already exists. No need reinstall. uiautomator-client.js:92:14 [master] pid:1936 INSTRUMENTATION_STATUS: id=Acti vityManagerService

uiautomator-client.js:92:14 [master] pid:1936 INSTRUMENTATION_STATUS: Error=Unable to find instrumentation target package: com.macaca.android.testing INSTRUMENTATION_STATUS_CODE: -1

uiautomator-client.js:92:14 [master] pid:1936 android.util.AndroidException: INSTRUMENTATION_FAILED: com.macaca.android.testing.test/android.support.test.run ner.AndroidJUnitRunner at com.android.commands.am.Am.runInstrument(Am.java:1093) at com.android.commands.am.Am.onRun(Am.java:371)

uiautomator-client.js:92:14 [master] pid:1936 at com.android.internal. os.BaseCommand.run(BaseCommand.java:47) at com.android.commands.am.Am.main(Am.java:100) at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method) at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:332)

Environment check:

$ npm i macaca-cli -g && macaca doctor

try app-inspector -u xxxx --verbose for more log detail.

jimmyru983 commented 6 years ago

I tried to start the app-inspection in Windows 7, device is Mi4,

app-inspector version 2.0.21