错误: 程序包android.support.annotation不存在
今天导入一个Android Demo项目,编译出现多处“错误: 程序包android.support.annotation不存在”错误。原因是安装的版本不符。
·
今天导入一个Android Demo项目,编译出现多处“错误: 程序包android.support.annotation不存在”错误。
原因是安装的版本不符。
解决方案:
将导包语句改为如下:
import androidx.annotation.IntDef; import androidx.annotation.RequiresApi;
问题解决。
更多推荐
所有评论(0)