[英]Adding google-play-service source to my android application
I want to add Google-map to my android application and I followed this tutorial: https://developers.google.com/maps/documentation/android/start#overview but it shows me an error. 我想将Google-map添加到我的android应用程序中,并按照以下教程进行操作: https : //developers.google.com/maps/documentation/android/start#overview但它显示了一个错误。 which is: error: Error: No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').
这是:错误:错误:找不到与给定名称匹配的资源(在“值”处与值“ @ integer / google_play_services_version”)。 when I searched in Google trying to solve the problem, I found that I have to do these steps:
当我在Google中搜索以解决问题时,我发现必须执行以下步骤:
But when I Click Add to open the Project Selection dialog which is step number 3, I could not choose any library project. 但是,当我单击添加以打开步骤3的“项目选择”对话框时,我无法选择任何库项目。 ie the list is empty.
即列表为空。
I don't know if I should add @integer.xml file? 我不知道是否应该添加@ integer.xml文件? If so, how to do that?
如果是这样,该怎么做? I am sorry but I am really new to eclipse.
抱歉,我真的是新来的。 So, could anyone help me please:(
所以,有人可以帮我吗:(
Thanks.. 谢谢..
First, make sure you have the Play Services project in your workspace, as explained here: http://developer.android.com/google/play-services/setup.html 首先,请确保您的工作区中有Play Services项目,如下所述: http : //developer.android.com/google/play-services/setup.html
Now make sure that it is a Library Project. 现在确保它是一个图书馆项目。 Right-click the play-services project -> Properties -> Android and make sure you check Is Library after the list of build targets.
右键单击play-services项目-> Properties-> Android,并确保在构建目标列表之后选中Is Is Library 。
After that, redo the steps you listed. 之后,重做您列出的步骤。 In Step 4 Play Services will be in the list.
在步骤4中,播放服务将在列表中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.