85521

Release, debug version and Authorization Google?

<strong>Here I downloaded the source code (tutorial from Google) authorization via Google.</strong>

If you run a debug version everything works as planned. But if you install and run the release version, it does not work in the emulator or on a real phone. Tell me what's the problem? Maybe the problem with SHA1. When I do "gradle" -> "signingReport". I get the following:

Variant: releaseUnitTest Config: none ---------- Variant: debugUnitTest Config: debug Store: C:\Users\******\.android\debug.keystore Alias: AndroidDebugKey MD5: <some code****> SHA1: <some code*****> Valid until: <date***> ---------- Variant: release Config: none ---------- Variant: debugAndroidTest Config: debug Store: C:\Users\******\.android\debug.keystore Alias: AndroidDebugKey MD5: <some code****> SHA1: <some code*****> Valid until: <date***> ---------- Variant: debug Config: debug Store: C:\Users\******\.android\debug.keystore Alias: AndroidDebugKey MD5: <some code****> SHA1: <some code*****> Valid until: <date***>

<strong>Also, one person said about it the next thing:</strong>

The release version does not work because signed others certificate and its fingerprint you are not registered in Developer Console.

But I do not understand what it means.

Answer1:

It looks like few months since this question asked but I will Answer It anyway If anyone ran in to same problem

You have to find SHA1 code for Release Key & enter it on your Developer Console. ( for me developer console is firebase some people might use different services) To find SHA1 Code . easy way is

<strong>Go to Build --- Select Build Variant -- On the left Side Select "Release" as build variant -- now go to module settings ( or try to run project , android studio will tell you about a error and click fix error button) --- Select Signing tab --- add your release key and passwords -- now goto build types -- select release -- on signing config select your release key config -- now run your project -- now run your signing report --- you can find SHA1 under release build -- enter that sha1 code on your developer console</strong>

Recommend

  • How to convert one data type to another
  • Linq: Merge the dictionaries
  • Parsing tokens with PLY
  • Warning: ldap_start_tls() [function.ldap-start-tls]: Unable to start TLS: Server is unavailable
  • FOSUserBundle force user to write a different password
  • jQuery - how to validate a date of birth using jQuery Validation plugin?
  • Converting RVML to SVG using XSLT in C#
  • How can I alert message in Servlet code and sendredirect to JSP page?
  • How to limit cursor movement in WPF based app?
  • Meteor oplog for Mongo 2.6
  • Zend Framework 2, Module Redirect
  • Why is it ambiguous to call overloaded ambig(long) and ambig(unsigned long) with an integer literal?
  • What is “PHP-standardized” version number strings?
  • VB.NET: How do I use coalesce with db column values and nullable types? Or is there a better solutio
  • API (curl)Command to Approve a promoted build Job in Jenkins
  • How do I listen to all Seam contextual events with parameterized names?
  • c++ using primitive types as a base class
  • What is the reason that Policy.getPolicy() is considered as it will retain a static reference to the
  • Should I use composite primary keys in Grails?
  • Why must we declare a variable name when adding a method to a struct in Golang?
  • Symfony 2. CSRF token is invalid
  • Unable to decode certificate at client new X509Certificate2()
  • Why querying a date BC is changed to AD in Java?
  • Row Count Is Returning the incorrect number using RaptureXML
  • Illegal mix of collations for operation for date/time comparison
  • Apache 2.4 and php-fpm does not trigger apache http basic auth for php pages
  • Release, debug version and Authorization Google?
  • Is there a mandatory requirement to switch app.yaml?
  • using conditional logic : check if record exists; if it does, update it, if not, create it
  • Hits per day in Google Big Query
  • IndexOutOfRangeException on multidimensional array despite using GetLength check
  • XCode 8, some methods disappeared ? ex: layoutAttributesClass() -> AnyClass
  • Easiest way to encapsulate a HTML5 webpage into an android app?
  • Busy indicator not showing up in wpf window [duplicate]
  • costura.fody for a dll that references another dll
  • Observable and ngFor in Angular 2
  • How to Embed XSL into XML
  • UserPrincipal.Current returns apppool on IIS
  • Conditional In-Line CSS for IE and Others?
  • java string with new operator and a literal