Android的Systrace没有这样的文件或目录 [英] Android Systrace No such file or directory

查看:641
本文介绍了Android的Systrace没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面的错误消息

D:\Programming\Tools\ADT_bundle\sdk\platform-tools\systrace>python systrace.py
Traceback (most recent call last):
  File "systrace.py", line 315, in <module> 
    main()
  File "systrace.py", line 64, in main
    os.execv(legacy_script, sys.argv)
OSError: [Errno 2] No such file or directory

我看着systrace.py,似乎legacy_scriptsystrace-legacy.py缺少在文件系统上。我已阅读计算器几个相关的职位,我已经把目录中含有亚行在%PATH%。这个问题仍然存在。我书面方式来问是否有什么办法可以解决这个问题。

I look into systrace.py, it seems that the legacy_script "systrace-legacy.py" is missing on the file system. I have read several related posts on stackoverflow, and I've already put directory containing adb in the %PATH%. The problem still exists. I'm writting to ask if any way to solve this problem.

推荐答案

这是固定的SDK工具发布22.0.5 ......之类的。

This was fixed in SDK tools release 22.0.5... sort of.

systrace-legacy.py 脚本添加到平台工具目录中,而不是工具目录,因为剧本是(逐渐)被搬到了那里。所以,如果你继续沿用老的指示,你仍然有同样的问题。如果您从平台工具/ systrace 目录下的脚本,而不是,它应该工作了。

The systrace-legacy.py script was added to the platform-tools directory rather than the tools directory, because the script is (gradually) being moved there. So if you continue to follow the old instructions, you will still have the same problem. If you run the script from the platform-tools/systrace directory instead, it should now work.

您也可以从Eclipse ADT插件运行它。

You can also run it from the Eclipse ADT plugin.

这篇关于Android的Systrace没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