Wearing Android error when using google play
I am using Android Studio 0.8.0 and created a project with Android Wear 4.4. I need to integrate it with Google Play Services. However, I got an error like this:
Caused by: java.lang.IllegalStateException: Unable to find dynamic class com.google.android.gms.maps.internal.CreatorImpl
I already added the gameservices loadable library to the build.gradle file. Also, I added the following code to my AndroidManifest.xml file
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
but the error is still.
According to the manual at http://developer.android.com/google/play-services/setup.html , I also added a Proguard exception in my / proguard -project.txt.
However, this doesn't work.
Could you give any idea to solve this problem? Thank!
source to share
Be sure to indicate:
compile 'com.google.android.gms:play-services-wearable:+'
in your dependencies.
So it would be (according to the wear project):
dependencies {
compile 'com.google.android.gms:play-services-wearable:+'
compile 'com.google.android.support:wearable:+'
}
and in a mobile project:
dependencies {
compile 'com.google.android.gms:play-services-wearable:+'
wearApp project(':wear')
}
source to share