5

I've recently started getting into programming with the Facebook SDK for Android, which I used to write a basic sample app. I want it to be able to run on as many systems as possible, so I set the build target to Android 2.2 (Froyo/API level 8). However, this results in the following error:

Using 1.7 requires compiling with Android 4.4 (KitKat); currently using API 8   FacebookTestApp

In comparison, all of the sample apps that came with the Facebook SDK have their build target set to Android 2.2, and none of them have this problem. Anyone know what I might be doing wrong?

Thanks.

2
  • When/where do you get the error? Commented Mar 26, 2014 at 23:08
  • Could you also give the API settings of your application (minimum, build, target)? Commented Mar 26, 2014 at 23:10

5 Answers 5

14

I had the same problem today, this is how I fixed it:

Righ click on your project > properties > Java compiler > enable "project specific settings" Set Compiler compliance level to 1.6 re Build your project

Voila!

0
5

Using 1.7 requires compiling with Android 4.4 (KitKat); currently using API 8

Here is the solution:

Right click your project -> Properties -> Android -> Select the lasted Project Build Target

This is what worked for me.

4

Right click on your project > Android Tools > Fix Project Properties.

Refresh the project and clean+build it.

0
Project -> Clean... -> Clean all projects

Fixed this for me.

-1

You can build with API level 19 and still define minimum API level to 8.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.