İki konuda sıkıntı yaşıyorum.Bunlardan birincisi,
buildozer android debug deploy run
komutunu çalıştırdığımda çıkan apk’nın telefonumda sorunsuz çalışması fakat
buildozer android release
komutunun çalıştırılmasından oluşan apk’nın telefonumda çalışmaması.
İkinci sorun ise sorunsuz oluşan release apk’sını play store’a yüklemeye çalıştığımda şu hatayı vermesi:
#### Yükleme başarısız oldu
Uygulamanız şu anda 27 API seviyesini hedefliyor. Güvenlik ve performans için iyileştirilmiş olan en son API'lere dayanması için en azından 28 API seviyesini hedefliyor olmalıdır. Uygulamanızın hedef API seviyesini en az 28 olarak değiştirin.
buildozer.spec dosyasında android.api=28 yapmama rağmen bu hata çıkıyor.
Release komutu çalışırken oluşan loglar :
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Run 'dpkg --version'
# Cwd None
Debian 'dpkg' package management program version 1.19.6 (amd64).
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
# Search for Git (git)
# -> found at /usr/bin/git
# Search for Cython (cython)
# -> found at /home/abra/.local/bin/cython
# Search for Java compiler (javac)
# -> found at /usr/lib/jvm/java-8-openjdk-amd64/bin/javac
# Search for Java keytool (keytool)
# -> found at /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/keytool
# Install platform
# Run '/usr/bin/python3 -m pip install -q --user \'appdirs\' \'colorama>=0.3.3\' \'jinja2\' \'six\' \'enum34; python_version<"3.4"\' \'sh>=1.10; sys_platform!="nt"\' \'pep517\' \'pytoml\' \'virtualenv\''
# Cwd None
# Apache ANT found at /home/abra/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /home/abra/.buildozer/android/platform/android-sdk
# Android NDK found at /home/abra/.buildozer/android/platform/android-ndk-r17c
# Check application requirements
# Check garden requirements
# Compile platform
# Run '/usr/bin/python3 -m pythonforandroid.toolchain create --dist_name=gky --bootstrap=sdl2 --requirements=python3,kivy,sqlite3,kivmob,jnius,android --arch armeabi-v7a --copy-libs --color=always --storage-dir="/home/abra/Desktop/questionapp/.buildozer/android/platform/build" --ndk-api=21'
# Cwd /home/abra/Desktop/questionapp/.buildozer/android/platform/python-for-android
/home/abra/Desktop/questionapp/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py:85: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
[INFO]: Will compile for the following archs: armeabi-v7a
[INFO]: Found Android API target in $ANDROIDAPI: 28
[INFO]: Available Android APIs are (27, 28)
[INFO]: Requested API target 28 is available, continuing.
[INFO]: Found NDK dir in $ANDROIDNDK: /home/abra/.buildozer/android/platform/android-ndk-r17c
[INFO]: Found NDK version 17c
[INFO]: Getting NDK API version (i.e. minimum supported API) from user argument
[INFO]: Found virtualenv at /usr/local/bin/virtualenv
[INFO]: Found the following toolchain versions: ['4.9']
[INFO]: Picking the latest gcc toolchain, here 4.9
[INFO]: Of the existing distributions, the following meet the given requirements:
[INFO]: gky: min API 21, includes recipes (hostpython3, libffi, openssl, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, six, pyjnius, android, kivy, jnius, kivmob), built for archs (armeabi-v7a)
[INFO]: gky has compatible recipes, using this one
# Build the application #83
# Copy application source from /home/abra/Desktop/questionapp
# Create directory /home/abra/Desktop/questionapp/.buildozer/android/app
# Copy /home/abra/Desktop/questionapp/mainmenu.jpg
# Copy /home/abra/Desktop/questionapp/main.kv
# Copy /home/abra/Desktop/questionapp/android.txt
# Copy /home/abra/Desktop/questionapp/GlassAntiqua-Regular.ttf
# Copy /home/abra/Desktop/questionapp/bg1new.jpg
# Copy /home/abra/Desktop/questionapp/sorular.py
# Copy /home/abra/Desktop/questionapp/mekanikler.py
# Copy /home/abra/Desktop/questionapp/main.py
# Copy /home/abra/Desktop/questionapp/newqa.png
# Package the application
# project.properties updated
# Gradle project detected, copy files /home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/src/main/java
# Run '/usr/bin/python3 -m pythonforandroid.toolchain apk --debug --bootstrap=sdl2 --dist_name gky --name \'Genel Kültür Yarışması\' --version 1.956 --package com.mydomain.gky --android_api 28 --minsdk 21 --ndk-api 21 --private /home/abra/Desktop/questionapp/.buildozer/android/app --permission INTERNET --permission ACCESS_NETWORK_STATE --meta-data com.google.android.gms.ads.APPLICATION_ID=ca-app-pub-7253836882495109~8606665486 --orientation portrait --release --sign --copy-libs --depend \'com.google.gms:google-services:4.2.0\' --arch armeabi-v7a --color=always --storage-dir="/home/abra/Desktop/questionapp/.buildozer/android/platform/build" --ndk-api=21'
# Cwd /home/abra/Desktop/questionapp/.buildozer/android/platform/python-for-android
/home/abra/Desktop/questionapp/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py:85: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
[INFO]: Will compile for the following archs: armeabi-v7a
[INFO]: Getting Android API version from user argument: 28
[INFO]: Available Android APIs are (27, 28)
[INFO]: Requested API target 28 is available, continuing.
[INFO]: Found NDK dir in $ANDROIDNDK: /home/abra/.buildozer/android/platform/android-ndk-r17c
[INFO]: Found NDK version 17c
[INFO]: Getting NDK API version (i.e. minimum supported API) from user argument
[INFO]: Found virtualenv at /usr/local/bin/virtualenv
[INFO]: Found the following toolchain versions: ['4.9']
[INFO]: Picking the latest gcc toolchain, here 4.9
[INFO]: Of the existing distributions, the following meet the given requirements:
[INFO]: gky: min API 21, includes recipes (hostpython3, libffi, openssl, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, six, pyjnius, android, kivy, jnius, kivmob), built for archs (armeabi-v7a)
[INFO]: gky has compatible recipes, using this one
[INFO]: Of the existing distributions, the following meet the given requirements:
[INFO]: gky: min API 21, includes recipes (hostpython3, libffi, openssl, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, six, pyjnius, android, kivy, jnius, kivmob), built for archs (armeabi-v7a)
[INFO]: gky has compatible recipes, using this one
[INFO]: -> directory context /home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky
Listing '/tmp/p4a-extra-env-0umcurlb'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/app'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/app/_applibs'...
Compiling '/home/abra/Desktop/questionapp/.buildozer/android/app/main.py'...
Compiling '/home/abra/Desktop/questionapp/.buildozer/android/app/mekanikler.py'...
Compiling '/home/abra/Desktop/questionapp/.buildozer/android/app/sitecustomize.py'...
Compiling '/home/abra/Desktop/questionapp/.buildozer/android/app/sorular.py'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/modules'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/android'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/jnius'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/jnius/src'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/jnius/src/org'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/jnius/src/org/jnius'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivmob-2.0.dist-info'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/core'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/core/audio'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/core/camera'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/core/clipboard'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/core/gl'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/core/image'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/core/spelling'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/core/text'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/core/video'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/core/window'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/data'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/data/fonts'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/data/glsl'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/data/images'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/data/keyboards'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/data/logo'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/deps'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/effects'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/extras'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/garden'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/graphics'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/graphics/cgl_backend'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/include'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/input'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/input/postproc'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/input/providers'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/lang'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/lib'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/lib/gstplayer'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/lib/vidcore_lite'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/modules'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/network'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/storage'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/tools'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/tools/gles_compat'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/tools/highlight'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/tools/packaging'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/tools/packaging/pyinstaller_hooks'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/tools/pep8checker'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/tools/theming'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/tools/theming/defaulttheme'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/uix'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/uix/behaviors'...
Listing '/home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/_python_bundle/_python_bundle/site-packages/kivy/uix/recycleview'...
[INFO]: Selecting java build tool:
[INFO]: Detected highest available build tools version to be 29.0.2
[INFO]: Building with gradle, as gradle executable is present
[DEBUG]: -> running gradlew assembleRelease
[DEBUG]:
[DEBUG]: > Configure project :
[DEBUG]: WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
[DEBUG]: It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
[DEBUG]:
[DEBUG]:
[DEBUG]: BUILD SUCCESSFUL in 6s
[DEBUG]: 28 actionable tasks: 5 executed, 23 up-to-date
[INFO]: <- directory context /home/abra/Desktop/questionapp/.buildozer/android/platform/python-for-android
[INFO]: # Copying APK to current directory
[INFO]: # APK filename not found in build output. Guessing...
[INFO]: # Found APK file: /home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/build/outputs/apk/release/gky-release.apk
[INFO]: # Add version number to APK
[INFO]: # APK renamed to gky-1.956-release.apk
[DEBUG]: -> running cp /home/abra/Desktop/questionapp/.buildozer/android/platform/build/dists/gky/build/outputs/apk/release/gky-release.apk gky-1.956-release.apk
WARNING: Received a --sdk argument, but this argument is deprecated and does nothing.
No compiled python is present to zip, skipping.
No setup.py/pyproject.toml used, copying full private data into .apk.
Applying Java source code patches...
Applying patch: src/patches/SDLActivity.java.patch
Warning: failed to apply patch (exit code 1), assuming it is already applied: src/patches/SDLActivity.java.patch
# Android packaging done!
# APK gky-1.956-release.apk available in the bin directory
WARNING: Received a --sdk argument, but this argument is deprecated and does nothing.
Warning: failed to apply patch (exit code 1), assuming it is already applied: src/patches/SDLActivity.java.patch
Bu uyarıların neden çıktığını anlayamadım. Acaba hata ya da hatalar neden kaynaklanıyor ?