简体   繁体   English

Mac OSX 10.7.3 Intellij Idea 12 Android模拟器崩溃

[英]Mac OSX 10.7.3 Intellij Idea 12 Android emulator crash

I have some problems with running android emulator on mac mini. 我在Mac mini上运行android模拟器时遇到一些问题。 I use Intellij Idea community edition and have this error when I try to run application. 我使用Intellij Idea社区版,并且在尝试运行应用程序时出现此错误。

I/O error: Command "/Users/vladimir/Downloads/androidSdk/platform-tools/aapt package -m -J /private/var/folders/yh/sdp_mx2n1q9263qv9gfmncr40000gn/T/android_apt_output4569562992703377997tmp -M /Users/vladimir/IdeaProjects/demoApplication/AndroidManifest.xml -S /Users/vladimir/IdeaProjects/demoApplication/res -I /Users/vladimir/Downloads/androidSdk/platforms/android-15/android.jar" execution failed with exit code 138 I / O错误:命令“ / Users / vladimir / Downloads / androidSdk / platform-tools / aapt软件包-m -J / private / var / folders / yh / sdp_mx2n1q9263qv9gfmncr40000gn / T / android_apt_output4569562992703377997tmp -M / Users / Applications / ead /AndroidManifest.xml -S / Users / vladimir / IdeaProjects / demoApplication / res -I /Users/vladimir/Downloads/androidSdk/platforms/android-15/android.jar“执行失败,退出代码138

I new to mac. 我是Mac新手。 I try to reinstall android sdk, copy and recreate application project. 我尝试重新安装android sdk,复制并重新创建应用程序项目。 Try to give all permissions to project and android sdk folders. 尝试赋予项目和android sdk文件夹所有权限。 But nothing changed. 但是什么都没有改变。

I ran into the same issue and came upon your post in a search. 我遇到了同样的问题,并在搜索中找到了您的帖子。 I was using version 19 of the build tool and was able to resolve the issue by doing the following: 我使用的是构建工具的版本19,并且可以通过执行以下操作解决此问题:

  1. uninstalled build 19 tools via the SDK manager 通过SDK管理器卸载了build 19工具
  2. Re-built the project using build 18 tools, instead. 而是使用build 18工具重新构建项目。

This version of the build tool flagged my strings.xml resource as having an errant character in the xml. 此版本的构建工具将我的strings.xml资源标记为在xml中包含错误字符。 Once I removed this, the build worked again. 一旦删除此内容,该构建即可再次工作。

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM