问题:
今天在做项目时,项目中有一行是import android.content.Context;,将项目导入ADT之后,提示:the import android.content cannot be resolved,在网上查找了好多资料,试了好多办法,还是不行,最终找到一种解决方案,成功解决,记录一下,以待以后用。
解决方案:
右键工程→Bulid Path→Configure Build Path...
选择Android,如图,在Project Build Target里面勾选相应的SDK即可