When I upload it to the Google Play Store, it tells me it's been signed in debug mode and needs to be signed in release mode.
I only have the apk file and unfortunately lost the source files.
Try to decompile your apk and restore your source code then signed it
Decompile Apk and Dex Android files to Java
First of login to google console and get keygen.
In keygen property file, enter the credential like
key.store=debug.keystore
key.alias=androiddebugkey
key.store.password=abc
key.alias.password=abc
Also download keystore file from google console and place it in /app folder.
After then, run the command as -
./gradlew assembleRelease
This will create sign release apk in output folder
It is not possible to add it in playstore without having source code.
Anyway , in future , you will need source code in order to make updates to the
app .
For next projects try to use git in order to keep your projects.
Are you the author of this app ? From where do you have the apk ? Did not generate it ? Apk is in general in project output folder . Or do you have this apk from someone and you want to put it in play ?
Related
First, I am getting a same error as this post Request Failed on production apk
Then, I did some searches. I guess I need to sign my app with release keys. Tutorial for Test and Deploy
I follow Tutorial for Signing App to sign my app. I did
Generate a key and keystore (in Android Studio)
Manually sign an APK (in Android Studio)
Enable Google Play App Signing (in Google Console)
Follow -Tutorial for Test and Deploy- to check CERT.RSA using jar -xvf META-INF/CERT.RSA
but receive
java.io.FileNotFoundException: META-INF/CERT.RSA (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.io.FileInputStream.<init>(FileInputStream.java:93)
at sun.tools.jar.Main.run(Main.java:305)
at sun.tools.jar.Main.main(Main.java:1233)
Any suggestions?
You have the wrong command line jar instruction (I've not sure where you got this from). Your command is looking for a file called CERT.RSA. Instead you need to look at your APK. Try:
jar -tvf foo.apk META-INF
where foo.apk is the name of your APK file to list everything in your APK META-INF directory.
In my case, the error means I need to submit a form to Google in order to use Google Pay. Here is details. https://stackoverflow.com/a/49501813/5737856
i want to upload my app in google play market, but i am confused,
which .apk file should i use to upload, 1) Build-->signed apk-- ........
and 2)select projects from to left corner in android studio-->app-->outputs--> .apk file
One more thing , when i am creating signed .apk from build menu-> signed apk
after filling all the details...
android studio... shows an error....it does not recognize raw folder and its audio file
what i do , to remove this error
please suggest me.........
You should choose former, the signed .apk to upload to Google, the other one is for the debugging purposes.
here, this one. -> http://i.imgur.com/c18ps4Y.png
Also, I would suggest you to clean, rebuild project once before generating signed .apk, although its done on build.
Also, kindly provide the exact error you are getting while building the signed apk.
Could someone tell me the steps of how to actually get your app (built in AS) on the play store?
I already:
made myself an Android developers console account.
paid the 25$ fee.
built a Signed version of my apk.
( i don't know where he built it to, AndroidStudioProjects\MyApplication\app\build\outputs\apk ? )
Do i need to rename the built apk to the desired app name ?
So please could someone describe the steps starting from 0, So future people with the same problem can find the solution easly ?
Before publishing your app to play store, you need to follow following two steps:
1. Get the signed version of apk: If you are using Eclipse,
Right click on project > Android tools > Signed version of application package
2. Zip align the apk obtained from above step:
"\sdk\build-tools\android-4.4W\zipalign.exe" -f -v 4 "\SignedProject.apk" "\Project_ZipAligned.apk"
The project that you created should have a .apk file or you can create a signed apk file . To sign you application go here http://developer.android.com/tools/publishing/app-signing.html. Once you have you apk file, app icons ready you need to upload them on the website. At this point you will be ready to publish.
I am trying to upload an APK to Google Play store. I have added android:debuggable="false" in the application tag of AndroidManifest.xml. But, still it says you need to disable debugging before it can be published in Google Play.
Update:
I am using debug.keystore for signing the APK. So, is it the reason for the issue ?
Should I create a different release.keystore ?
Yes you are right.
To Put your application on Google Play Store You have to generate release.keystore.
Please check the steps of how to generate keystore ::
Right click the project.
Go to Android Tools.
select Export Signed APK Package.
Enter Project Name.
Select create new key store option.
Set Location eg: Keystore Location.
At the end of this procedure you will have you build.apk and put that APK on Play Store that will work.
Make sure you're signing your application with the release key (not the debug key).
Yes, you need to use a release key, you can not upload to the play store if your app is signed with the debug key. See http://developer.android.com/tools/publishing/app-signing.html#releasemode for more info.
Remove all calls to the catlog in your code.
Look for BuildConfig.java in your source dir and see what it says for DEBUG.
If you're using Gradle/Android Studio be sure to select the release variant.
If you using Eclipse, disable auto-build, do a clean, then use the Export signed APK option in Android Tools.
I am developing for an application currently.
But when i will finish my app developement and i create .apk, should i sign it or make it unsigned while giving my app to my client for testing on their own devices??
He should not be able to put this apk on market as an author/ He should not distribute without my permission.
Any suggestions are welcome.
Thanks.
You can sign with your debug key which in windows resides in: username/.android/debug.keystore
Password is: android
Sec password is: android
Edit: But if the person has some knowledge he can just resign it with another key, you can't really protect yourself against this (afaik).
Steps:
In Android Studio Generate Build APK
Build -> Build APK
You get popup once apk is generated
Build APK
Apk(s) generated successfully.
Shown in File Manager.
Goto https://www.diawi.com/ and signup if if you are a new user, else login.
In above link you may find option "Upload your app".
Inside that box you ma find "Drag&drop files here .ipa or .zip(.app) .apk"
So Drag and Drop apk file or Browse apk file using + Add file(s) button.
After uploading apk Click on Send button.
This will generate a URL and Barcode.
Share that URL with a person who want to test the build.
you don't need to sign using debug key, android sdk does it automatically, and android applications signed by debug key is not possible to upload on market, you can get apk file in bin directry of your project.
file-> export
click on android
select "export android application"
specify the path