I can no believe it!. After more that one month trying to show ads on my app I have achieve it.
— Thanks for point me in the good direction.
First I tryed your method, but I got a problem with the jarsigner.
So what I did was next:
1.Export with minify script unchecked to Unsigned Release APK with minimun version 5.0
2.Copy the generated APK to the folder where you have installed "apksigner.bat"----> android studio>sdk<build-tools<27.0.3 (this is my last version installed, also you dont need to have installed Android Studio but you will need the build-tools, in this case apksigner.bat)
3.Open cmd and go to this folder and execute:
apksigner sign --ks (the name of your certificate file, it could be .jks or .keystore, both of them works in this command).jks --out (choose a name for your signed apk).apk (the current name of your apk file).apk
You have to introduce your 2 pass and in less than 10 seconds a signed APK is generated on the same folder.
This works for me and hope works for you. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">
---------------------------------------------------------------------------------------------------------------------------------------------------------------
Another useful thing that I have learned today (if you have Android Studio is going to be useful):
Sometimes when I have my APK I want to test in my device. So I upload to dropbox and from there I download to my device. But sometimes I get a message when I trying to install :"Unable to install the apk file" (even with the developer mode on in the device and deleting previus versions of the app).
So, there is a command that makes very easy and fast to install the apk on your device:
1.Enable developer mode on your phone
2.Go to androidstudio<sdk<platform-tools and execute adb devices to check if your device is connected. You will get a device number here.
3.Copy your signed apk to this folder.
4.Execute adb -s (your device number) install (the name of your signed apk).apk
In less than 10 secons your apk is intalled on your device. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">
If you want to try my succesful App with Ads you can click on:
https://play.google.com/store/apps/deta ... .trapbeats