Error: Using 1.7 requires compiling with Android 4.4(Kitkat); Current using API 16

Asked

Viewed 60 times

1

Using a switch case with a string.

Eclipse made a mistake and offered to switch to compiling 1.7.

I accepted, now it’s a mistake and I can’t go back.

How do I fix it?

SS

I want to change the language level to 1.6, but I can’t find it anywhere.

  • 1

    Api 16 is for Android Icecream Sandwich. You’re trying to compile for Kitkat. Check on AndroidManifest if the targetSdkVersion. is compatible with the SDK you have installed

  • the problem is not that, this is right, is the level of language, I climbed it unintentionally and I can’t get back.

1 answer

2


The language level you are using (Java 1.7) is available from the Kat Kit.

If you want to continue using this language level, you must change the manifest to SDK 19.

Otherwise, change the language level to 1.6.

  • Yes, that I understood, I want to change the language level to 1.6, but I don’t think that anywhere. , how do I do?

  • 1

    Try this: In project properties->Java Build Path/Libraries tab make sure you have JRE System Library 6 ennvironment

  • 1

    Right click on projeto > propriedades > Java Compiler > Compiler Compilance level

Browser other questions tagged

You are not signed in. Login or sign up in order to post.