在android SDK工具中打开uiautomatorviewer时出错

时间:2014-05-28 02:25:49

标签: android android-testing

我试图通过终端

中的这些命令在android sdk中运行uiautomatorviewer工具
  

cd adt-bundle-linux-x86-20131030 / sdk / tools /

     

./ uiautomatorviewer

我收到错误

Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

任何人都能为我解释一下以及如何解决它吗? 谢谢。

1 个答案:

答案 0 :(得分:0)

尝试更新android-studio \ bin \ studio.exe.vmoptions 并将-Xms128m增加到-Xms512m并重启Android Studio。