I’m developing my very first app on Android, and just by following the “Android Training” I ended in this trouble. I did read it’s something with the libs, but I really don’t understand how to fix it.
The target for this project is Android 2.3.3 (API 10), and I put the “android-support-v4.jar” in the /libs folder, expecting the ant to compile against it automatically with the Android defaults.
Not working. Ant tells errors like this one:
.......\test1\ActividadPrincipal.java:20: error: cannot find symbol
[javac] public void sendMessage (view view)
[javac] ^
[javac] symbol: class view
[javac] location: class ActividadPrincipal
Welcome to StackOverflow!
Class names start with a capital letter. It cannot find the class view with a non-capital letter.
Make it
(View view).You should also import the
Viewclass in your Activity (at the top):