Google login error with the google_sign_in package in Flutter
I'm trying to make a Google login with my app, but I the login constantly fails with this error:
I/flutter (16839): PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 16: , null)
The Android logcat spits out this error:
2018-11-22 22:47:25.329 2505-17072/com.google.android.gms.persistent E/NetworkScheduler: Invalid component specified.
2018-11-22 22:47:25.433 2505-16856/com.google.android.gms.persistent E/NetworkScheduler: Invalid component specified.
2018-11-22 22:47:25.702 14421-16174/com.google.android.gms.ui E/bqye: *~*~*~ Channel {0} was not shutdown properly!!! ~*~*~*
Make sure to call shutdown()/shutdownNow() and wait until awaitTermination() returns true.
java.lang.RuntimeException: ManagedChannel allocation site
at bqyf.<init>(:com.google.android.gms@13280022@13.2.80 (040700-211705629):1)
at bqye.<init>(:com.google.android.gms@13280022@13.2.80 (040700-211705629):2)
at bqye.<init>(:com.google.android.gms@13280022@13.2.80 (040700-211705629):1)
at bqrh.a(:com.google.android.gms@13280022@13.2.80 (040700-211705629):20)
at pwb.a(:com.google.android.gms@13280022@13.2.80 (040700-211705629):47)
at pwb.a(:com.google.android.gms@13280022@13.2.80 (040700-211705629):65)
at com.google.android.gms.signin.activity.SignInChimeraActivity.a(:com.google.android.gms@13280022@13.2.80 (040700-211705629):28)
at amho.call(Unknown Source:2)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at qcr.run(:com.google.android.gms@13280022@13.2.80 (040700-211705629):21)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at qiv.run(Unknown Source:7)
at java.lang.Thread.run(Thread.java:764)
2018-11-22 22:47:29.146 1731-1731/? E/netmgr: Failed to open QEMU pipe 'qemud:network': Invalid argument
2018-11-22 22:47:29.172 2505-16856/com.google.android.gms.persistent E/NetworkScheduler: Invalid component specified.
2018-11-22 22:47:29.727 1678-1711/? E/storaged: getDiskStats failed with result NOT_SUPPORTED and size 0
The login function looks like this:
Future<void> _handleSignIn() async {
try {
await googleSignIn.signIn();
print(_currentUser.email);
} catch (error) {
print(error);
}
}
Don't mark this as a duplicate right away, I've read the other posts and yes, my package name is correct and yes, I added an SHA-1 and SHA-256 key to my Firebase project. They're also correct(I assume, since they're freshly generated with keytool). My google_services.json is also freshly downloaded.
android dart flutter google-login
add a comment |
I'm trying to make a Google login with my app, but I the login constantly fails with this error:
I/flutter (16839): PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 16: , null)
The Android logcat spits out this error:
2018-11-22 22:47:25.329 2505-17072/com.google.android.gms.persistent E/NetworkScheduler: Invalid component specified.
2018-11-22 22:47:25.433 2505-16856/com.google.android.gms.persistent E/NetworkScheduler: Invalid component specified.
2018-11-22 22:47:25.702 14421-16174/com.google.android.gms.ui E/bqye: *~*~*~ Channel {0} was not shutdown properly!!! ~*~*~*
Make sure to call shutdown()/shutdownNow() and wait until awaitTermination() returns true.
java.lang.RuntimeException: ManagedChannel allocation site
at bqyf.<init>(:com.google.android.gms@13280022@13.2.80 (040700-211705629):1)
at bqye.<init>(:com.google.android.gms@13280022@13.2.80 (040700-211705629):2)
at bqye.<init>(:com.google.android.gms@13280022@13.2.80 (040700-211705629):1)
at bqrh.a(:com.google.android.gms@13280022@13.2.80 (040700-211705629):20)
at pwb.a(:com.google.android.gms@13280022@13.2.80 (040700-211705629):47)
at pwb.a(:com.google.android.gms@13280022@13.2.80 (040700-211705629):65)
at com.google.android.gms.signin.activity.SignInChimeraActivity.a(:com.google.android.gms@13280022@13.2.80 (040700-211705629):28)
at amho.call(Unknown Source:2)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at qcr.run(:com.google.android.gms@13280022@13.2.80 (040700-211705629):21)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at qiv.run(Unknown Source:7)
at java.lang.Thread.run(Thread.java:764)
2018-11-22 22:47:29.146 1731-1731/? E/netmgr: Failed to open QEMU pipe 'qemud:network': Invalid argument
2018-11-22 22:47:29.172 2505-16856/com.google.android.gms.persistent E/NetworkScheduler: Invalid component specified.
2018-11-22 22:47:29.727 1678-1711/? E/storaged: getDiskStats failed with result NOT_SUPPORTED and size 0
The login function looks like this:
Future<void> _handleSignIn() async {
try {
await googleSignIn.signIn();
print(_currentUser.email);
} catch (error) {
print(error);
}
}
Don't mark this as a duplicate right away, I've read the other posts and yes, my package name is correct and yes, I added an SHA-1 and SHA-256 key to my Firebase project. They're also correct(I assume, since they're freshly generated with keytool). My google_services.json is also freshly downloaded.
android dart flutter google-login
are you using an emulator?
– a2en
Nov 23 '18 at 8:40
@AmEénÁhsAn Yes, i am, but it supports Google Play Services and the Google login.
– 01leo
Nov 23 '18 at 13:36
try rebuilding the app after deleting the build directory
– a2en
Nov 23 '18 at 14:49
add a comment |
I'm trying to make a Google login with my app, but I the login constantly fails with this error:
I/flutter (16839): PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 16: , null)
The Android logcat spits out this error:
2018-11-22 22:47:25.329 2505-17072/com.google.android.gms.persistent E/NetworkScheduler: Invalid component specified.
2018-11-22 22:47:25.433 2505-16856/com.google.android.gms.persistent E/NetworkScheduler: Invalid component specified.
2018-11-22 22:47:25.702 14421-16174/com.google.android.gms.ui E/bqye: *~*~*~ Channel {0} was not shutdown properly!!! ~*~*~*
Make sure to call shutdown()/shutdownNow() and wait until awaitTermination() returns true.
java.lang.RuntimeException: ManagedChannel allocation site
at bqyf.<init>(:com.google.android.gms@13280022@13.2.80 (040700-211705629):1)
at bqye.<init>(:com.google.android.gms@13280022@13.2.80 (040700-211705629):2)
at bqye.<init>(:com.google.android.gms@13280022@13.2.80 (040700-211705629):1)
at bqrh.a(:com.google.android.gms@13280022@13.2.80 (040700-211705629):20)
at pwb.a(:com.google.android.gms@13280022@13.2.80 (040700-211705629):47)
at pwb.a(:com.google.android.gms@13280022@13.2.80 (040700-211705629):65)
at com.google.android.gms.signin.activity.SignInChimeraActivity.a(:com.google.android.gms@13280022@13.2.80 (040700-211705629):28)
at amho.call(Unknown Source:2)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at qcr.run(:com.google.android.gms@13280022@13.2.80 (040700-211705629):21)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at qiv.run(Unknown Source:7)
at java.lang.Thread.run(Thread.java:764)
2018-11-22 22:47:29.146 1731-1731/? E/netmgr: Failed to open QEMU pipe 'qemud:network': Invalid argument
2018-11-22 22:47:29.172 2505-16856/com.google.android.gms.persistent E/NetworkScheduler: Invalid component specified.
2018-11-22 22:47:29.727 1678-1711/? E/storaged: getDiskStats failed with result NOT_SUPPORTED and size 0
The login function looks like this:
Future<void> _handleSignIn() async {
try {
await googleSignIn.signIn();
print(_currentUser.email);
} catch (error) {
print(error);
}
}
Don't mark this as a duplicate right away, I've read the other posts and yes, my package name is correct and yes, I added an SHA-1 and SHA-256 key to my Firebase project. They're also correct(I assume, since they're freshly generated with keytool). My google_services.json is also freshly downloaded.
android dart flutter google-login
I'm trying to make a Google login with my app, but I the login constantly fails with this error:
I/flutter (16839): PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 16: , null)
The Android logcat spits out this error:
2018-11-22 22:47:25.329 2505-17072/com.google.android.gms.persistent E/NetworkScheduler: Invalid component specified.
2018-11-22 22:47:25.433 2505-16856/com.google.android.gms.persistent E/NetworkScheduler: Invalid component specified.
2018-11-22 22:47:25.702 14421-16174/com.google.android.gms.ui E/bqye: *~*~*~ Channel {0} was not shutdown properly!!! ~*~*~*
Make sure to call shutdown()/shutdownNow() and wait until awaitTermination() returns true.
java.lang.RuntimeException: ManagedChannel allocation site
at bqyf.<init>(:com.google.android.gms@13280022@13.2.80 (040700-211705629):1)
at bqye.<init>(:com.google.android.gms@13280022@13.2.80 (040700-211705629):2)
at bqye.<init>(:com.google.android.gms@13280022@13.2.80 (040700-211705629):1)
at bqrh.a(:com.google.android.gms@13280022@13.2.80 (040700-211705629):20)
at pwb.a(:com.google.android.gms@13280022@13.2.80 (040700-211705629):47)
at pwb.a(:com.google.android.gms@13280022@13.2.80 (040700-211705629):65)
at com.google.android.gms.signin.activity.SignInChimeraActivity.a(:com.google.android.gms@13280022@13.2.80 (040700-211705629):28)
at amho.call(Unknown Source:2)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at qcr.run(:com.google.android.gms@13280022@13.2.80 (040700-211705629):21)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at qiv.run(Unknown Source:7)
at java.lang.Thread.run(Thread.java:764)
2018-11-22 22:47:29.146 1731-1731/? E/netmgr: Failed to open QEMU pipe 'qemud:network': Invalid argument
2018-11-22 22:47:29.172 2505-16856/com.google.android.gms.persistent E/NetworkScheduler: Invalid component specified.
2018-11-22 22:47:29.727 1678-1711/? E/storaged: getDiskStats failed with result NOT_SUPPORTED and size 0
The login function looks like this:
Future<void> _handleSignIn() async {
try {
await googleSignIn.signIn();
print(_currentUser.email);
} catch (error) {
print(error);
}
}
Don't mark this as a duplicate right away, I've read the other posts and yes, my package name is correct and yes, I added an SHA-1 and SHA-256 key to my Firebase project. They're also correct(I assume, since they're freshly generated with keytool). My google_services.json is also freshly downloaded.
android dart flutter google-login
android dart flutter google-login
asked Nov 22 '18 at 21:50
01leo01leo
388113
388113
are you using an emulator?
– a2en
Nov 23 '18 at 8:40
@AmEénÁhsAn Yes, i am, but it supports Google Play Services and the Google login.
– 01leo
Nov 23 '18 at 13:36
try rebuilding the app after deleting the build directory
– a2en
Nov 23 '18 at 14:49
add a comment |
are you using an emulator?
– a2en
Nov 23 '18 at 8:40
@AmEénÁhsAn Yes, i am, but it supports Google Play Services and the Google login.
– 01leo
Nov 23 '18 at 13:36
try rebuilding the app after deleting the build directory
– a2en
Nov 23 '18 at 14:49
are you using an emulator?
– a2en
Nov 23 '18 at 8:40
are you using an emulator?
– a2en
Nov 23 '18 at 8:40
@AmEénÁhsAn Yes, i am, but it supports Google Play Services and the Google login.
– 01leo
Nov 23 '18 at 13:36
@AmEénÁhsAn Yes, i am, but it supports Google Play Services and the Google login.
– 01leo
Nov 23 '18 at 13:36
try rebuilding the app after deleting the build directory
– a2en
Nov 23 '18 at 14:49
try rebuilding the app after deleting the build directory
– a2en
Nov 23 '18 at 14:49
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53438356%2fgoogle-login-error-with-the-google-sign-in-package-in-flutter%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53438356%2fgoogle-login-error-with-the-google-sign-in-package-in-flutter%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
are you using an emulator?
– a2en
Nov 23 '18 at 8:40
@AmEénÁhsAn Yes, i am, but it supports Google Play Services and the Google login.
– 01leo
Nov 23 '18 at 13:36
try rebuilding the app after deleting the build directory
– a2en
Nov 23 '18 at 14:49