Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by asierbh · Oct 17, 2017 at 12:12 PM · android buildgoogle play gamesmanifest

Unable to retrieve application from network while i try to connect with google play games services.

Hello everyone,

I recently developed an android game using Unity 5.5.4p4, now im triying to integrate achivements with google play games plugin made from unity.

I already configured step by step the plugin as explained in the documentation. I also have an closed Alpha version of the game uploaded into my google play console just for testing, signed with the sha1 generated in the keystote from player settings in Unity.

So my problem comes now, when my app runs, it try to connect with google play services using this method:

 public bool GoogleLogin(){
         
         bool resp = false;
 
         Social.localUser.Authenticate((bool success) => {
             resp = success;
         });
 
         return resp;
     }

In runtime, the modal of the connection appears but after a few seconds it closes and i get this two errors into my android device monitor:

 10-15 16:30:21.346: E/GameAgent(10854): Unable to retrieve application xxxxxxxxxxxx from network
 10-15 16:30:21.347: E/GameAgent(10854): Application xxxxxxxxxxxx is not associated with package com.mypackage.name. Check the application ID in your manifest.

I know unity detects other manifest files from other plugins and then merge it to generate a final one that is stored in projectFolder/Temp/StaginArea/AdroidManifest.xml.

Aplication xxxxxxxxxxxx is the ID asociated to my app in the google play console, and it match with the ID that i have in my final manifest in this metadata:

 <meta-data android:name="com.google.android.gms.games.APP_ID" android:value="\ xxxxxxxxxxxx" />

The package name that appears in the manifest is the same package i have asociated in google play console > games services > My game

I attach my manifest file with hidden app ID in case it could be useful:

 <?xml version="1.0" encoding="utf-8"?>
 <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="3" android:versionName="1.0.2" package="com.mypackage.name" android:installLocation="preferExternal">
   <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:smallScreens="true" android:xlargeScreens="true" />
   <application android:icon="@drawable/app_icon" android:label="@string/app_name" android:theme="@style/UnityThemeSelector" android:debuggable="false" android:isGame="true" android:banner="@drawable/app_banner">
     <activity android:label="@string/app_name" android:name="com.unity3d.player.UnityPlayerActivity" android:screenOrientation="sensorLandscape" android:launchMode="singleTask" android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale|layoutDirection">
       <intent-filter>
         <action android:name="android.intent.action.MAIN" />
         <category android:name="android.intent.category.LAUNCHER" />
         <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
       </intent-filter>
       <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
     </activity>
     <activity android:excludeFromRecents="true" android:exported="false" android:name="com.google.android.gms.auth.api.signin.internal.SignInHubActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar" />
     <!--Service handling Google Sign-In user revocation. For apps that do not integrate with
             Google Sign-In, this service will never be started.-->
     <service android:exported="true" android:name="com.google.android.gms.auth.api.signin.RevocationBoundService" android:permission="com.google.android.gms.auth.api.signin.permission.REVOCATION_NOTIFICATION" />
     <activity android:exported="false" android:name="com.google.android.gms.common.api.GoogleApiActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar" />
     <meta-data android:name="com.google.android.gms.nearby.connection.SERVICE_ID" android:value="" />
     <meta-data android:name="com.google.android.gms.games.APP_ID" android:value="\ xxxxxxxxxxxx" />
     <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
   </application>
   <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="26" />
   <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
   <uses-feature android:glEsVersion="0x00020000" />
   <uses-permission android:name="android.permission.INTERNET" />
   <uses-feature android:name="android.hardware.touchscreen" android:required="false" />
   <uses-feature android:name="android.hardware.touchscreen.multitouch" android:required="false" />
   <uses-feature android:name="android.hardware.touchscreen.multitouch.distinct" android:required="false" />
 </manifest>

If anyone could help me I would be very grateful, I have been stuck for several days and it's very frustrating.

Other threads i already check:

  • http://answers.unity3d.com/questions/1220475/unable-to-retrieve-application-from-network.html

  • https://github.com/playgameservices/play-games-plugin-for-unity/issues/1292

  • https://github.com/playgameservices/play-games-plugin-for-unity/issues/216

  • https://stackoverflow.com/questions/25266854/application-id-is-not-associated-with-package-while-signing-in-google-play

Things i already doublecheck:

  • I have reinported the plugin from unity

  • I deleted the AndroidMAnifest.xml to regenerate it

  • I have made sure that the SHA1 key is the same as the google play console key and google API console Key

  • I'm testing the alpha version with the correct google account that i previously activated in google play console.

  • I create a brand new project in Google play console to configurate all the things again from cero.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by asierbh · Aug 22, 2018 at 10:38 AM

It works for me:

After building the app, go into the temp > staging folder and open the android manifest that is in there. This will be the final merged manifest unity creates during build time. Make sure those lines are being merged into it correctly. If not, you can copy that final created manifest into the Plugins > Android folder in your project and then add those lines manually and try play services again.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by PuzzledBoy · Aug 22, 2018 at 09:51 AM

Meet same error as you. But the strange things is I can login in successful with my account(don't know what make it special), And any other accounts get the same error.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image asierbh · Aug 22, 2018 at 10:39 AM 0
Share

I've posted how I solved it, hope it helps you!

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

75 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

IOException : Failed to Move File / Directory 4 Answers

Android Admob build error: Trying to merge incompatible 1 Answer

Signed .apk error 0 Answers

Google Play not accepting android manifest 0 Answers

What permisisons are necessary for basic Google Play Game Services 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges