aapt.exe已停止工作错误

时间:2014-12-18 22:06:15

标签: android avd ibm-mobilefirst

我在Windows 7上安装了Eclipse Kepler(eclipse-jee-kepler-SR2-win32-x86_64)。

我的Eclipse安装在D:\ Dev \ Eclipse中 我的工作区是:E:\ Work \ WorkSpaces \ Eclipse \ EclipseTrainingWorklight
Java安装:D:\ Dev \ Java(版本1.7)

我在D:\ Dev \ AndroidSDK中安装了最新的Android SDK(R24) 我还安装了最新的Android SDK工具(R24.02)和Android 5.0.1 API ..

我创建了AVD 5.0.1。

问题:

我创建了一个HelloWorld程序,在mobilefirst服务器上成功运行 然后我构建了Android环境,它创建了一个HelloWorklightProjectHelloWorklightAndroid项目。

但是当我尝试将HelloWorklightProjectHelloWorklightAndroid项目作为Android应用程序运行时,我收到以下错误消息:

  

aapt.ext已停止工作问题导致程序停止   工作正常。请关闭程序。

我已阅读其他帖子并验证了以下内容:

  • 过去了 D:\ Dev \ AndroidSDK \ tools \ apps \ SdkController \ res \ layout \ main.xml文件 并检查所有@string值是否与参数匹配 d:\开发\ AndroidSDK \工具\应用\ SdkController \ RES \值\的strings.xml
  • 尝试在main.xml
  • 中注释掉<?xml version="1.0" encoding="utf-8"?>标题

这些都没有任何区别。

我已将我的偏好更新为详细模式并看到以下控制台输出消息(输出上的其他一切似乎都很好)。任何建议都会非常感激。

 [2014-12-18 16:32:16 - HelloWorklightProjectHelloWorklightAndroid]
 E:\Work\WorkSpaces\Eclipse\EclipseTrainingWorklight\HelloWorklightProject\apps\HelloWorklight\android\native\res\drawable-hdpi\settings.png:
 libpng warning: iCCP: Not recognizing known sRGB profile that has been
 edited [2014-12-18 16:32:16 -
 HelloWorklightProjectHelloWorklightAndroid]
 E:\Work\WorkSpaces\Eclipse\EclipseTrainingWorklight\HelloWorklightProject\apps\HelloWorklight\android\native\res\drawable-ldpi-v11\push.png:
 libpng warning: iCCP: Not recognizing known sRGB profile that has been
 edited [2014-12-18 16:32:16 -
 HelloWorklightProjectHelloWorklightAndroid]
 E:\Work\WorkSpaces\Eclipse\EclipseTrainingWorklight\HelloWorklightProject\apps\HelloWorklight\android\native\res\drawable-ldpi\icon.png:
 libpng warning: iCCP: Not recognizing known sRGB profile that has been
 edited [2014-12-18 16:32:16 -
 HelloWorklightProjectHelloWorklightAndroid]
 E:\Work\WorkSpaces\Eclipse\EclipseTrainingWorklight\HelloWorklightProject\apps\HelloWorklight\android\native\res\drawable-ldpi\settings.png:
 libpng warning: iCCP: Not recognizing known sRGB profile that has been
 edited [2014-12-18 16:32:16 -
 HelloWorklightProjectHelloWorklightAndroid]
 E:\Work\WorkSpaces\Eclipse\EclipseTrainingWorklight\HelloWorklightProject\apps\HelloWorklight\android\native\res\drawable-mdpi-v11\push.png:
 libpng warning: iCCP: Not recognizing known sRGB profile that has been
 edited [2014-12-18 16:32:16 -
 HelloWorklightProjectHelloWorklightAndroid]
 E:\Work\WorkSpaces\Eclipse\EclipseTrainingWorklight\HelloWorklightProject\apps\HelloWorklight\android\native\res\drawable-mdpi\icon.png:
 libpng warning: iCCP: Not recognizing known sRGB profile that has been
 edited [2014-12-18 16:32:16 -
 HelloWorklightProjectHelloWorklightAndroid]
 E:\Work\WorkSpaces\Eclipse\EclipseTrainingWorklight\HelloWorklightProject\apps\HelloWorklight\android\native\res\drawable-mdpi\settings.png:
 libpng warning: iCCP: Not recognizing known sRGB profile that has been
 edited [2014-12-18 16:32:16 -
 HelloWorklightProjectHelloWorklightAndroid]
 E:\Work\WorkSpaces\Eclipse\EclipseTrainingWorklight\HelloWorklightProject\apps\HelloWorklight\android\native\res\drawable-xhdpi-v11\push.png:
 libpng warning: iCCP: Not recognizing known sRGB profile that has been
 edited [2014-12-18 16:32:16 -
 HelloWorklightProjectHelloWorklightAndroid]
 E:\Work\WorkSpaces\Eclipse\EclipseTrainingWorklight\HelloWorklightProject\apps\HelloWorklight\android\native\res\drawable-xhdpi\icon.png:
 libpng warning: iCCP: Not recognizing known sRGB profile that has been
 edited [2014-12-18 16:32:16 -
 HelloWorklightProjectHelloWorklightAndroid]
 E:\Work\WorkSpaces\Eclipse\EclipseTrainingWorklight\HelloWorklightProject\apps\HelloWorklight\android\native\res\drawable-xhdpi\push.png:
 libpng warning: iCCP: Not recognizing known sRGB profile that has been
 edited [2014-12-18 16:32:16 -
 HelloWorklightProjectHelloWorklightAndroid]
 E:\Work\WorkSpaces\Eclipse\EclipseTrainingWorklight\HelloWorklightProject\apps\HelloWorklight\android\native\res\drawable-xhdpi\settings.png:
 libpng warning: iCCP: Not recognizing known sRGB profile that has been
 edited [2014-12-18 16:32:16 -
 HelloWorklightProjectHelloWorklightAndroid]
 E:\Work\WorkSpaces\Eclipse\EclipseTrainingWorklight\HelloWorklightProject\apps\HelloWorklight\android\native\res\drawable\icon.png:
 libpng warning: iCCP: Not recognizing known sRGB profile that has been
 edited [2014-12-18 16:32:16 -
 HelloWorklightProjectHelloWorklightAndroid]
 E:\Work\WorkSpaces\Eclipse\EclipseTrainingWorklight\HelloWorklightProject\apps\HelloWorklight\android\native\res\drawable\push.png:
 libpng warning: iCCP: Not recognizing known sRGB profile that has been
 edited

1 个答案:

答案 0 :(得分:0)

我已经在Android 5.0.1 AVD中成功运行了您生成的Android项目。

将其导入Eclipse后:

  1. 在AndroidManifest.xml中,将android:targetSdkVersion="19"更改为android:targetSdkVersion="21"
  2. 右键单击生成的Android项目&gt;属性&gt; Android&gt;选择&#34; Android 5.0.1&#34;来自项目构建目标列表
  3. 我的AVD设置:

    enter image description here