Google login failure with Firebase, while Facebook and email login was successful - google-apps-script

I got this error code
E/flutter (24478): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null)
and tried many options
reinstall the google service file;
re generate the debugstore, and reinstall the SHA1 and SHA256 certificates
build different apps with similar login method:
final GoogleSignInAccount googleSignInAccount = await googleSignIn.signIn();
So far no one option success. :(

finally I found out myself that the debug key was not generated correctly, and I used the wrong SHA1. After finding out the debug keystore location, and generated the key accordingly, the problem resolved.
PS D:\sam_flutter_project\pictorial_groupbuy_v3> keytool -list -v -alias androiddebugkey -keystore "C:\Users\notebook.android\debug.keystore"

Related

tsa and tsacert error while running the xamarin.forms application

I am trying to use google maps in my xamarin.forms application. when I run the application, I get the message saying that there are deployment errors
2>C:\Program Files\Java\jdk1.8.0_161\\bin\jarsigner.exe -keystore "C:\Users\e245737\AppData\Local\Xamarin\Mono for Android\debug.keystore" -storepass android -keypass android -digestalg SHA1 -sigalg md5withRSA -signedjar bin\Debug\\com.test.and-Signed-Unaligned.apk C:\VisualStudioMobileApplication\and\and\and.Android\obj\Debug\android\bin\com.test.and.apk androiddebugkey
2>No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2048-02-09) or after any future revocation date.
2>C:\Program Files (x86)\Android\android-sdk\build-tools\27.0.3\zipalign.exe 4 "C:\VisualStudioMobileApplication\and\and\and.Android\bin\Debug\com.test.and-Signed-Unaligned.apk" "bin\Debug\\com.test.app1-Signed.apk"
2>Unexpected install output: pkg: /data/local/tmp/com.test.app1-Signed.apk
2>Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]
My package name is all lower case. Below is the name.
com.test.app1
I am not sure about this below error:
No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2048-02-09) or after any future revocation date.
My androidManifest.xml file looks like this:
my properties file looks like this:
any help will be appreciated.

Carthage error "Bad credentials"

Instructions: https://github.com/watson-developer-cloud/ios-sdk
Errors:
*** Skipped downloading ios-sdk.framework binary due to the error:
"Bad credentials"
The following build commands failed:
CompileSwift normal arm64
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(2 failures)
I got the solution in response to a Carthage issue willhains raised:
Edit ~/.gitconfig and add the following:
[credential]
helper = osxkeychain
[credential "https://github.com"]
username = willhains
Replace willhains with your GitHub user ID.
Clone a private repo via HTTPS.
OSX will prompt for your GitHub password.
Run Carthage update.
OR
You can delete the GitHub credential form you Keychain access and use..
Hope this will help
For in my case:
I changed my Github username and forgot to change local credentials(only username) stored in Keychain Access.
Do change the username to your new one and voila!

I got error " Invalid Key Hash XXXXXXXXXXX does not match any stored key hashes " in realise mode in android?

I develop facebook integration with android. App is running in build mode its working fine but while run in realise mode app is not working. How can i resolve this problem? I got error " Invalid Key Hash XXXXXXXXXXX does not match any stored key hashes .
For people looking for answer:
We need to add both- release and debug keys under your project in Facebook developer site.
Here are the steps I followed:
create keystore by running this command:
...\Java\jdk1.7.0_01\bin>keytool -exportcert -likeytool -genkey -v -keystore <APP_NAME>.keystore -alias <APP_NAME> -keyalg RSA -validity 999999
You have already added the debug key. Now generate a release key and add it under you project.
..\Java\jdk1.7.0_01\bin>keytool -exportcert -alias -keystore .keystore file> | openssl sha1 -binary | openssl base64
Sign your app in the release mode.

Tracing mysql-java-connector errors

We are using BirtActuate in our application in showing reports.
Actuate -----> JDBC driver --------> MysqlDB
We are aiming to TRACE errors that appears while connecting via JDBC to mysql.
We have followed instructions available at http://dev.mysql.com/doc/connector-j/en/connector-j-reference-configuration-properties.html
and tried making connection using following connection string:
jdbc:mysql://192.168.0.1/TestDB?interactiveClient=true&autoReconnect=true&profileSQL=true&traceProtocol=true
As per the documentation of logger parameter in link mentioned we found that
The name of a class that implements "com.mysql.jdbc.log.Log" that will
be used to log messages to. (default is
"com.mysql.jdbc.log.StandardLogger", which logs to STDERR)
We want to trap all errors in a file so we can send that to support people to help us solving issues. I do not really know how to do that.
Adding &profileSQL=true&traceProtocol=true to JDBC connection URL will cause extra traces to be logged by the BirtActuate's default's logger in directory which in present birtActuateServer is $BIRT_HOME/server/data/logs
Go to the logs directory and run on command prompt
> grep -rl com.mysql.jdbc.exceptions .
This command should list the files in which it has found "com.mysql.jdbc.exceptions" string

Any difference between MD5 and SHA1 for getting MAP API?

I am getting following results:
C:\Program Files\Java\jdk1.7.0\bin>keytool -list -alias androiddebugkey -keystor
e "C:\Documents and Settings\Administrator.android\debug.keystore" -storepass a
ndroid -keypass android
androiddebugkey, May 27, 2011, PrivateKeyEntry,
Certificate fingerprint (SHA1): "Some Code"
But after entering this in http://code.google.com/android/maps-api-signup.html for getting MAP API it is showing invalid fingerprint.
Can you please guide me is the fingerprint I have got is correct or not. Because I am getting it as SHA1 and not MD5. How can I get API key??
keytool -v -list -alias alias_name -keystore my-release-key.keystore
With JDK 1.7 installed, keytool outputs by default SHA1 fingerprint, not MD5. Adding -v option allows to see MD5 as well.
Please update the page with this info, many devs are having problems trying to get a maps key.
http://code.google.com/p/android/issues/detail?id=19035
After entering key add ; and your application package name
eg. sha1 code blablabla;com.example and then generate the key.
Happy coding....
also check this tutorial and recheck steps you followed it worked for me....