有什么方法可以将Google Play服务9.0.2添加到Eclipse项目中吗? [英] is there any way to add google play services 9.0.2 to an Eclipse project?

查看:165
本文介绍了有什么方法可以将Google Play服务9.0.2添加到Eclipse项目中吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Google Play服务库添加到我在Eclipse中的Android项目中。我需要一个版本> 9.0.0。

解决方案

您可以使用它,我在最近的应用中使用了Google Play服务(r29)在Eclipse中提及没有用,因为它缺少 libProjects ,我们将其导入为我们的应用程序项目中使用的库,< meta-data /> Android Manifest 中使用的Google服务版本的 integer b
$ b

下载Google Play服务( r29 )rev30 +将只提供无用的文档和示例项目。



2-解压下载的rar并粘贴到目录 X:\ yourSDKdirectory \android-sdk\extras\google\google_play_services\



3-进入Eclipse File-> Impor t->现有Android代码 - > android-sdk\extras\google\ google_play_services\libproject



4-现在您可以在Android应用程序项目中将此项目用作库。


$ b

5-在 Android Manifest 之后<应用程序> tag

 <元数据
android:name =com。 google.android.gms.version
android:value =@ integer / google_play_services_version/>

希望这会有所帮助。





最好切换到Android Studio,尽管我很讨厌针对Android Studio,必须切换,但在某些方面更好,但在大多数情况下,与Eclipse相比,它实际上是废话。但是只需稍作调整和管理,你会发现它很流畅,但仍然令人恼火,切换到它,4〜5年后它可能会变得和Eclipse一样高效和优化:D



2.2(预览6相当不错,但有7个)


I am trying to add Google Play Service Libraries to my Android Project in Eclipse. I need a version > 9.0.0.

解决方案

You can use it, i used Google Play Services (r29) in my recent app, because latest one and the one you mention will be of no use in Eclipse as it will lack libProjects which we import as a library to use in our Application Project and integer value of Google Services version which we have to use in Android Manifest under <meta-data />

Steps to do :

1- Download Google Play Services (r29) rev30+ will have just documentation and sample projects which are of no use.

2- Unzip downloaded rar and paste in directory X:\yourSDKdirectory\android-sdk\extras\google\google_play_services\

3- Go to Eclipse File->Import->Existing Android Code->android-sdk\extras\google\ google_play_services\libproject

4- Now you can use this project as library in your Android Application Project.

5- In Android Manifest after <application > tag

<meta-data
  android:name="com.google.android.gms.version"
  android:value="@integer/google_play_services_version" />

Hope this helps.!

Short Advice:

It is better to switch to Android Studio, despite all hate i have against Android Studio, i had to switch, it is better in some ways but in most, it is literally crap as compared to Eclipse. But with little tweaks and management you will find it smooth but still irritating, well switch to it, after 4~5 years it might become as efficient and optimized as Eclipse :D

2.2 (Preview 6 is quite good, 7 is out though)

这篇关于有什么方法可以将Google Play服务9.0.2添加到Eclipse项目中吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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