17

I'm implementing the new 'simpler' Google Play Services implementation (no GoogleApiClient management) and am getting redlined with the error 'GoogleSignIn is marked as internal and should not be accessed from app. This API had been flagged with a restriction that has not been met.' Despite the error flag my game app still compiles and runs, and has been able to access Leaderboards and Achievements. I'd like to get rid of this flag and to know if it's more than something that should just be hidden from lint, as I don't see how I'd access GoogleSignIn outside of my app.

Games.getLeaderboardsClient(this, GoogleSignIn.getLastSignedInAccount(this))
            .getLeaderboardIntent(leaderboard_id)
            .addOnSuccessListener(new OnSuccessListener<Intent>() {
                @Override
                public void onSuccess(Intent intent) {
                    startActivityForResult(intent, RC_LEADERBOARD_UI);
                }
            });

UPDATE 4/2/18: I've been finding more Google Play Services code error flags after the 12.0.1 update which fixed GoogleSignIn. As previously with GoogleSignIn, they don't affect the compile or run, but are still irritating.

enter image description here

4
  • 3
    Good question. I updated from 11.x.x to 12.0.0 today and been getting this flag as well.
    – Morgan
    Mar 25, 2018 at 15:28
  • 1
    You can open an issue tracker here Mar 26, 2018 at 12:22
  • I did my civic duty and sent the issue description to the tracker, thanks for link Noogui. Mar 26, 2018 at 12:59
  • The issue was fixed in 12.0.1 that was released yesterday
    – art-o-nawa
    Mar 29, 2018 at 12:34

2 Answers 2

10

Known issue - Read #4 https://developers.google.com/android/guides/releases#march_20_2018_-_version_1200 Google says it can be safely ignored.

2

apparently the wrongful annotations were removed again in v 12.0.1 ...

android {
    dependencies {
        implementation "com.google.firebase:firebase-core:12.0.1"
    }
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.