The last time I tried to build inside android studio if I add ads I get a black screen. I dont know if still is like this.
The apksigner comand is next:
Supose you have created a keystore file called KEYSTORE.jks and you have exported your apk using unsigned apk option inside C3 with the name MYGAME.apk
(Inside your android studio folder-->sdk-->build-tools-->27.0.3(or whatever other version)) open the command line:
-------------------------------->apksigner sign --ks KEYSTORE.jks --out MYGAME_SIGNED.apk MYGAME.apk
Then you have to enter your keystore password and your alias password, previously created.
The file MYGAME_SIGNED.apk will be created on your folder.
NOTE: If you are using the new PowerShell of windows you have to add at the beggining of the command --> ".\"
--------------------------------------------------------------------------------------------------------------------------------------------------
Now, if you want to test your signed apk quicky on your device. Connect your device to your computer usb and go to your folder:
Move or copy MYGAME_SIGNED.apk to the folder platform-tools.
(Inside your android studio folder-->sdk-->platform-tools) open the command line:
First you conect your device and execute the command adb devices to know the SERIALNUMBER of your device and now you can execute:
adb -s SERIALNUMBER install MYGAME_SIGNED.apk
The apk will appear now installed on your mobile, if you want to install again you have to delete previous versions.
NOTE: If you are using the new PowerShell of windows you have to add at the beggining of the command --> ".\"
--------------------------------------
You are truly amazing. Thanks a lot. If you ever need any help I will always be there