I'm implementing Facebook SDK into my App.
Following the facebook developers guide, except I do not have GIT set up, so I've downloaded the SDK, and imported it to Eclipse, changed Java compliance level to 1.6.
In file Facebook.java, on one method "AutoPublishAsynchTask" I constantly have error:
Call requires API level 3 (current min is 1): android.os.AsyncTask#
How to get rid of error?
Change your android:minSdkVersion of manifest to 8 or more then 3 , then it will work. The problem is AsyncTask is introduced from level 3 for that reason you getting the error.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.