google-play-services

Android SDK for eclipse using Google Play Services Lib: Error “Target runtime jre1.8.0_25 is not defined.”

南楼画角 提交于 2019-12-25 09:42:31
问题 For university, I am working on an android-project, which uses the "Google Play Services Lib". However, my eclipse throws an error, stating, that the "Target runtime jre1.8.0_25 is not defined.". This being a git project, I have not installed/configured the library myself, though for others it seems to work flawlessly. Being not very well versed with eclipse, I have tried to check every reference to the aforementioned jre in the projects settings, though I was out of luck, a quick fix isn't

GoogleApi Real Time Multiplayer pushing updates

我只是一个虾纸丫 提交于 2019-12-25 09:05:47
问题 i am using the Google Api to create a Real Time Multiplayer - Top down shooter game with libGDX. Player positions are send over "sendUnreliableMessage" on every call of the "render()" method : render() called. "Device A" sends the local Player position (x, y) and the moving direction over "sendUnreliableMessage". "Device B" recieves the message. Interpolates between the last position (x,y) and the new position (x,y). "Device B" moves the local enemy Player to the new positions. (Interpolated

Required XML attribute 'adsize' was missing (google play service)

◇◆丶佛笑我妖孽 提交于 2019-12-25 08:48:25
问题 There are so question like that but it's not duplicate because i have already used xmlns:ads="http://schemas.android.com/apk/res-auto" and i have done code mostly in java I want to use google play service for ads I have used below java code com.google.android.gms.ads.AdView adView = (com.google.android.gms.ads.AdView) activity.findViewById(R.id.adview); adView.setAdSize(AdSize.SMART_BANNER); adView.setAdUnitId(activity.getString(R.string.admob_id)); AdRequest adRequest = new AdRequest.Builder

Unable to retrive google play game services leaderboard score

主宰稳场 提交于 2019-12-25 07:50:23
问题 I want to get users score from leaderboard connected to google play game services. I have 6 leaderboards from which game loads only 3 leaderboards other leaderboards data I get null. if (mGoogleApiClient.isConnected()) { Games.Leaderboards.loadCurrentPlayerLeaderboardScore(mGoogleApiClient, getString(R.string.leaderboard_best_score__normal_mode), LeaderboardVariant.TIME_SPAN_ALL_TIME, LeaderboardVariant.COLLECTION_SOCIAL).setResultCallback( new ResultCallback < Leaderboards

Gradle play-services aar dependency not work

一世执手 提交于 2019-12-25 07:16:07
问题 I am writing a java jar library. I just want to add play-services dependency for gradle's project. My gradle build script: Properties local = new Properties() local.load(project.file('local.properties').newDataInputStream()) ext { gdxVersion = '1.9.2'; sdkPath = local.getProperty("sdk.dir") } repositories { maven { url "$sdkPath\\extras\\google\\m2repository\\" } maven { url "$sdkPath\\extras\\android\\m2repository\\" } maven { url "https://oss.sonatype.org/content/repositories/releases/" }

Reading build/outputs/logs File from Gradle/Android Studio

流过昼夜 提交于 2019-12-25 06:25:09
问题 I noticed my Android app was requesting to "Prevent phone from sleeping" when users installed it. I know I didn't add in any Wake_Lock but figured one of the 3rd party libraries did. After some googling, I found that I can find the merged Manifest file in the build/outputs/logs. I found the file and found a Wake_lock but wasn't sure who it was attributed to. Is it the lines above or below it that say who is requesting the Wake_Lock? Or better put is it being caused by Butterknife or Google

Getting a debugmanifest error at runtime

纵饮孤独 提交于 2019-12-25 04:44:12
问题 I have imported an android project into Android studio ( I am a first time user of android studio.. was previously working on eclipse). So when building the project I get no errors. When running the code, however, I am getting the following error Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed : uses-sdk:minSdkVersion 8 cannot be smaller than version 9 declared in library com.google.android.gms:play-services:6.5.87 I make use of google maps and hence I

API Level 21 app searching for API Level 23 resource after installing google play services

百般思念 提交于 2019-12-25 04:03:02
问题 Im developing an app that requires google maps, I follow the google tutorials by adding a activity map in android studio but right after the activity got created, downloaded the google play services dependency packge and the build finish, i got this error: Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'. Error:(18) Error retrieving parent for item: No resource found that matches the given name

API Level 21 app searching for API Level 23 resource after installing google play services

喜夏-厌秋 提交于 2019-12-25 04:01:05
问题 Im developing an app that requires google maps, I follow the google tutorials by adding a activity map in android studio but right after the activity got created, downloaded the google play services dependency packge and the build finish, i got this error: Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'. Error:(18) Error retrieving parent for item: No resource found that matches the given name

TurnBasedMultiplayer - onTurnBasedMatchesLoaded does not get called

跟風遠走 提交于 2019-12-25 02:26:42
问题 I am using the google play games service in my android app and I am trying to load all turn based matches with the status: TurnBasedMatch.MATCH_TURN_STATUS_MY_TURN public class TurnBasedMulti implements OnInvitationReceivedListener, OnTurnBasedMatchUpdateReceivedListener, OnTurnBasedMatchesLoadedListener{ private GoogleApiClient googleApiClient; public TurnBasedMulti(){ googleApiClient = new GoogleApiClient.Builder(this) .addApi(Games.API) .build(); googleApiClient.connect(); } public void