Hierarchy viewer problems
Time to catch up on some of the android blogposts! Lets start with a simple one: this annoying bug stops you from opening the very usefull Hierarchy-viewer.
“Failed to get the adb version: Cannot run program “adb.exe”: CreateProcess error=2, The system cannot find the file specified”
There seem to be several issues here, ranging from installing all sorts of new stuff to reinstalling the SDK, but there’s one sollution that has helpt me on 2 different (windows) machines: adding the new location of the “adb.exe” to your environment path.
Step 1: locate adb.exe. It wil probably be in the platform-tools dir (that’s new I guess)
Step 2: add the location to your PATH. In windows 7:
- Rightclick on “my computer”
- Advanced system settings (on the left)
- Button “Environment Variables”
- Select “PATH” and press “Edit…”
- Add your path, e.g. add in the end: “;c:\android\sdk\platform-tools
- press all OK buttons.
Win!
作者:GangWang
出处:http://www.cnblogs.com/GnagWang/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。