· 2 years ago · Aug 20, 2023, 05:20 PM
1# Build the application #1
2# Copy application source from /content
3# Create directory /content/.buildozer/android/app
4# Copy /content/buy.png
5# Copy /content/main.py
6# Package the application
7# project.properties updated
8# Asking for release but P4A_RELEASE_KEYALIAS is missing--sign will not be passed
9# Asking for release but P4A_RELEASE_KEYSTORE_PASSWD is missing--sign will not be passed
10# Asking for release but P4A_RELEASE_KEYSTORE is missing--sign will not be passed
11# Asking for release but P4A_RELEASE_KEYALIAS_PASSWD is missing--sign will not be passed
12# Run ['/usr/bin/python3', '-m', 'pythonforandroid.toolchain', 'aab', '--bootstrap', 'sdl2', '--dist_name', 'billingapp', '--name', 'IAB Kivy', '--version', '0.2', '--package', 'com.igorzyden.billingapp', '--minsdk', '26', '--ndk-api', '26', '--private', '/content/.buildozer/android/app', '--permission', 'INTERNET', '--permission', 'ACCESS_NETWORK_STATE', '--permission', 'com.android.vending.BILLING', '--android-entrypoint', 'org.kivy.android.PythonActivity', '--android-apptheme', '@android:style/Theme.NoTitleBar', '--add-gradle-repository', '"mavenCentral()"', '--meta-data', 'billing_pubkey="I HIDE MY BILLING KEY"', '--icon', '/content/./buy.png', '--orientation', 'portrait', '--window', '--enable-androidx', '--release', '--copy-libs', '--depend', "'com.anjlab.android.iab.v3:library:2.0.3'", '--arch', 'arm64-v8a', '--arch', 'armeabi-v7a', '--color=always', '--storage-dir=/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=26', '--ignore-setup-py', '--debug']
13# Cwd /content/.buildozer/android/platform/python-for-android
14[WARNING]: prerequisites.py is experimental and does not support all prerequisites yet.
15[WARNING]: Please report any issues to the python-for-android issue tracker.
16[WARNING]: prerequisites.py is experimental and does not support all prerequisites yet.
17[WARNING]: Please report any issues to the python-for-android issue tracker.
18[INFO]: Will compile for the following archs: arm64-v8a, armeabi-v7a
19[INFO]: Found Android API target in $ANDROIDAPI: 32
20[INFO]: Available Android APIs are (32)
21[INFO]: Requested API target 32 is available, continuing.
22[INFO]: Found NDK dir in $ANDROIDNDK: /root/.buildozer/android/platform/android-ndk-r25b
23[INFO]: Found NDK version 25b
24[INFO]: Getting NDK API version (i.e. minimum supported API) from user argument
25[INFO]: ccache is missing, the build will not be optimized in the future.
26[DEBUG]: All possible dists: [<Distribution: name billingapp with recipes (freetype, hostpython3, jpeg, libffi, openssl, png, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, setuptools, pillow, six, pyjnius, android, kivy, idna, certifi, urllib3, iabwrapper, chardet, kivymd, requests)>]
27[DEBUG]: Dist matching name and arch: [<Distribution: name billingapp with recipes (freetype, hostpython3, jpeg, libffi, openssl, png, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, setuptools, pillow, six, pyjnius, android, kivy, idna, certifi, urllib3, iabwrapper, chardet, kivymd, requests)>]
28[DEBUG]: Dist matching ndk_api and recipe: [<Distribution: name billingapp with recipes (freetype, hostpython3, jpeg, libffi, openssl, png, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, setuptools, pillow, six, pyjnius, android, kivy, idna, certifi, urllib3, iabwrapper, chardet, kivymd, requests)>]
29[INFO]: Of the existing distributions, the following meet the given requirements:
30[INFO]: billingapp: min API 26, includes recipes (freetype, hostpython3, jpeg, libffi, openssl, png, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, setuptools, pillow, six, pyjnius, android, kivy, idna, certifi, urllib3, iabwrapper, chardet, kivymd, requests), built for archs (armeabi-v7a, arm64-v8a)
31[INFO]: billingapp has compatible recipes, using this one
32[DEBUG]: All possible dists: [<Distribution: name billingapp with recipes (freetype, hostpython3, jpeg, libffi, openssl, png, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, setuptools, pillow, six, pyjnius, android, kivy, idna, certifi, urllib3, iabwrapper, chardet, kivymd, requests)>]
33[DEBUG]: Dist matching name and arch: [<Distribution: name billingapp with recipes (freetype, hostpython3, jpeg, libffi, openssl, png, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, setuptools, pillow, six, pyjnius, android, kivy, idna, certifi, urllib3, iabwrapper, chardet, kivymd, requests)>]
34[DEBUG]: Dist matching ndk_api and recipe: [<Distribution: name billingapp with recipes (freetype, hostpython3, jpeg, libffi, openssl, png, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, setuptools, pillow, six, pyjnius, android, kivy, idna, certifi, urllib3, iabwrapper, chardet, kivymd, requests)>]
35[INFO]: Of the existing distributions, the following meet the given requirements:
36[INFO]: billingapp: min API 26, includes recipes (freetype, hostpython3, jpeg, libffi, openssl, png, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, setuptools, pillow, six, pyjnius, android, kivy, idna, certifi, urllib3, iabwrapper, chardet, kivymd, requests), built for archs (armeabi-v7a, arm64-v8a)
37[INFO]: billingapp has compatible recipes, using this one
38[INFO]: -> directory context /content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/bootstrap_builds/sdl2
39[INFO]: <- directory context /content/.buildozer/android/platform/python-for-android
40[INFO]: -> directory context /content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/billingapp
41Compiling '/content/.buildozer/android/app/sitecustomize.py'...
42Compiling '/content/.buildozer/android/app/main.py'...
43[INFO]: Detected highest available build tools version to be 34.0.0
44[DEBUG]: -> running gradlew clean bundleRelease
45[DEBUG]: Downloading https://services.gradle.org/distributions/gradle-7.4.1-all.zip
46[DEBUG]: ...........................................................................................................................................
47[DEBUG]: Unzipping /root/.gradle/wrapper/dists/gradle-7.4.1-all/8bevta3mh7872g50ecurigeld/gradle-7.4.1-all.zip to /root/.gradle/wrapper/dists/gradle-7.4.1-all/8bevta3mh7872g50ecurigeld
48[DEBUG]: Set executable permissions for: /root/.gradle/wrapper/dists/gradle-7.4.1-all/8bevta3mh7872g50ecurigeld/gradle-7.4.1/bin/gradle
49[DEBUG]:
50[DEBUG]: Welcome to Gradle 7.4.1!
51[DEBUG]:
52[DEBUG]: Here are the highlights of this release:
53[DEBUG]: - Aggregated test and JaCoCo reports
54[DEBUG]: - Marking additional test source directories as tests in IntelliJ
55[DEBUG]: - Support for Adoptium JDKs in Java toolchains
56[DEBUG]:
57[DEBUG]: For more details see https://docs.gradle.org/7.4.1/release-notes.html
58[DEBUG]:
59[DEBUG]: Starting a Gradle Daemon (subsequent builds will be faster)
60[DEBUG]:
61[DEBUG]:
62[DEBUG]: > Starting Daemon> IDLE<-------------> 0% INITIALIZING [59ms]<-------------> 0% INITIALIZING [159ms]<-------------> 0% INITIALIZING [259ms]<-------------> 0% INITIALIZING [359ms]<-------------> 0% INITIALIZING [459ms]<-------------> 0% INITIALIZING [559ms]<-------------> 0% INITIALIZING [659ms]<-------------> 0% INITIALIZING [759ms]<-------------> 0% INITIALIZING [859ms]<-------------> 0% INITIALIZING [959ms]<-------------> 0% INITIALIZING [1s]> Evaluating settings<-------------> 0% INITIALIZING [2s]> IDLE<-------------> 0% CONFIGURING [2s]> Loading projects> root project<-------------> 0% CONFIGURING [3s]> root project > Compiling build file 'build.gradle'<-------------> 0% CONFIGURING [4s]<=============> 100% CONFIGURING [4s]> IDLE
63[DEBUG]: FAILURE: Build failed with an exception.
64[DEBUG]:
65[DEBUG]: * Where:
66[DEBUG]: Build file '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/billingapp/build.gradle' line: 81
67[DEBUG]:
68[DEBUG]: * What went wrong:
69[DEBUG]: Could not compile build file '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/billingapp/build.gradle'.
70[DEBUG]: > startup failed:
71[DEBUG]: build file '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/billingapp/build.gradle': 81: Unexpected input: '{' @ line 81, column 14.
72[DEBUG]: dependencies {
73[DEBUG]: ^
74[DEBUG]:
75[DEBUG]: 1 error
76[DEBUG]:
77[DEBUG]:
78[DEBUG]: * Try:
79[DEBUG]: > Run with --stacktrace option to get the stack trace.
80[DEBUG]: > Run with --info or --debug option to get more log output.
81[DEBUG]: > Run with --scan to get full insights.
82[DEBUG]:
83[DEBUG]: * Get more help at https://help.gradle.org
84[DEBUG]:
85[DEBUG]: BUILD FAILED in 20s
86[DEBUG]:
87[DEBUG]:
88Exception in thread background thread for pid 88007:
89Traceback (most recent call last):
90 File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
91 self.run()
92 File "/usr/lib/python3.10/threading.py", line 953, in run
93 self._target(*self._args, **self._kwargs)
94 File "/usr/local/lib/python3.10/dist-packages/sh.py", line 1641, in wrap
95 fn(*rgs, **kwargs)
96 File "/usr/local/lib/python3.10/dist-packages/sh.py", line 2569, in background_thread
97 handle_exit_code(exit_code)
98 File "/usr/local/lib/python3.10/dist-packages/sh.py", line 2269, in fn
99 return self.command.handle_command_exit_code(exit_code)
100 File "/usr/local/lib/python3.10/dist-packages/sh.py", line 869, in handle_command_exit_code
101 raise exc
102sh.ErrorReturnCode_1:
103
104 RAN: /content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/billingapp/gradlew clean bundleRelease
105
106 STDOUT:
107Downloading https://services.gradle.org/distributions/gradle-7.4.1-all.zip
108...................................................................................... Unzipping /root/.gradle/wrapper/dists/gradle-7.4.1-all/8bevta3mh7872g50ecurigeld/gradle-7.4.1-all.zip to /root/.gradle/wrapper/dists/gradle-7.4.1-all/8bevta3mh7872g50ecurigeld
109Set executable permissions for: /root/.gradle/wrapper/dists/gradle-7.4.1-all/8bevta3mh7872g50ecurigeld/gradle-7.4.1/bin/gradle
110
111Welcome to Gradle 7.4.1!
112
113Here are the highlights of this release:
114 - Aggregated test and JaCoCo reports
115 - Marking additional test source directories as tests in IntelliJ
116 - Support for Adoptium JDKs in Java toolchains
117
118For more details see https://docs.gradle.org/7.4.1/release-notes.html
119
120Starting a Gradle Daemon (subsequent builds will be faster)
121
122
123> Starting Daemon> IDLE<-------------> 0% INITIALIZING [59ms]<-------------> 0% INITIALIZING [159ms]<-------------> 0% INITIALIZING [259ms]<-------------> 0% INITIALIZING [359ms]<-------------> 0% INITIALIZING [459ms]<-------------> 0% INITIALIZING [559ms]<-------------> 0% INITIALIZING [659ms]<-------------> 0% INITIALIZING [759ms]<-------------> 0% INITIALIZING [859ms]<-------------> 0% INITIALIZING [959ms]<-------------> 0% INITIALIZING [1s]> Evaluating settings<-------------> 0% INITIALIZING [2s]> IDLE<-------------> 0% CONFIGURING [2s]> Loading projects> root project<-------------> 0% CONFIGURING [3s]> root project > Compiling build file 'build.gradle'<-------------> 0% CONFIGURING [4s]<=============> 100% CONFIGURING [4s]> IDLE
124FAILURE: Build failed with an exception.
125
126* Where:
127Build file '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/billingapp/build.gradle' line: 81
128
129* What went wrong:
130Could not compile build file '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/billingapp/build.gradle'.
131> startup failed:
132 build file '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/billingapp/build.gradle': 81: Unexpected input: '{' @ line 81, column 14.
133 dependencies {
134 ^
135
136 1 error
137
138
139* Try:
140> Run with --stacktrace option to get the stack trace.
141> Run with --info or --debug option to get more log output.
142> Run with --scan to get full insights.
143
144* Get more help at https://help.gradle.org
145
146BUILD FAILED in 20s
147
148
149
150
151 STDERR:
152
153[DEBUG]: <-------------> 0% WAITING> IDLE> Deleting unused version-specific caches in /content/.buildozer/android/platfo> IDLE
154[INFO]: STDOUT (last 20 lines of 44):
155 Could not compile build file '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/billingapp/build.gradle'.
156> startup failed:
157 build file '/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/billingapp/build.gradle': 81: Unexpected input: '{' @ line 81, column 14.
158 dependencies {
159 ^
160
161 1 error
162
163
164* Try:
165> Run with --stacktrace option to get the stack trace.
166> Run with --info or --debug option to get more log output.
167> Run with --scan to get full insights.
168
169* Get more help at https://help.gradle.org
170
171BUILD FAILED in 20s
172
173
174<-------------> 0% WAITING> IDLE> Deleting unused version-specific caches in /content/.buildozer/android/platfo> IDLE
175[INFO]: STDERR:
176
177[INFO]: ENV:
178export HOSTNAME='ce99347fd001'
179export LANGUAGE='en_US'
180export LANG='en_US.UTF-8'
181export TERM='xterm-color'
182export LC_ALL='en_US.UTF-8'
183export PATH='/root/.buildozer/android/platform/apache-ant-1.9.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin'
184export MAIL='/var/mail/root'
185export LOGNAME='root'
186export USER='root'
187export HOME='/root'
188export SHELL='/bin/bash'
189export SUDO_COMMAND='/usr/local/bin/buildozer -v android release'
190export SUDO_USER='root'
191export SUDO_UID='0'
192export SUDO_GID='0'
193export PACKAGES_PATH='/root/.buildozer/android/packages'
194export ANDROIDSDK='/root/.buildozer/android/platform/android-sdk'
195export ANDROIDNDK='/root/.buildozer/android/platform/android-ndk-r25b'
196export ANDROIDAPI='32'
197export ANDROIDMINAPI='26'
198export ANDROID_NDK_HOME='/root/.buildozer/android/platform/android-ndk-r25b'
199export ANDROID_HOME='/root/.buildozer/android/platform/android-sdk'
200
201[INFO]: COMMAND:
202cd /content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/billingapp && /content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/billingapp/gradlew clean bundleRelease
203
204No setup.py/pyproject.toml used, copying full private data into .apk.
205Applying Java source code patches...
206Applying patch: src/patches/SDLActivity.java.patch
207[WARNING]: ERROR: /content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/billingapp/gradlew failed!
208# Command failed: ['/usr/bin/python3', '-m', 'pythonforandroid.toolchain', 'aab', '--bootstrap', 'sdl2', '--dist_name', 'billingapp', '--name', 'IAB Kivy', '--version', '0.2', '--package', 'com.igorzyden.billingapp', '--minsdk', '26', '--ndk-api', '26', '--private', '/content/.buildozer/android/app', '--permission', 'INTERNET', '--permission', 'ACCESS_NETWORK_STATE', '--permission', 'com.android.vending.BILLING', '--android-entrypoint', 'org.kivy.android.PythonActivity', '--android-apptheme', '@android:style/Theme.NoTitleBar', '--add-gradle-repository', '"mavenCentral()"', '--meta-data', 'billing_pubkey=" I HIDE MY BILLING KEY "', '--icon', '/content/./buy.png', '--orientation', 'portrait', '--window', '--enable-androidx', '--release', '--copy-libs', '--depend', "'com.anjlab.android.iab.v3:library:2.0.3'", '--arch', 'arm64-v8a', '--arch', 'armeabi-v7a', '--color=always', '--storage-dir=/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=26', '--ignore-setup-py', '--debug']
209# ENVIRONMENT:
210# HOSTNAME = 'ce99347fd001'
211# LANGUAGE = 'en_US'
212# LANG = 'en_US.UTF-8'
213# TERM = 'xterm-color'
214# LC_ALL = 'en_US.UTF-8'
215# PATH = '/root/.buildozer/android/platform/apache-ant-1.9.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin'
216# MAIL = '/var/mail/root'
217# LOGNAME = 'root'
218# USER = 'root'
219# HOME = '/root'
220# SHELL = '/bin/bash'
221# SUDO_COMMAND = '/usr/local/bin/buildozer -v android release'
222# SUDO_USER = 'root'
223# SUDO_UID = '0'
224# SUDO_GID = '0'
225# PACKAGES_PATH = '/root/.buildozer/android/packages'
226# ANDROIDSDK = '/root/.buildozer/android/platform/android-sdk'
227# ANDROIDNDK = '/root/.buildozer/android/platform/android-ndk-r25b'
228# ANDROIDAPI = '32'
229# ANDROIDMINAPI = '26'
230#
231# Buildozer failed to execute the last command
232# The error might be hidden in the log above this error
233# Please read the full log, and search for it before
234# raising an issue with buildozer itself.
235# In case of a bug report, please add a full log with log_level = 2
236