[Python] How can I raise my API level from 31 to 34 in google play console

Discussão em 'Python' iniciado por Stack, Março 29, 2025.

  1. Stack

    Stack Membro Participativo

    I'm making an app to upload to the Play Store, so I first uploaded my .aab to the Google Play Console, but I get the following error


    Currently, your app is targeting API level 31, but it must target at least level 34. It will be based on the latest APIs, which are optimized for security and performance.
    ​

    I'm generating the aab file with buildozer in google colab My buildozer.spec file is as follows

    app
    source.dir = .
    source.include_exts = py,png,jpg,kv,atlas
    version = 0.1.5
    requirements = python3,kivy
    orientation = portrait
    osx.python_version = 3
    osx.kivy_version = 1.9.1
    fullscreen = 0
    #android.permissions = android.permission.INTERNET, (name=android.permission.WRITE_EXTERNAL_STORAGE;maxSdkVersion=18)
    # (int) Target Android API, should be as high as possible.
    android.api = 34
    # (int) Minimum API your APK / AAB will support.
    android.minapi = 30
    # (int) Android SDK version to use
    android.sdk = 34
    # (str) Android NDK version to use
    #android.ndk = 25b
    # (int) Android NDK API to use. This is the minimum API your app will support, it should usually match android.minapi.
    android.ndk_api = 30
    android.archs = arm64-v8a, armeabi-v7a
    android.allow_backup = True
    ios.kivy_ios_url = https://github.com/kivy/kivy-ios
    ios.kivy_ios_branch = master
    ios.ios_deploy_url = https://github.com/phonegap/ios-deploy
    ios.ios_deploy_branch = 1.10.0
    ios.codesign.allowed = false

    buildozer
    log_level = 2
    warn_on_root = 1


    My py code, as it is a test code, is just a message that says "Hello", with kivy, so there are no problems there.

    Continue reading...

Compartilhe esta Página