Com google android gms common api apiexception 12500

Ошибка входа в Google 12500

Я пытаюсь интегрировать Google Sign In в свое приложение. У меня нет внутреннего сервера, я просто передаю данные о своей учетной записи Google в свое приложение.

Сначала я попробовал его, используя пример входа в Google, но Я получил ошибку (без изменений кода, за исключением печати стека трассировки ниже). Я просто использовал пример SignInActivity, так как у меня нет внутреннего сервера.

Из того, что я прочитал, проблема может быть вызвана Поколение SHA1.

Я следовал полному руководству, но, видимо, оно не работает.

Я скопировал SHA1 из Gradle signatureReport

Что может быть возможной причиной этого?

Постскриптум Может ли это быть возможной причиной?

28 ответов

Просто обновите сервисы Google Play до последней версии (или 11720000 в этом случае). Если вы используете AVD, изображения Nexus 5 и 5X поддерживают Google Play. После запуска и запуска эмулятора перейдите в меню расширенных элементов управления> Google Play, а затем обновите.

для ошибки 12500 Необходимо добавить поддержку gmail только в настройках firebase, а для ошибки 10 добавить ssh-отпечаток в консоли firebase, как показано на рисунке.

У меня возникла та же проблема после открытия проекта на другом компьютере (в другой Android Studio). В моем случае я решил это с помощью Firebase Assistant, который я использовал для первоначальной настройки Firebase. Откройте Firebase Assistant (Инструменты> Firebase) и выберите Аутентификация> Подключиться. Это переподключило проект к Firebase и обновило конфиги

Может также случиться, что компилятор cordova не сможет найти нужный файл хранилища ключей.

Решение . Перед выполнением ionic cordova build android укажите свойства подписи .

Шаг 1 . Создайте файл хранилища ключей отладки.

Использовать пароль: android

Шаг 2: скопируйте файл хранилища ключей ( debug.keystore ) из

/.android в каталог platform/android вашего текущего проекта

Шаг 3: создайте файл с именем release-signing.properties в каталоге platform/android

Шаг 4: добавьте содержимое в файл

Примечание. Это значения по умолчанию. Если вы указали свой псевдоним и пароль, используйте их соответственно.

Шаг 5 . Теперь постройте ionic cordova build android

Перейдите к своему проекту в консоли Firebase, откройте «Настройки проекта» и добавьте туда отпечатки своих сертификатов SHA. Загрузите обновленный файл google-services.json и добавьте его в папку приложения Projects.

Это сработало для меня.

Кажется, ваш SHA1 перезаписан Google Play Store. Проверьте в своем магазине Google Play, панели запуска, под подписью приложения, посмотрите, есть ли в Google Play добавленный дополнительный SHA1.

И скопируйте, что SHA1, добавьте к вашему соответствующему месту, сделает работу.

Я думаю, что ошибка произошла от неправильного SHA1. Пожалуйста, не забывайте, что SHA1 отличается между выпуском и режимом отладки в андроид студии. Вместо того, чтобы использовать keytool для получения SHA1, вы можете использовать проект Gradle -> Task -> android -> signatureReport в студии android (можете открыть его с помощью меню View -> Toolwindow -> gradle), чтобы получить релиз и отладку SHA1. После этого для простоты работы вам нужно создать 2 отдельных учетных данных с двумя SHA1 на облачной консоли Google (Google просто дает указание создать 1 с помощью выпуска SHA1, когда мы разрабатываем его, он не будет работать, поскольку он использует отладочный SHA1).

Читайте также:  Спортивный канал для android

В моем случае, после добавления отпечатка пальца в консоль Firebase, он автоматически выбирается консолью разработчиков Google и показывает отпечатки пальцев. Но войти не получилось. Посмотрев каждый шаг, я понял, что Google перевернул мой пакет файлов манифеста, как этот com.xxxxxxxx.app . Но на самом деле это app.xxxxxxxx.com в консоли разработчика Google. Поэтому я удалил автоматически созданный отпечаток и добавил отпечаток с правильным именем пакета. БУМ !! . Это сработало.

В моем случае проблема заключалась в том, что в моем эмуляторе не было Play Store. Я сделал эмулятор (с именем API 23) через Visual Studio, потому что я также разрабатываю с использованием Xamarin.Forms, и в Диспетчере устройств Visual Studio Android вы можете выбрать, должен ли ваш эмулятор иметь Google Play Store.

