unsigned apk

All topics about ZGameEditor goes here.

Moderator: Moderators

Post Reply
farhad abedini
Posts: 3
Joined: Tue Nov 07, 2023 4:40 pm

unsigned apk

Post by farhad abedini »

hi,
I made a key and put it in the Android settings, but the output of the file is unsigned.apk, what is the reason?
Regards
User avatar
VilleK
Site Admin
Posts: 2277
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: unsigned apk

Post by VilleK »

Hi,

It's been a long time since I tried signing a apk. Can you please give some more details of what is happening?

@Ats: Do you sign your apk-files this way?
User avatar
Ats
Posts: 617
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: unsigned apk

Post by Ats »

Hi farhad,

You need to generate the android.keystore file:
https://stackoverflow.com/questions/399 ... a-keystore

And put it somewhere (ex: C:/keystore/android.keystore)

Now, in your ZGE project android folder that was generated when you export to Android, you need to create, (or edit?) ant.properties file

Code: Select all

key.store=C:/keystore/android.keystore
key.alias=YourAlias
key.store.password=YourStorePassword
key.alias.password=YourKeyAliasPassword
java.source=1.8
java.target=1.8
And in ZGE settings, in the Android tab:
You have to set the paths to your sdk and ant and keystore. In my case:

Android SDK Path: C:\Android\android-sdk-windows
Apache Ant Path: C:\Android\apache-ant-1.10.3
Keystore file: C:/keystore/android.keystore
Keystore Alias: YourAlias

Maybe generating the signed apk will ask you the key.store.password during compilation. After that, check your ant.properties to see if it wasn't erased, because maybe it will be erased, so keep a copy somewhere safe... I remember it was a pain to set up with a lot of try and repeat, but it should work in the end.
Once your project is set up correctly, save it somewhere safe, in case you need to do that again in the future :wink:
farhad abedini
Posts: 3
Joined: Tue Nov 07, 2023 4:40 pm

Re: unsigned apk

Post by farhad abedini »

Hi,Ats
Thank you very much for your answer, but the problem is not solved and the content of Ant file will be deleted
Regards
User avatar
Ats
Posts: 617
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: unsigned apk

Post by Ats »

Generate the android apk. This will generate the folder (example: com.txori.omeganaut )
Inside that folder, edit ant.properties (example: com.txori.omeganaut/ant.properties )
Never delete that folder.
Then generate android apk again. ant.properties shouldn't be deleted.

I have verified again, it works.
If that's not the case, let's be creative and prevent writing on file ant.properties after your modification :lol:
Post Reply