Skip to content

Didn't find class "org.kivy.android.PythonActivity$PermissionsCallback"  #2991

Closed as not planned

Description

@MininDMhvh

I got error when I call request_permission with callback 03-15 11:20:00.745 21270 21316 I python : File "/github/workspace/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/Test/arm64-v8a/android/permissions.py", line 598, in request_permissions 03-15 11:20:00.771 21270 21316 I python : File "/github/workspace/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/Test/arm64-v8a/android/permissions.py", line 538, in request_permissions 03-15 11:20:00.789 21270 21316 I python : File "/github/workspace/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/Test/arm64-v8a/android/permissions.py", line 514, in register_callback 03-15 11:20:00.799 21270 21316 I python : File "/github/workspace/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/Test/arm64-v8a/android/permissions.py", line 467, in __init__ 03-15 11:20:00.819 21270 21316 I python : File "jnius/jnius_proxy.pxi", line 28, in jnius.jnius.PythonJavaClass.__init__ 03-15 11:20:00.846 21270 21316 I python : File "jnius/jnius_proxy.pxi", line 34, in jnius.jnius.PythonJavaClass._init_j_self_ptr 03-15 11:20:00.857 21270 21316 I python : File "jnius/jnius_proxy.pxi", line 166, in jnius.jnius.create_proxy_instance 03-15 11:20:00.874 21270 21316 I python : File "jnius/jnius_export_func.pxi", line 22, in jnius.jnius.find_javaclass 03-15 11:20:00.905 21270 21316 I python : File "jnius/jnius_utils.pxi", line 79, in jnius.jnius.check_exception 03-15 11:20:00.950 21270 21316 I python : jnius.jnius.JavaException: JVM exception occurred: Didn't find class "org.kivy.android.PythonActivity$PermissionsCallback" on path: DexPathList[[directory "."],nativeLibraryDirectories=[/system/lib64, /system/system_ext/lib64, /system/lib64, /system/system_ext/lib64]] java.lang.ClassNotFoundException
My buildozer.spec

[app]
title = Test
package.name = Test
package.domain = org.test
source.dir = .
source.include_exts = py,png,jpg,kv,atlas,json
source.include_patterns = assets/*, assets/*.json,images/*.png,assets/*.png
version = 0.1
requirements = android,python3,kivy==2.2.0,kivymd==1.1.1,pyjnius,kivy-garden.graph==0.4.0, able_recipe==1.0.14, async_to_sync, async_timeout, plyer==2.1.0, requests, urllib3, chardet, idna

icon.filename = assets/Logo_Vertex_Industrial.png
orientation = landscape
fullscreen = 0
android.presplash_color = #FFFFFF


android.presplash_lottie = assets/1.json

android.permissions =     
    BLUETOOTH,
    BLUETOOTH_ADMIN,
    BLUETOOTH_SCAN,
    BLUETOOTH_CONNECT,
    BLUETOOTH_ADVERTISE,
    ACCESS_FINE_LOCATION,
    ACCESS_COARSE_LOCATION,  
    MANAGE_EXTERNAL_STORAGE,
    INTERNET 

android.api = 33
android.minapi = 21
android.ndk = 25
android.ndk_api = 21
android.private_storage = True
android.skip_update = False
android.accept_sdk_license = True
android.enable_androidx = True


p4a.branch = release-2022.12.20


[buildozer]
log_level = 2
warn_on_root = 0

Also I tested with another version of p4a,kivy,pyjnius

Activity

  1. github-actions commented on Apr 14, 2024

    @github-actions

    👋 @MininDMhvh,
    Sorry to hear you are having difficulties with Kivy's python-for-android; Kivy unites a number of different technologies, so building apps can be temperamental.
    We try to use GitHub issues only to track work for developers to do to fix bugs and add new features to python-for-android.
    However, this issue appears to be a support request. Please use our support channels to get help with the project.
    If you're having trouble installing python-for-android, please see our quickstart guide.
    If you're having trouble using python-for-android, please see our troubleshooting guide and FAQ.
    Let us know if this comment was made in error, and we'll be happy to reopen the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions