-1

I added facebook sdk as mentioned here, Android Facebook SDK 4 in Eclipse.

I also have an updated sdk.

As mentioned in step 2:Fixing errors i did every thing as mentioned, it is showing The import android.annotation cannot be resolved even though i added annotations.jar in support folder.

Community
  • 1
  • 1
karan
  • 8,637
  • 3
  • 41
  • 78

1 Answers1

0

Prior to Java 7 (1.7 here), you needed to do

HashMap<String, String> mHashMap = new HashMap<String, String>();

And not:

HashMap<String, String> mHashMap = new HashMap<>();

Its referred to as the diamond operator, and is not backwards-compatible with earlier versions of Java.

Check your code.

Gustavo Morales
  • 2,614
  • 9
  • 29
  • 37