Reputation: 141
I am trying to use the new Google Play Services for Google Plus integration from this link: http://ankitthakkar90.blogspot.sg/2013/05/google-plus-integration-in-android.html
I was able to get everything right except when i try to run it, it provide me with this error
Android Launch!
adb is running normally.
Performing com.anky.googleplus.MainActivity activity launch
Automatic Target Mode: using device 'CB5A1MQW4P'
Uploading GooglePlusDemo.apk onto device 'CB5A1MQW4P'
Installing GooglePlusDemo.apk...
Success!
Could not find google-play-services_lib.apk!
Starting activity com.anky.googleplus.MainActivity on device CB5A1MQW4P
ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.anky.googleplus/.MainActivity }
I did reference the library via eclipse Properties > Android > Add Library like what is done here: Using the new Google Play Services This error still occured. Any suggest and feed back is welcome.
Upvotes: 14
Views: 40464
Reputation: 592
In your manifiest file put it inside
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
Upvotes: 5
Reputation: 3665
My advice is to copy google-play-services.jar to libs folder of the project. It worked for me.
Upvotes: 0
Reputation: 137
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.
Upvotes: -1
Reputation: 2226
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.
Upvotes: 0
Reputation: 824
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.
Upvotes: 50
Reputation: 1634
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 :)
Upvotes: 6
Reputation: 7027
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
Upvotes: 5
Reputation: 2681
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
Upvotes: -1