-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
安卓真机path问题 #46
Comments
这个问题,我将这段代码内的app-debug.apk改成了app-debug.apk.zip后没有了:
INSTRUMENTATION_STATUS: stream= uiautomator start socket server.
InternalServerError: Internal Server Error
InternalServerError: Internal Server Error
|
|
1.0.24
正常
android 在macaca run后显示错误:
[init({"platformName":"Android","app":"/NodeJs/Macaca/MXD-IOS-macaca/app/app-debug.apk","udid":"85875fccd2fc08bc"})] The environment you requested was unavailable.
Error: [init({"platformName":"Android","app":"app/app-debug.apk","udid":"85875fccd2fc08bc"})] The environment you requested was unavailable.
在macaca server --verbose显示的错误:
TypeError: Path must be a string. Received undefined
at assertPath (path.js:8:11)
at Object.posix.resolve (path.js:426:5)
at Function.ADB.startApp.Promise.getApiLevel.ADB.unInstall.Promise.forceStop.ADB.isInstalled.ADB.isScreenLocked.ADB.waitActivityReady.ADB.killProcess.ADB.getPIds.ADB.getDevices.ADB.getEmulators.ADB.getApkMainifest.promise.then as getApkMainifest
at Android.initDevice.data.filter.Android.getApkInfo (/usr/local/lib/node_modules/macaca-android/lib/macaca-android.js:154:30)
at next (native)
at onFulfilled (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:65:19)
at /usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:54:5
at Object.co (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:50:10)
at Object.toPromise (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:118:63)
at next (/usr/local/lib/node_modules/macaca-cli/node_modules/co/index.js:99:29)
请问下,如何解决该问题?udid是通过如下代码获取的:
String android_id =Secure.getString(getActivity().getContentResolver(),Secure.ANDROID_ID);
请问是哪个问题导致呢?谢谢!
The text was updated successfully, but these errors were encountered: