Initializing Games Client in Android
I'm trying the new Google Play Game Services.
At first I followed this howto https://developers.google.com/games/services/android/quickstart and then finished this https://developers.google.com/games/services/android/init
I end up like this:
05-16 20:01:39.034: E/AndroidRuntime(18257): FATAL EXCEPTION: main 05-16 20:01:39.034: E/AndroidRuntime(18257): java.lang.IllegalStateException: A fatal developer error has occurred. Check the logs for further information. 05-16 20:01:39.034: E/AndroidRuntime(18257): at com.google.android.gms.internal.p$f.a(Unknown Source) 05-16 20:01:39.034: E/AndroidRuntime(18257): at com.google.android.gms.internal.p$f.a(Unknown Source) 05-16 20:01:39.034: E/AndroidRuntime(18257): at com.google.android.gms.internal.p$b.p(Unknown Source) 05-16 20:01:39.034: E/AndroidRuntime(18257): at com.google.android.gms.internal.p$a.handleMessage(Unknown Source) 05-16 20:01:39.034: E/AndroidRuntime(18257): at android.os.Handler.dispatchMessage(Handler.java:99) 05-16 20:01:39.034: E/AndroidRuntime(18257): at android.os.Looper.loop(Looper.java:137) 05-16 20:01:39.034: E/AndroidRuntime(18257): at android.app.ActivityThread.main(ActivityThread.java:5041) 05-16 20:01:39.034: E/AndroidRuntime(18257): at java.lang.reflect.Method.invokeNative(Native Method) 05-16 20:01:39.034: E/AndroidRuntime(18257): at java.lang.reflect.Method.invoke(Method.java:511) 05-16 20:01:39.034: E/AndroidRuntime(18257): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 05-16 20:01:39.034: E/AndroidRuntime(18257): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) 05-16 20:01:39.034: E/AndroidRuntime(18257): at dalvik.system.NativeStart.main(Native Method)
I've tried to follow the tutorial step by step. I don't understand what is going wrong.
ava.lang.IllegalStateException: A fatal developer error has occurred. Check the logs for further information.
I thought that logcat = logs and there is nothing more. So where can I find these "logs"?
My implementation is different only in one thing. I have a ClassA which extends BaseGameActivity and then ClassB which extends ClassA and implements View.OnClickListener So I have all methods from https://developers.google.com/games/services/android/init in class ClassB
Thanks for any help
I had the same problem initially. What I had to do was look at the full, unfiltered LogCat log. There, I saw the message:
GamesIntentService(17929): Using Google Play games services requires a metadata tag with the name "com.google.android.gms.games.APP_ID" in the application tag of your manifest
So, assuming you created an entry in your
app_id, try adding the following to your
AndroidManifest.xml under the
<meta-data android:name="com.google.android.gms.games.APP_ID" android:value="@string/app_id" />
You can find your APP_ID in the Games Services tab
google play services - Initializing Games Client in Android, I had the same problem initially. What I had to do was look at the full, unfiltered LogCat log. There, I saw the message: GamesIntentService(17929): Using� Initializing GameCircle in Your Android or Fire OS Game Note: As of Sept 4th 2018, Amazon will no longer offer the Amazon GameCircle (2.4.3) and Amazon GameCircle (2.5.3) kits as part of our SDK bundles on Amazon Developer Portal.
Complementing Hetabiquo response, if you also use Cloud Save service in your game you also must to update your application's AndroidManifest.xml by adding the following meta-data tag inside
<application> tag scope
<meta-data android:name="com.google.android.gms.appstate.APP_ID" android:value="@string/app_id" />
App startup time, These issues chiefly concern initializing app and activity objects, as well as the loading of screens. Heavy app initialization. Launch performance can suffer when� The Play Games SDK provides cross-platform Google Play games services that lets you easily integrate popular gaming features such as achievements, leaderboards, and Saved Games in your tablet and mobile games. This training will guide you to install a sample game application for Android and quickly get started to create your own Android game.
Just had the same issue but had the meta-tag correct - I did look up the unfiltered logcat and found out, that it was searching for a different meta-tag.
The name of the meta-tag differs by the sort of Client Number you submitted in the GameHelper Constructor (if you use it).
new GameHelper(this, GameHelper.CLIENT_GAMES);
For me I accidentaly used CLIENT_ALL which leads to a wrong expectations of the meta-tag name. I changed it to CLIENT_GAMES and everything worked smoothly.
App Startup, Apps and libraries often rely on having components initialized right away when the app starts up. You can meet this need by using content providers to initialize� Time: 9.1.19 20:33 Description: Initializing game java.lang.NullPointerException: Initializing game at cgc.<init>(SourceFile:23) at cft.am(SourceFile:438) at cft.a(SourceFile:380) at net.minecraft.client.main.Main.main(SourceFile:144) A detailed walkthrough of the error, its code path and all known details is as follows: ----- -- Head -- Thread
In addition to Hetabiquo, you can fin your APP_ID in the Games Services tab :
Authenticate Using Google Play Games Services on Android , You can use Google Play Games services to sign players in to an Android game The web server client ID identifies your Firebase project to the Google Play auth When initializing your Activity, check to see if the player is already signed in� Reinstall the App/Game. STEP 1: Drag-drop the modified APK file on LDPlayer and it will start installing. STEP 2: Wait for a while and launch the app/game . How Does It Work? The above methods should troubleshoot the "Failure to initialize" problem on your Android emulator.
I suffered from this bug for quite some time. I decided to go through the basegameutils package scanning each file one at a time. In gameHelperUtils class i found this method, getAppIdFromResource(). Inside it it requested app ID from resource. I remembered I had hardcoded the app ID in the manifest file. I then added a string resource of app_id in the strings file. To my amazement, the error was gone and the leaderboard showed up!
Get Started with Play Games Services for C++, The Google Play games Services C++ SDK provides a C++ API for use with Google Play Events; Saved Games; Nearby Connections (Android only); Player Statistics Initialize a platform configuration: This is an object that contains Instead, your client should hold on to the GameServices instance. Supported game services. Google Play Games (Android, Desktop, HTML5) Apple Game Center (iOS RoboVM) GameJolt (all platforms) Huawei Game Service (Android, since 1.1.0) Amazon GameCircle (Android) Kongregate (HTML5) Motivation. When I wrote my first libGDX game, I realized there was no good library for Google Play Games (GPGS) integration available.
Game Services: Settings, On Android, this module is built on top of Google Play Games Plugin. the process, please follow the instructions on creating a client ID, as well as leaderboards Auto initialization is a feature of the Game Services module that initializes the� Note: Some Android devices might have an older version of the Google Play Store app that doesn't support certain products types, such as subscriptions. Before your app enters the billing flow, you can call isFeatureSupported() to determine whether the device supports the products you want to sell.
playgameservices/play-games-plugin-for-unity: Google , The setup process will configure your game with the client id and generate a C# To configure your Unity game to run with Google Play Games on Android, first If your game does not use these features, then there is no need to initialize the � The game crashed whilst initializing game *What I launch the game, the game crash. The game should be launch. *What actually happened was Minecraft launcher apeer again and says "The game crashed whilst initializing game Error: java.lang.NullPointerException: Initializing game" Steps to Reproduce: 1. Open the Minecraft launcher 2.
Play Game Services in Unity, Development tools and configuration to build Unity projects targeted for Android. How to configure a game and application in the Google Play Console. How to add� Build Games for Android Learn how to build amazing mobile games that can reach more than 2 billion people who use Android devices. Find resources and tools under 3 categories: Develop, Optimize, Launch and Iterate to amplify your success at every stage of development and build a sustainable, profitable business.
- facepalm - I had it in
AndroidManifest.xmlbut not on my
- Slight addition, do not replace ".APP_ID" with your APP ID from the developer console. I lost about 15 minutes with that :|
- Another addition, do not put your app ID directly to the meta-data tag. It is resolved as integer when the system expects it to be a String :|
- Another addition, by "unfiltered logs" it means checking the full device logs instead of your application-specific onces. Google Play Services is not part of your app so it's error messages aren't logged there.
- Sorry, if this is a dumb question, but what to type as APP_ID there? I'm very new to Android developing.
- Thanks bro! This was it
- helloe @Diego Palomar in my app i am already define app_id but it called about only numeric allowed but in my case app id creating using console.google.developer, like 123-30abcd.apps.googleusercontent.com ,so how can used my app id i face illegalstateException due to it,please give me solution
- @NiravMehta: Use the number before the dash in that long string (Client Id) you see in Google Developers Console.
- i try that also but that occure error "not yet connected"
- Try clearing the cache of google play services app on your device.