question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Encountered internal error running command: Error: targetSdkVersionFromManifest failed. Original error: Cannot read property '1' of null

See original GitHub issue

when 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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:49 (15 by maintainers)

github_iconTop GitHub Comments

8reactions
vikramvicommented, Dec 6, 2016

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

3reactions
sravanmedarapucommented, Dec 9, 2016

Issue is fixed in appium-adb v2.9.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

"ERROR running Appium command: Cannot read property ...
Fixed by launching Appium Inspector (magnifying glass icon) in Appium.app (on Mac). Appium issue.
Read more >
Bummer: Cannot read property '1' of null How do i fix this?
Code runs but i get this error after.
Read more >
Uncaught TypeError: Cannot read property of null - iDiallo
For example, document.getElementById('stuff') returns null. So adding .value will cause the error. You are trying to access a DOM element before ...
Read more >
chezi1988 · 回帖
Encountered internal error running command : Error: targetSdkVersionFromManifest failed. Original error: Cannot read property '1' of null ...
Read more >
Cannot Read Property of Undefined in JavaScript - Rollbar
The TypeError: Cannot read property of undefined is one of the most common ... at that point, running the code causes the following...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found