Skip to content

PR 2285 breaks requestPermissions  #2304

Closed
@misl6

Description

@misl6

Checklist

  • the issue is indeed a bug and not a support request
  • issue doesn't already exist: https://github.com/kivy/python-for-android/issues
  • I have a short, runnable example that reproduces the issue
  • I reproduced the problem with the latest development version (p4a.branch = develop)
  • I used the grave accent (aka backticks) to format code or logs when appropriated

Versions

  • Python: Python 3.8.2 (default, Jul 16 2020, 14:00:26)
  • OS: Ubuntu 20.04.1 LTS
  • Kivy: master
  • Cython: 0.29.17
  • OpenJDK: 1.8.0_265

Description

After PR #2285 , the app crashes when calling the following instruction.

request_permissions([Permission.ACCESS_COARSE_LOCATION])

buildozer.spec

Command:

buildozer android debug deploy run

Logs

08-27 18:05:07.895 18125 18146 I python  :    File "jnius/jnius_export_class.pxi", line 1134, in jnius.jnius.JavaMultipleMethod.__call__
08-27 18:05:07.896 18125 18146 I python  :  jnius.jnius.JavaException: No methods matching your arguments, requested: (['android.permission.ACCESS_COARSE_LOCATION'],), available: []
08-27 18:05:07.896 18125 18146 I python  : Python for android ended.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions