Unless required by applicable law or agreed to in writing, softwareĭistributed under the License is distributed on an "AS IS" BASIS, WITHOUT Use this file except in compliance with the License. The ASF licenses thisįile to you under the Apache License, Version 2.0 (the "License") you may not See the NOTICE file distributed with this work forĪdditional information regarding copyright ownership. Licensed to the Apache Software Foundation (ASF) under one or more contributor Please see CONTRIBUTING.md for more details. Submitting a pull request through GitHub. Patches are encouraged, and may be submitted by forking this project and If you've found an error in these samples, please file an issue. (Optional) On some versions of Windows it is helpful to map the samples folder to a shortened path. Set ANDROID_NDK_HOME=C:\Users\Desktop\android-ndk-r10e Set PATH=%PATH% %ANDROID_HOME%\tools %ANDROID_HOME%\platform-tools Set ANDROID_HOME=C:\Users\AppData\Local\Android\sdk You could also build with Gradle on Terminal/Command line Build using Gradle on OS X or LinuxĮxport ANDROID_HOME=~/Library/Android/sdkĮxport PATH=$PATH $ANDROID_HOME/tools $ANDROID_HOME/platform-toolsĮxport ANDROID_NDK_HOME=/android-ndk-r10e Android Studio will compile, load and start your project on your deviceĪll projects could be built at one shot from Android Studio menu "Build" -> "Clean Project"/"Rebuild Project" Replace res/values/ids.xml contents with your values from the developer console.That matches the configuration in the Play Game developer console. Change applicationId in the sample app adle to your own package name.Set the ndk.dir property to the location of your r10e or eariler NDK. Edit the local.properties file (which is created by Android Studio) and.Import the project by selecting File > New > Import Project and select.This project requires Android Studio 1.5 . Copy theĬontents from the console and replace the contents of res/values/ids.xml. (Achievements, Events, Leaderboards) and click "Get Resources". In the Developer console, select a resource type Modify res/values/ids.xml and place your IDs there, as given by theĭeveloper Console (create the leaderboards and achievements necessary for.Change the applicationId inside each individual samples adle to your own package name.Teapots: Demonstrates use of the Leaderboard and Achievement APIs. Minimalist: Demonstrates a minimal use case for the Google Play Game Services API. The sample signs the user in, synchronizes their data from a named game save, and then updates the UI to reflect the saved game state. These samples illustrate how to use Google Play Game Services with your Android game.ĬollectAllTheStarsNative: Demonstrates how to use the Saved Games feature to save game data.
0 Comments
Leave a Reply. |