I am a beginner, I need help to solve the problem, thank you very much

Started Compiling Project Said
Buildfile: /compiler/android/build.xml

javac:
[mkdir] Created dir: /compiler/android/build/HWInc/classes
[javac] Compiling 1 source file to /compiler/android/build/HWInc/classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[javac] /compiler/android/src/HWInc/com/Saidrahil1/Said.java:29: error: class Maths is public, should be declared in a file named Maths.java
[javac] public class Maths extends AndroidNonvisibleComponent {
[javac] ^
[javac] 1 error
[javac] 1 warning

1 Like

Use public final class Maths extends AndroidNonvisibleComponent

Or

If error do not solve with this then send you codes

Name of public class should always match to the file name.

Incase of you, check if your filename of that java file is Maths.java or not. If not, change it and compile.

2 Likes

It was a nice answer from you, the problem is solved thanks to you

1 Like

Thank you so much. Problem solved, you are doing a good job

1 Like