添加谷歌播放服务崩溃aapt.exe [英] Adding Google-play-services crashes aapt.exe

查看:328
本文介绍了添加谷歌播放服务崩溃aapt.exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过一个库我的应用程序添加谷歌播放服务使用谷歌地图V2为Android。每次我设置为图书馆获得Windows与aapt.exe崩溃的消息对话框的参考。我设置了一个参考库毕竟我的源文件会出错。 R.java在我的根文件夹中被删除。
控制台是给这条消息

I'm trying to use google maps v2 for android by adding the google-play-services to my app as a library. Everytime I set a reference to the library I get windows dialog with the message that aapt.exe has crashed. And after I've set a reference to the library all my source files get errors. R.java in my gen folder gets deleted. Console is giving this message

[谷歌播放services_lib] R.java被手动修改!还原到生成的版本!

删除提及谷歌播放服务库中的错误后消失。我使用Eclipse的Helio与SDK工具转速22.0.1

After deleting the reference to the google-play-services library the errors disappear. I'm using Eclipse Helio with SDK tools rev 22.0.1

我试过几乎所有的解决方案/建议人告诉记者,在该线程。

有人能帮助我吗?

推荐答案

在你使用eclipse项目属性添加谷歌播放-services_lib到你的项目,你去查看project.properties文件在项目文件夹(一个简单的文本您可以编辑文件)。检查
android.library.reference.1 =您的谷歌播放-services_lib路径是正确的。结果
你并不需要谷歌,播放services_lib文件夹复制到您的项目像在谷歌的指令,但在project.properties路径应该是正确的。我像 C:\\ Android的SDK ... preFER完整路径。结果
Eclipse将创建这是错误的相对路径。它为我工作后,我纠正的路径。

After you add the Google-play-services_lib to your project using eclipse project properties, you go to view project.properties file in your project folder ( a simple text file that you can edit). Check if the android.library.reference.1="your Google-play-services_lib path" is correct.
You don't need to copy Google-play-services_lib folder to your project like in Google instruction, but the path in project.properties should be correct. I prefer full path like "c:\android-sdk..." .
Eclipse creates a relative path which is wrong. It worked for me after I corrected the path.

这篇关于添加谷歌播放服务崩溃aapt.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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