Create Extension Error

Hi my friends.

I am new to learning the Java language and creating extensions on Kodular.

I tried Compile Extension more than once and for more than one different code.

But this error always comes. :arrow_down::arrow_down::arrow_down:

[javac] /compiler/android/src/vbFUJ/com/naderdesign/MyButton/Test.java:32: error: class YourFont is public, should be declared in a file named YourFont.java

Here I tried the source code for an add-on that I found on the ai2 platform.
:arrow_down::arrow_down::arrow_down:
Demo.txt (3.2 KB)

I do not know where this file that is supposed to be modified or what it is … In this example, the file is called YourFont.java

Knowing that when I try to include a library, the required extension is .jar only.

Please Help Me :heart:

You have named your extension Test, and then copied the YourFont extension source code to yours. The class name must be the same, so change YourFont to Test.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.