Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pythonJavaClass not load in apk #432

Closed
FranciscoCarbonell opened this issue Jul 18, 2019 · 1 comment
Closed

pythonJavaClass not load in apk #432

FranciscoCarbonell opened this issue Jul 18, 2019 · 1 comment
Labels

Comments

@FranciscoCarbonell
Copy link

FranciscoCarbonell commented Jul 18, 2019

example.py

class Test(PythonJavaClass):
    __javainterfaces__ = ['some/Test']

    @java_method('()V')
    def setter(self):
        print('setter')

    @java_method('()V')
    def getter(self):
        print('getter')

class TestClass(JavaClass, metaclass=MetaJavaClass):
    __javaclass__ = 'some/TestClass'

    getter = JavaMethod('()V')
    setter = JavaMethod('()V')

testClass = TestClass()

test = Test()
test.setter()


TestClass.java

package some;

interface Test{
    public void getter();
    public void setter();
    
}

public class TestClass implements Test{
    
    public void getter(){
    }

    public void setter(){
  
    }
   
}

I test in pc

javac TestClass.java

this make Test.class and TestClass.class later execute example.py and this found.
later i build with buildozer in the kivy app and run but show this error

interface some.Test is not visible from class loader

TestClass found but Test inteface not found

@github-actions
Copy link

👋 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants