Encountered internal error running command: Error: targetSdkVersionFromManifest failed. Original error: Cannot read property '1' of null
See original GitHub issuewhen i run sample-code android_simple.py i got this error ,i search everywhere ,no result
[debug] [AndroidDriver] Shutting down Android driver
[debug] [AndroidDriver] Called deleteSession but bootstrap wasn’t active
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/jihongwen/Development/android/android-sdk-macosx/platform-tools/adb’ with args: [“-P”,5037,“-s”,“760ABLMW96TX”,“shell”,“am”,“force-stop”,“io.appium.unlock”]
[debug] [Logcat] Stopping logcat capture
[debug] [AndroidDriver] Not cleaning generated files. Add clearSystemFiles
capability if wanted.
[MJSONWP] Encountered internal error running command: Error: targetSdkVersionFromManifest failed. Original error: Cannot read property ‘1’ of null
at Object.wrappedLogger.errorAndThrow (lib/logger.js:60:13)
at ADB.callee$0$0$ (…/…/…/lib/tools/android-manifest.js:101:9)
at tryCatch (/Users/jihongwen/.nvm/versions/node/v7.2.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/jihongwen/.nvm/versions/node/v7.2.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Users/jihongwen/.nvm/versions/node/v7.2.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js💯21)
at GeneratorFunctionPrototype.invoke (/Users/jihongwen/.nvm/versions/node/v7.2.0/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:103:7)
[HTTP] <-- POST /wd/hub/session 500 1585 ms
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:49 (15 by maintainers)
Top GitHub Comments
Workaround for now as below
Goto directory /usr/local/lib/node_modules/appium and run below command npm install appium-adb@2.7.0
After this npm -g ls , shows updated appium-adb@2.7.0 from appium-adb@2.9.0
Issue is fixed in appium-adb v2.9.1