DX无法找到'../google-play-services_lib.jar“。这将不会被添加到包 [英] Dx Could not locate '../google-play-services_lib.jar'. This will not be added to the package

查看:516
本文介绍了DX无法找到'../google-play-services_lib.jar“。这将不会被添加到包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是谷歌在我的Eclipse项目中发挥服务。我说这个我检查是图书馆和建造后。有没有生成错误。但是,当我运行然后我得到
找不到mytest.apk!

I am using the Google play services in my Eclipse project. I added this after I checked Is Library and built it. There are no build errors. But when I run then I get "Could not find mytest.apk!"

当我清理和重建,我得到
 DX无法找到'../google-play-services_lib.jar。这将不会被添加到包

When I clean and rebuild I get Dx Could not locate '../google-play-services_lib.jar'. This will not be added to the package

我添加在AndroidManifest.xml以下

I have added the following in AndroidManifest.xml

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

任何帮助将AP preciated。

Any help will be appreciated.

推荐答案

首先,如果你想使用谷歌在您的项目中发挥服务,那么你就应该建立和jar应该创建。

First if you would like to use google play service in your project then you should be build and jar should be created.

1. Create Eclipes project to build Google play service
2. Go to Project properties >> Android >> Check "Is Library"
3. Build the project 
4. You will see jar file created in bin folder

现在创建Eclipse的Andr​​oid项目为您的应用

Now create Eclipse android project for your application

1. Go to project properties >> Android >> Add  >> Select Google play
service project
2. Now build your android project.

这应该解决您的DX无法找到'../google-play-services_lib.jar'的问题。

This should solve your "Dx Could not locate '../google-play-services_lib.jar'" problem.

这篇关于DX无法找到'../google-play-services_lib.jar“。这将不会被添加到包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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