引用谷歌的播放,服务库 [英] Referencing the google-play-services library
问题描述
我正在使用谷歌地图Android的API V2的一个项目,我有一个问题,当我开始引用谷歌播放-services_lib。出现在我的项目图标的红色感叹号,和我在问题选项卡(我使用的Eclipse)的错误信息:
I'm working on a project using the Google Maps Android API v2, and I have a problem when I start referencing google-play-services_lib. A red exclamation mark appears on my project icon, and I have an error message in the "Problems" tab (I'm using Eclipse) :
The container 'Android Dependencies' references non existing library 'C:\Users\Labo FMS\Documents\Applications\04-adt-bundle-windows-x86_64\sdk\extras\google\google_play_services\libproject\google-play-services_lib\bin\google-play-services_lib.jar'
和,事实上,如果我去到该文件夹,我看到有没有谷歌播放services_lib.jar的文件。
And, indeed, if I go to that folder, I see that there is no "google-play-services_lib.jar" file.
我试着重新安装库,而且我注意到,当它安装有一个错误信息的底部:
I've tried reinstalling the library, and I've noticed that when it's installing there's an error message at the bottom :
[2013-04-09 13:54:32 - google-play-services_lib] Unable to resolve target 'android-8'
[2013-04-09 13:54:32 - google-play-services_lib] Unable to resolve target 'android-8'
[2013-04-09 13:56:18 - MainActivity] Unable to resolve target 'android-8'
任何人都知道这一切意味着什么?
Anybody knows what it all means ?
推荐答案
谷歌播放services_lib
找不到目标的android-8'
,因为它并没有安装在您的 Android SDK中
。
google-play-services_lib
not found target 'android-8'
because it was not installed in your Android SDK
.
改变你的Android 目标的android-8
任何其他使用。
change your Android target 'android-8'
to any other using.
Your Project--->Right Click-->Properites-->Android-->Select Google API 15(whatever you have)-->ok
或
在Android清单文件中添加这一点。
Add this in Android manifest file.
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="15" />
您可以添加目标SDK任何你有,但它必须是谷歌API
。
you can add target SDK any which you have but it must be Google API
.
这篇关于引用谷歌的播放,服务库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!