Пришлось создать эмулятор через Android Studio AVD и убедиться, что у него есть Play Store:

Источник

Flutter: com.google.android.gms.common.api.ApiException: 12500

When you add sign-in from google feature in your android (flutter/ react-native / ionic) app. You will probably face this exception error 12500 .

Most of the time you miss some settings in your firebase or google cloud. But sometimes errors show up when you change your system (laptop/computer).

Let’s fix the flutter Google Sign in Plugin 12500 Error .

When you run the app at the debug console you will see a message.

Local module descriptor class for com.google.android.gms.auth.api.fallback not found.

Exception code is sign_in_failed

Exception value is: com.google.android.gms.common.api.ApiException: 12500:

Solution 1 — Add support mail to Firebase Project

If you are using firebase inside your project, please make sure you have added the support email .

Go to the Project Settings

Go to Public settings section

Add the support email address

Change Support Email in Firebase

Let’s see how you can change the support email of the firebase project. You can select any admin mail from the dropdown. For a new email

Go to the Users and Permissions section in Project settings

Add a member from here

Member email will be shown on the dropdown then select it.

Maybe you don’t want to share your email here and you have to remove 12500 errors .

For that, you can create a google groups and create emails for that group. That email will also show here so you can select it.

You just change the mail but you still have this error. Let’s solve the 12500 Exception with this solution.

Solution 2 — Have an Emulator with Play Store support

You are using an android emulator to test your flutter app. Most emulators available at android studio avd manager don’t have Play Store support .

Please check your emulator. Does it support the play store? If Yes then you are good to go because most of the time we get

com.google.android.gms.common.api.ApiException: 12500: Error when our emulator did not have Play Store support.

Читайте также:  10 inches android tablet

Please, Install a new emulator with play store support.

Run your flutter app.

Did your error go away?

If not yet consider this solution

Solution 3 — Add SHA1 Key to Your Project

You need to add SHA1 Key inside firebase Project OR Google Cloud Credentials.

How to add SHA1 Key android signing in Firebase

Go to Project Settings

Move to the bottom section where you see the apps that you have configured. If not then Configure your flutter app with firebase first.

Now, you see your android apps here.

You can see the field of SHA certificate fingerprints

Here you place the generated SHA-1 code

Now the question is How to SHA certificate fingerprints for our android app

Let’s see the app signing process

Go your flutter terminal inside your project and type

You can see certificates of Gradle singingReport

Use the SHA-1 code from the first section debug version and add it to the firebase settings.

Most Importantly download the latest version of google-service.json from the firebase.

And place it up inside the android project app folder .

Now with this method, your Error 10 will also be removed.

Run flutter clean

Then flutter pub get

Again build the project . And check the error status. Hopefully, Error 12500 will be removed.

Check your google cloud console that the OAuth consent screen is configured or not.

Fill up all the required fields.

If you place your SHA-1 Key in the firestore then your cloud credentials are automatically generated. We don’t need to especially create one.

Again build the project

Your error com.google.android.gms.common.api.ApiException: 12500: should be resolved.

Solution 5 — Enable Google Sign Method inside firebase Authentication

If you are using firebase authentication somehow. Then please check the Sing-in Method Google is enabled .

Again Clean and run the flutter app you will see that 12500 Error solved

Источник

Error 12500 on Google Sign In #664

Comments

PatilShreyas commented Jul 26, 2019

Step 1: Are you in the right place?

Step 2: Describe your environment

  • Android Studio version: 3.4.2
  • Firebase Component: Authentication
  • Component version:

Step 3: Describe the problem

I used this code as it is without any change.

I created a new Firebase project, then I performed all the important steps:

  • Used Latest Google Play support libraries and Firebase libraries
  • Added DEBUG SHA-1 Key in console
  • Enabled Google Sign-In Method
  • Added support email for authentication.
  • Checked that my device is having the latest Google Play Services installed.

After performing this, downloaded latest google-services.json and imported in the project. Though it is showing me error 12500.

Then, I again checked the Google Cloud API Console OAuth2.0 page and checked my URL and it’s correct.

After this, I created 3 different projects, with different accounts and performed the same things again and again. Though I didn’t get success. Please Help me in that issue.
I tried all other authentications like PhoneAuth, EmailAuth, etc. But an error occurs in Google Sign-In only.

Steps to reproduce:

