Failed to read key myapp from store (Prjoect imorted) - java

I imported an android studio project from another developer to my system while generating Signed APK I am getting this error.
Error:Execution failed for task ':app:packageRelease'.
com.android.ide.common.signing.KeytoolException: Failed to read key mobile_visit_confirmation from store "C:\Users\ABC\AndroidStudioProjects\myapp\myapp_Key_Store.jks":
Keystore was tampered with, or password was incorrect
The project was done by someone now I am working on that he is not providing password, alias and certificate information and I want to upload update APK to play store.

Related

Cause: jarsigner.exefailed with exit code 1 : jarsigner:

I got this error when I try to create a signed app. I had my keystore backup in the cloud and in my hard drive. I used my existing keystore with correct alias and passwords. But it gives this error and couldn't complete the signing process:->
Cause: jarsigner.exefailed with exit code 1 : jarsigner: Certificate chain not found for: key(). key() must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain.
Note:- I had to reinstall android studio in my computer and reset it's setting before as autocomplete was not working in all my project.
Please help

Google Sign In via firebase ->

I followed this tutorial for adding Goggle Login to my App:
https://firebase.google.com/docs/auth/android/google-signin?authuser=0
So the Code is similar to this:
https://github.com/firebase/quickstart-android/blob/master/auth/app/src/main/java/com/google/firebase/quickstart/auth/GoogleSignInActivity.java
But when signing in i get this...
Error:
Google sign in failed
com.google.android.gms.common.api.ApiException: 10: at
com.google.android.gms.common.internal.zzb.zzz(Unknown Source)at
com.google.android.gms.auth.api.signin.GoogleSignIn.
getSignedInAccountFromIntent(Unknown Source)
I think I've setup the firebase and Google Console right. Also the Android Studio Assistent for adding firebase, says that the dependencies are correct.
What do I overlook?
I went through this problem and after much sweat I discovered that the problem was the wrong SHA1 key.
you have to generate a sha1 debug key while it is in the development phase. After launching your app you should use your release key.
for generate debug key, open keytool.exe and: keytool -exportcert -list -v -ali
as androiddebugkey -keystore %USERPROFILE%.android\debug.keystore
passwd: android
done this, copy the generated sha1 key, in the firebase go to configuration of projects, add fingerprint. done this, download the json file for your project and run.
you must repeat this procedure with the sha1 release key.
I figured it out. Was kind of dump. I started an Project in the Google Console and later in Firebase. Then I tried to connect them to use the Webclient-Id...
After all they where not combined so Firebase didn't find this Web-ID.
-> I just created a new Firebase Projekt and out of there created a new Google-Console Projekt where the Web-ID is generated. After implementing the new Web-ID in my App it worked fine!

Failed to read key AndroidDebugKey from store "C:\Users\....\.android\debug.keystore": Invalid keystore format

I am trying to publish a simple project in android studio .so i go to menu>build>build apk .but i get this error :
Error:Execution failed for task ':app:packageDebug'.
> Failed to read key AndroidDebugKey from store "C:\Users\ehsan\.android\debug.keystore": Invalid keystore format
I am so new in android studio
I'm also facing same issue. for mine getting this type of issue, when I run app with my physical device.
Solution
Delete .android (path:C:\Users{your pc name}) folder in your work space then try with step by step process.
good luck

Error when exporting .apk from Eclipse / Android Developer Tools

Every time I try to export the project I get the error:
android keytool error: java.lang.Exception: Key pair not generated, alias already exists
I tried making a new key and using my old key - neither work
I've tried saving it in a different location - even created new folders to ensure there were no conflicts
tried filling out all new credentials when creating the key - same error:
"android keytool error: java.lang.Exception: Key pair not generated, alias already exists"
This problem is the building .apk not success. May be file name in drawable is invalid..etc..
try Export an unsigned APK and sign it manually in
appManifest.XML > design> export
Fix all errors can occur.
Then you can export apk use key normal.
Hope this help!

Android Market - Error While Uploading APK file

Just now I have developed an application and now I am ready to upload it to Android market,
but when I am trying to upload, it shows the following error message:
Market does not accept apk signed with the debug certificate. Create a new certificate that is valid for atleast 50 years. Market requires that the certificated used to sign the apk be Valid until at least October 22, 2033. Create a new Certificate.
Now how do I fix this problem, so that I can upload the APK file to Android market successfully?
While developing and testing, you can compile in debug mode(debug certificate).
When your application is ready for release, you must compile in release mode and then sign the .apk with your private key.
The following link gives will help you
http://developer.android.com/guide/publishing/app-signing.html

Categories