android - Google Play Services and Unity3D error -


i use official google plugin unity3d achievements , lederboards in game, when try call google play login got error:

e/gamesnativesdk﹕ exception in dalvik/system/dexclassloader.loadclass: java.lang.classnotfoundexception: didn't find class "com.google.android.gms.games.nativesdkentrypoints" on path: dexpathlist[[zip file "/data/data/com.crazylabs.tabreak/app_.gpg.classloader/de80b70ed0da0dfe988a41fa560612ee.jar"],nativelibrarydirectories=[/vendor/lib, /system/lib]]. 06-19 18:02:45.058  25436-27013/? e/validateserviceop﹕ missing metadata tag name "com.google.android.gms.appstate.app_id" in application tag of manifest com.company.game 06-19 18:02:45.105  25436-27012/? e/validateserviceop﹕ using google play games services requires metadata tag name "com.google.android.gms.games.app_id" in application tag of manifest 

android manifest:

....  <meta-data android:name="com.google.android.gms.appstate.app_id" android:value="xxxxxxxxxxxxx" /> .... 

you using com.google.android.gms.appstate.app_id, when error says need com.google.android.gms.games.app_id.

also: make sure placing meta data tag within <application> tag in manifest.

lastly, should using app id strings folder android:value attribute. in end should this:

<application>     ...     <meta-data android:name="com.google.android.gms.games.app_id" android:value="@string/app_id" />     .... </application> 

hope helps!


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -