Google Play Services - Google login yields a network error

Transcendental

I am trying to integrate Google Play Services into my application in order to enable achievements. Upon application launch, a login attempt is being made which results in one of the following errors:

  1. There was a problem communicating with Google servers.
  2. Failed to log in. Please check your network connection and try again later.
  3. A̶p̶p̶l̶i̶c̶a̶t̶i̶o̶n̶ ̶c̶r̶a̶s̶h̶e̶s̶
  4. The application is incorrectly configured. Check that the package name and signing certificate match the cliend ID created in Developer console. Also, if the application is not yer published, check that the account you are trying to sign in with is listed as a tester account. See logs for more information.

Logcat displays absolutely no data related to this problem so I don't even have a clue what could be wrong. The app is authenticated correctly, with the correct SHA1 certificate fingerprint and app id copied to manifest. Does anyone have any could what this could be? Thanks.

EDIT: Manifest:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.*****.xxx"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="11"
        android:targetSdkVersion="21" />

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name="com.example.app.Main"
            android:label="@string/app_name"
            android:screenOrientation="portrait"
            android:theme="@style/NoActionBar" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name="com.example.app.GameAct"
            android:label="@string/title_activity_game"
            android:screenOrientation="portrait" >
        </activity>

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



    </application>

</manifest>
Transcendental

I resolved the issue I had by deleting Google+ data related to my previous game login and logging in again. I do not know what caused this error in the first place but it may be due to wrong settings in my Developer Console. I did change some things, like re-authenticated the app but the changes took effect only after deleting old data.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Error in using Google Play Services

分類Dev

Android Development - Google Play Services, Google Login Integration

分類Dev

Google Play Services Library Error onesignal

分類Dev

Error after upgrade Google Play Services to 11.0.0 version

分類Dev

Fake/mock Google Play Services

分類Dev

Google Play Game Services VS Google Drive

分類Dev

Attempting to use Google Play Services, Google Sign in, keep getting an Error Code 10

分類Dev

Android:LocationManagerとGoogle Play Services

分類Dev

Google Play Services Version for Android Studio

分類Dev

Cannot resolve google play services version 15.0.2

分類Dev

Retrieve leaderboard position in Google play game services

分類Dev

How to remove Google Play Services from GenyMotion?

分類Dev

How does NodeAPI in Google Play Services work?

分類Dev

How to specify google play services dependency in maven

分類Dev

Striping down google play services only to google drive related methods

分類Dev

Google Plus Login failed when uploaded to Google Play

分類Dev

How to require updated play services and add "This app won't run unless you update Google Play services"

分類Dev

Android Studio 2.2 Google Play Services同期エラー

分類Dev

Google Play Services version 5.2.08 too recent for my device

分類Dev

Open source replacement for Google Play location services on Android

分類Dev

Google Play services out of date. Requires 7571000 but found 6774470

分類Dev

After upgrading to google play services 8.4.0 my app crashes on startup

分類Dev

Google Play services Task API: continueWith vs continueWithTask

分類Dev

Google Play Services "Connecting" pop up does not appear

分類Dev

Google play services mobile ads requires AdMob account

分類Dev

Android: When does Google Play Services status invalid occur?

分類Dev

Androidproject.propertiesのgoogle-play-services_lib

分類Dev

Where can I download the Google Play Services SDK 7.8?

分類Dev

Why I can't login on google play games

Related 関連記事

  1. 1

    Error in using Google Play Services

  2. 2

    Android Development - Google Play Services, Google Login Integration

  3. 3

    Google Play Services Library Error onesignal

  4. 4

    Error after upgrade Google Play Services to 11.0.0 version

  5. 5

    Fake/mock Google Play Services

  6. 6

    Google Play Game Services VS Google Drive

  7. 7

    Attempting to use Google Play Services, Google Sign in, keep getting an Error Code 10

  8. 8

    Android:LocationManagerとGoogle Play Services

  9. 9

    Google Play Services Version for Android Studio

  10. 10

    Cannot resolve google play services version 15.0.2

  11. 11

    Retrieve leaderboard position in Google play game services

  12. 12

    How to remove Google Play Services from GenyMotion?

  13. 13

    How does NodeAPI in Google Play Services work?

  14. 14

    How to specify google play services dependency in maven

  15. 15

    Striping down google play services only to google drive related methods

  16. 16

    Google Plus Login failed when uploaded to Google Play

  17. 17

    How to require updated play services and add "This app won't run unless you update Google Play services"

  18. 18

    Android Studio 2.2 Google Play Services同期エラー

  19. 19

    Google Play Services version 5.2.08 too recent for my device

  20. 20

    Open source replacement for Google Play location services on Android

  21. 21

    Google Play services out of date. Requires 7571000 but found 6774470

  22. 22

    After upgrading to google play services 8.4.0 my app crashes on startup

  23. 23

    Google Play services Task API: continueWith vs continueWithTask

  24. 24

    Google Play Services "Connecting" pop up does not appear

  25. 25

    Google play services mobile ads requires AdMob account

  26. 26

    Android: When does Google Play Services status invalid occur?

  27. 27

    Androidproject.propertiesのgoogle-play-services_lib

  28. 28

    Where can I download the Google Play Services SDK 7.8?

  29. 29

    Why I can't login on google play games

ホットタグ

アーカイブ