While signing in with Google, It fails and then here is a log.

Relevant Code:

I used this code as it is without any change.

The text was updated successfully, but these errors were encountered:

Читайте также:  Tv box android тормозит

Источник

Ошибка входа в Android Google com.google.android.gms.common.api.ApiException: 12500

Поэтому я пытаюсь использовать аутентификацию входа в Google с использованием Firebase, как показано по этой ссылке: https://firebase.google.com/docs/auth/ Android / Google — зарегистрировались ? гектолитров = еп

Я следил за каждым шагом, включая включение моего SHA-1 Fingerprint в проект firebase. Сейчас я нахожусь в режиме отладки, поэтому у меня есть только один SHA-1 Fingerprint .

И вот ошибка, которую я получил:

Я попытался проверить, является ли resultCode из SigningIntent успешным. Оказывается, это не Activity.RESULT_OK . Я получил ошибку сразу после того, как я выбрал аккаунт в окне входа.

Решения, которые я пробовал:

  • Изменен идентификатор веб-клиента в настройке входа в Google Firebase на тот, который указан в моих учетных данных присяги в моей облачной консоли
  • Обновил библиотеку моей службы gms до последней версии (в соответствии с ошибкой входа в Google 12500)
  • Создайте OAuth для Android в моей облачной консоли

Никто из них не дал мне решения. Я пытался прочитать документацию о том, что означает код ошибки 12500 , но, похоже, нет конкретной причины. Там написано, что попробуйте использовать другой адрес электронной почты, и он все тот же.

У кого-нибудь есть какое-нибудь решение этого?

3 ответа

Я столкнулся с точно такой же проблемой. Это то, что я сделал. Прежде всего я позаботился о том, чтобы в моем проекте был последний файл google-services.json . Затем я проверил, совпадает ли строковый ключ, который я передаю в конструктор GoogleSignInOptions , с ключом веб-клиента OAuth в консоли GCP .

Наконец, я обновил свои Сервисы Google Play и Репозиторий Google (из SDK Manager) до последней версии.

Обновление Google Repository, похоже, помогло мне.

Когда ваше приложение проходит проверку подлинности с помощью внутреннего сервера или обращается к API Google с вашего внутреннего сервера, вы должны передать идентификатор клиента OAuth 2.0, созданный для вашего сервера, в метод requestIdToken при создании объекта GoogleSignInOptions для доступа к основной информации профиля пользователя. , Кроме того, не забудьте отправить электронное письмо в службу поддержки на экране согласия OAuth, который находится на странице учетных данных в консоли API.

Попробуйте обновить сервисы Google Play до последней версии, это может решить вашу проблему.

Источник

google_sign_in. Getting PlatformException (sign_in_failed, com.google.android.gms.common.api.ApiException:12500, null, null) #81202

Comments

saurabhdtu commented Apr 26, 2021 •

Steps to Reproduce

I am trying to implement google sign in in my project.
My pubspec
cupertino_icons: ^1.0.2 flutter_bloc: ^7.0.0 dio: ^4.0.0 package_info: ^2.0.0 device_info: ^2.0.0 flutter_svg: ^0.22.0 fluttertoast: ^8.0.3 permission_handler: ^6.1.1 shared_preferences: ^2.0.5 sprintf: ^6.0.0 firebase_crashlytics: ^2.0.1 firebase_analytics: ^8.0.1 #Firebase core functionality firebase_core: ^1.0.4 firebase_remote_config: 0.10.0-dev.1 connectivity: 3.0.3 hydrated_bloc: ^7.0.0 path_provider: ^2.0.1 lottie: ^1.0.1 google_sign_in: ^5.0.2

On Calling signIn() I am getting the PlatformException (sign_in_failed, com.google.android.gms.common.api.ApiException:12500, null, null).
So what I have done uptill now
I created the project on firebase. Added my debug SHA1 and SHA256 keys by creating a new debug.keystore
Enabled google login in firebase authentication
Downloaded the google play services json file and added it inside the android/app folder.
I filled in the fields on the OAuth consent form on gogle developers console
Added the following scopes
. /auth/userinfo.email
. /auth/userinfo.profile

Added the
classpath ‘com.google.gms:google-services:4.3.5’ in project level gradle

and applied the plugin in app level gradle ‘com.google.gms.google-services’
I am still not able to solve it. please help

The text was updated successfully, but these errors were encountered:

Источник

Оцените статью