Closed JoaoEmanuell closed 1 year ago
👋 We use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project. Let us know if this comment was made in error, and we'll be happy to reopen the issue.
My error occurs when importing any package outside the standard dependencies and even in them, as is the case of NativeInvocationHandler of jnius.
Basically almost any package imported through autoclass ends up generating an error, in this case the error is always the same and I couldn't fix it.
The error was reported when trying to import a java class that is placed inside the project, in the same place as main.py and it was added to buildozer.spec.
This error even prevents using plyer, since it depends on NativeInvocationHandler and it cannot be imported.
In general the error is always the same:
All errors occur on android, tested on 5.1.1 and 11
Below is a list of successful imports:
Now a list with the imports that gave error
In all cases none of the solutions worked, the tested solutions were:
Using get_classpath from jnius_config, it was demonstrated that they were indeed added to classpath, but it did not seem to solve the problem.
Excerpts from buildozer.spec proving the addition of the java class and v4 support:
Tested solutions in code form:
Error reported:
I feel that java is to blame, but I have no idea how to fix it.
Thank you for reading this far, if it can help my problem I really appreciate it.