L
L
LuVairo2020-07-03 16:09:47
Python
LuVairo, 2020-07-03 16:09:47

How to build an apk file through buildozer for publishing on Google Play?

Hello, I have created an android application using the Kivy (python) library. I build the apk file using the buildozer android debug command - everything works perfectly, but when publishing, there is a problem that you need to raise the android API level and turn off the debugging mode. I dealt with the first one by changing the buildozer.spec file, and to solve the second problem I found the answer: you need to create a special. key and bind it to the apk file, but you still need to create the file itself without debugging. When I do this through the buildozer android release command, I get an error.
Error:
# Asking for release but P4A_RELEASE_KEYALIAS is missing--sign will not be passed
# Asking for release but P4A_RELEASE_KEYSTORE_PASSWD is missing--sign will not be passed
# Asking for release but P4A_RELEASE_KEYSTORE is missing--sign will not be passed #
Asking for release but P4A_RELEASE_KEYALIAS_PASSWD is missing--sign will not be
passed
.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':mergeReleaseResources'.
> Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2020-07-03
@GavriKos

I don’t rummage around in this bulldozer of yours, but just a set of errors suggests that the release needs to be built with this special special key, as you called it. More precisely with the keystore - the signature key.
Alias ​​and alias password - this also applies to the key.
So google how to pass keystore, alias and passwords as parameters.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question