0

I am new programmer in android and java. I want to write a program that use binary literal number, and i see an error, Binary literal can only be used with source level 1.7 or greater. When i double clicked on the error in Eclipse, this error removed and another error appear in the problems tab!!! new error is Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools > Fix Project Properties. When i Click on the Fix Project Properties old error again appear!! I confused. I searched in the internet and stackoverflow and i found this link but now i don't know why should i use old JDK? Can't supported anything with Java7?

Thanks for help. Cheers

Community
  • 1
  • 1
Sensors
  • 33
  • 1
  • 4

1 Answers1

0

Android does not support java 7 and hence you need to be on lower version. Check under the system requirements here:

http://developer.android.com/sdk/index.html

Sad but you cannot use the feature of java 7 in android and hence the eclipse does not allow so.

Juned Ahsan
  • 67,789
  • 12
  • 98
  • 136