Timeline for answer to Flutter and google_sign_in plugin: PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null) by KylianMbappe
Current License: CC BY-SA 4.0
Post Revisions
29 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 6, 2025 at 7:29 | comment | added | Nitin Sharma | The -XX:MaxHeapSize=256m and -Xmx256m flags only increase the maximum Java heap memory, but in my case, the issue was not just heap exhaustion — the JVM was also running out of Metaspace and Code Cache. So instead of only increasing heap size, I used: -Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError This may not be necessary for all systems, but it helped in a large Flutter + Gradle project with many dependencies. | |
| Jul 7, 2025 at 18:28 | comment | added | Frank | besto solution! | |
| Jan 18, 2025 at 18:29 | comment | added | Ganesh Satpute | For stupid people like me who don't know how to SHA to their app. >> Go to the Firebase console and select your project. >> Navigate to Project Settings: Click on the gear icon in the left sidebar and select "Project settings". >> Find the "Your apps" section: You'll see a list of your apps. If you haven't added your Android app yet, click the "Add app" button. >> Select "Android" and enter your app's package name >> Paste the SHA-1 key: In the "SHA certificate fingerprints" section, paste the SHA-1 key you got from the ./gradlew signingReport command. | |
| Jan 11, 2025 at 4:23 | comment | added | Covenant T. Junior | I got this error: * What went wrong: Execution failed for task ':gradle:compileGroovy'. > BUG! exception in phase 'semantic analysis' in source unit 'C:\Users\USER\flutter\packages\flutter_tools\gradle\src\main\groovy\app_plugin_loader.groovy' Unsupported class file major version 66 | |
| Dec 4, 2024 at 9:23 | comment | added | lookdadnomilk | skip step 2, but this is the correct answer. add your sha-1 and sha-256 to your android fingerprints in your firebase app console for android | |
| Sep 18, 2024 at 18:32 | comment | added | Victor Ude |
Perfect. I'm hopping on to a new project and there are already a ton of debug keys in firebase. A mind numbing amount. I checked the list against all the existing keys but when I ran ./gradlew signingReport there was a new key that was missing! Wasted a lot of time trying to troubleshoot this one but I'm glad this answer was so comprehensive.
|
|
| May 6, 2024 at 9:06 | comment | added | Luca Köster | Anyone else this error? BUG! exception in phase 'semantic analysis' in source unit 'C:\flutter\packages\flutter_tools\gradle\src\main\groovy\app_plugin_loader.groovy' Unsupported class file major version 65 | |
| Apr 13, 2024 at 17:07 | comment | added | Abdeldjalil Chougui | the perfect answer, for me it was just the last two steps missed from my side and now it is working great | |
| Feb 12, 2024 at 7:55 | comment | added | Laraib. Sheikh | by using step 2 it is creating an issue while running "flutter build apk --release" command. Issue is I changed SHA-1 in Google Developers console | |
| Dec 21, 2023 at 3:27 | comment | added | Eric Russell | Thanks so much! Only method that worked for me as well. | |
| Jan 16, 2023 at 17:48 | comment | added | Balu | If it didn't work and you are in a new project, try to build the project first, then run the ./gradlew signingReport command. | |
| Nov 29, 2022 at 15:33 | comment | added | Niels | it works finally!!! I don't understand why Google makes this so clumsy on their own platform. I had no problems with google_sign_in on iOS. | |
| Sep 26, 2022 at 8:31 | review | Suggested edits | |||
| Sep 30, 2022 at 9:40 | |||||
| Sep 12, 2022 at 5:50 | comment | added | noyruto88 | Sometimes it works, then after restarting the app it won't work again. | |
| Sep 12, 2022 at 5:49 | comment | added | noyruto88 | At first, this works for me. But after a minute it won't work again. | |
| Aug 11, 2022 at 11:16 | comment | added | Caspar Bm | And what if you don't use firebase? | |
| Apr 24, 2022 at 21:23 | comment | added | Umut Çağdaş Coşkun |
Yes worked, thaks. BTW if you get heap memory error, then try: -XX:MaxHeapSize=256m -Xmx1536M
|
|
| Apr 24, 2022 at 9:11 | review | Suggested edits | |||
| Apr 29, 2022 at 11:56 | |||||
| Sep 13, 2021 at 6:11 | comment | added | Elihu Del Valle | Best answer, easy to follow and simply works | |
| Aug 17, 2021 at 4:00 | comment | added | Ryosuke Hujisawa | The best answer. Thannks!. | |
| Apr 18, 2021 at 14:39 | comment | added | Anuj Gajbhiye | This should be the accepted answer. After spending hours on this issue, finally, this worked for me. | |
| Oct 12, 2020 at 21:49 | comment | added | WizardingStudios | The best answer. Perfect. | |
| Oct 12, 2020 at 12:20 | comment | added | reverie_ss | this is the easiest method! this should be accepted. | |
| Sep 24, 2020 at 2:37 | history | edited | Ramis | CC BY-SA 4.0 |
Second solution was added.
|
| Sep 24, 2020 at 2:35 | comment | added | Ramis | Getting this error: Could not initialize class org.codehaus.groovy.runtime.InvokerHelper | |
| May 4, 2020 at 19:35 | comment | added | Mark Rawlingson | Chiming in to say this is also the only thing that worked for me. Tried everything else and spent days trying to solve the issue before finding this. | |
| Apr 27, 2020 at 17:18 | comment | added | Tincho825 | If step 4 didn't work, call gradlew like this instead: ./gradlew signingReport | |
| Apr 21, 2020 at 16:04 | comment | added | PRO GRAMMER | For me that is the only thing that worked, my keytool generated not working SHA-1 / SHA-256 | |
| Mar 22, 2020 at 19:36 | history | answered | KylianMbappe | CC BY-SA 4.0 |