想问一下,我的 android 手机安装好 xueqiu.apk 之后,运行命令 Java -jar appcrawler-2.1.3.jar -p android -o temp_xueqiu/ --capability appPackage=com.xueqiu.android,appActivity=com.xueqiu.android.common.MainActivity 之后,出现如下错误,是什么原因呢,应该如何解决?
2018-07-22 11:37:51 INFO [Crawler.setupAppium.262] use AppiumClient
Exception in thread "main" org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Cannot start the 'com.xueqiu.android' application. Original error: Error executing adbExec. Original error: 'Command '/Users/wangpingping06/Library/Android/sdk/platform-tools/adb -P 5037 -s 721QEBRD2E2VK shell am start -W -n com.xueqiu.android/com.xueqiu.android.common.MainActivity -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000' exited with code 1'; Stderr: 'java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.xueqiu.android/.common.MainActivity } from null (pid=31171, uid=2000) not exported from uid 10316
at android.os.Parcel.readException(Parcel.java:1684)
at android.os.Parcel.readException(Parcel.java:1637)
at android.app.ActivityManagerProxy.startActivityAndWait(ActivityManagerNative.java:3454)
at com.android.commands.am.Am.runStart(Am.java:638)
at com.android.commands.am.Am.onRun(Am.java:394)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:51)
at com.android.commands.am.Am.main(Am.java:124)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:281)'; Code: '1' (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 10.55 seconds
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'