google-play-services

“Long monitor contention with owner” warning

你说的曾经没有我的故事 提交于 2020-01-23 01:07:04
问题 I get this warning message and since I see this message I also started to see the Google Play Services isnt responding popup and it closes my application after some time. I have review similar questions but could not find out the reason. Following is a sample of my handler thread usage. I do not know what to do to avoid this problem. @Override public void find(Func1<RealmQuery<Artist>, RealmQuery<Artist>> query, Action1<Result<List<Artist>>> onResult) { if (query != null) { handlerThread =

java.lang.NoClassDefFoundError for any google-play-services feature

与世无争的帅哥 提交于 2020-01-22 01:56:54
问题 I'm using the last version of Eclipse, ADT and the newest Android SDK. If I'm trying to use something in a simple HelloWorld Android project Google Play feature, for instance, int res = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this); the app crashes with 04-27 21:52:23.905: D/ActivityThread(4379): handleBindApplication:my.app.test 04-27 21:52:23.905: D/ActivityThread(4379): setTargetHeapUtilization:0.75 04-27 21:52:23.905: D/ActivityThread(4379): setTargetHeapMinFree:2097152 04-27

java.lang.NoClassDefFoundError for any google-play-services feature

北战南征 提交于 2020-01-22 01:56:06
问题 I'm using the last version of Eclipse, ADT and the newest Android SDK. If I'm trying to use something in a simple HelloWorld Android project Google Play feature, for instance, int res = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this); the app crashes with 04-27 21:52:23.905: D/ActivityThread(4379): handleBindApplication:my.app.test 04-27 21:52:23.905: D/ActivityThread(4379): setTargetHeapUtilization:0.75 04-27 21:52:23.905: D/ActivityThread(4379): setTargetHeapMinFree:2097152 04-27

Google Map Api v2 shows “V/GoogleSignatureVerifier : signature not valid” error message in log

谁都会走 提交于 2020-01-19 03:10:42
问题 I am developing an Android application using google map api v2 to show a Map in a Fragment. When I run the application, I always got this error message poppin in my log every now and then. Things I've tried: Erasing the debug.keystore and rebuilding the app. Downgrading the Google Play Service and upgrading it again. Deselect Offline Work Nothing does the trick so far... Once upon the time in the Log tab : 2364-3928/com.example.android.app E/DynamiteModule: Failed to load module descriptor

Google Map Api v2 shows “V/GoogleSignatureVerifier : signature not valid” error message in log

十年热恋 提交于 2020-01-19 03:09:06
问题 I am developing an Android application using google map api v2 to show a Map in a Fragment. When I run the application, I always got this error message poppin in my log every now and then. Things I've tried: Erasing the debug.keystore and rebuilding the app. Downgrading the Google Play Service and upgrading it again. Deselect Offline Work Nothing does the trick so far... Once upon the time in the Log tab : 2364-3928/com.example.android.app E/DynamiteModule: Failed to load module descriptor

Permission issues for location in android Marshmallow applicaton

南楼画角 提交于 2020-01-19 01:48:46
问题 I am learning to develop an android application for getting device location following Google developers forum: @http://developer.android.com/training/location/retrieve-current.html#last-known @http://developer.android.com/training/location/receive-location-updates.html The example shows how to use Google PLay Services for this purpose. But the getLastLocation() function always return null. Location location = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient); As initially

Permission issues for location in android Marshmallow applicaton

徘徊边缘 提交于 2020-01-19 01:47:46
问题 I am learning to develop an android application for getting device location following Google developers forum: @http://developer.android.com/training/location/retrieve-current.html#last-known @http://developer.android.com/training/location/receive-location-updates.html The example shows how to use Google PLay Services for this purpose. But the getLastLocation() function always return null. Location location = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient); As initially

How to change language Google Map V2 android

我与影子孤独终老i 提交于 2020-01-19 01:23:07
问题 I am using google-play-service-lib . How can I change language of google map i.e. show locations in korian language or Hindi Language. 回答1: You can change location for Google Maps that use the Google Map API V2 by using a Locale Object. The language needs to be supported on the device being used though. Here is the full list of supported languages. With this code below I was able to change the language on the map to Chinese: @Override protected void onCreate(Bundle savedInstanceState) { super

Error:Failed to resolve: com.google.android.gms:play-services-auth-api-phone:10.2.5

心不动则不痛 提交于 2020-01-17 14:17:11
问题 I am using Twilio for SMS verification for my Android app, but when I add the repository of Twilio verification dependency( compile 'com.twilio: verification:+' ) the Gradle can not be built and shows the following error: Error:Failed to resolve: com.google.android.gms:play-services-auth-api-phone:10.2.5 can anyone help me! and I installed and update the repositories. note: for the first time it let me update the repository but now it doesn't let me update the repository. 回答1: Same Problem

Could not find com.google.gms:google-services:9.0,0

六眼飞鱼酱① 提交于 2020-01-17 09:19:44
问题 The Sync failed when tried to add the dependency for google play service. The problem seem to its looking for the jar in C:/Program/Files/Android/Android Studio however my SDK is placed in C:\Android\sdk. However I also have Android Studio in Program Files where there are no jar for Google play services. Information:Gradle tasks [clean, :app:generateDebugSources, :app:compileDebugSources] Error:A problem occurred configuring root project 'XXXXXX'. Could not resolve all dependencies for