Reputation: 2137
I have seen multiple post to resolve this issue. But according to my scenario whenever I create new android project. It shows me error R can not be resolved. Previously i was used JDK1.6 then it works fine. Currently I shift to jdk1.7. Now what I do for this. I am using window 7 64 bit PC.
To resolve this I checked my environment variables that is fine, do fix project properties its also fine
Thanks for your help
Upvotes: 1
Views: 123
Reputation: 1188
If you are using eclipse, goto menu Window -> Preferences. In preference editor,Click on Java -> Compiler (submenu in java). Then you will see an option called "Java Compliance, Complier compliance level". Click on the dropdown menu right to it and change the java version to 1.6.
Upvotes: 0
Reputation: 6319
If you're using Eclipse, you are stuck with Java 1.5 and Java 1.6, since its hardcoded into the Eclipse ADT.
It seems however, that you can use IntelliJ (and thus maybe the new Android Studio?) with higher Java versions just fine; Java 7 language features with Android
Upvotes: 0