Android - Could not find google-play-services_lib.apk! error

≡放荡痞女 提交于 2019-11-29 03:37:48

When Adding refenced libraries we need only google-play-services_lib.jar.So that we need to remove the project from your project.

Project->Properties->javaBuildPath->Project->select google-play-services->remove.

clean and build.

Well i had this same problem.. I then found out that i had incorrectly referenced it first in the java build path before referencing it from the Properties > Android > Add Library . Solution First remove both the reference from the java build and the Properties > Android > Add Library then reference google_Play_services_lib from Properties > Android > Add Library again. Hope this helps :)

You don't install the google-play-services_lib APK, you should reference it on your project as an Android Library Project and the JAR will be included inside your APK.

http://developer.android.com/google/play-services/setup.html

This link teaches you how to reference an android library project:

http://developer.android.com/tools/projects/projects-eclipse.html#ReferencingLibraryProject

In your manifiest file put it inside

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

In my case this error was fixed by checking Android Private Dependencies checkbox in google-play-services_lib eclipse project > Properties > Java Build Path > Order and Export tab. It was checked as well in the main project which has the reference to google-play-services_lib. I still get the Could not find google-play-services_lib.apk! error in console but the maps activities run OK, while before the change I got run time errors and the application crashed.

My advice is to copy google-play-services.jar to libs folder of the project. It worked for me.

I think the device on which you are trying to run the Google Play Services does not contain the Google Play services APK.

Check this link on Android Developers for more clearance

Ensuring Devices Have the Google Play services APK

Check whether that the library project is added into project, if not then check whether the library project and your project is in same directory.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!