基于ZigBee的物联网家居系统学习-android端app的问题The type java.lang.Class cannot be resolved. It is indirectly refer
2017-12-19 21:48
716 查看
导入一个新项目的时候会出错
The type java.lang.Class cannot be resolved. It is indirectly referenced from required .class files
而且项目下面没有androidx.x文件夹(里面包含jar包的)
解决方案
在package explorer中右键自己的项目project名,
选择build path,config build path,
左边一列中选android,
project build target中显示已经选中了android X.X版本,重新选择一个别的,比如android6.0,确认后此时项目下会产生android6.0文件夹,里面有一个jar包
再重新修改回androidX.X,后会生成androidX.X文件夹
打开菜单栏的project,clean,选中自己的project名字,确定,清理会删除gen文件夹,然后自动重新build project(右下角有提示),完毕重新生成了gen文件夹,问题解决
The type java.lang.Class cannot be resolved. It is indirectly referenced from required .class files
而且项目下面没有androidx.x文件夹(里面包含jar包的)
解决方案
在package explorer中右键自己的项目project名,
选择build path,config build path,
左边一列中选android,
project build target中显示已经选中了android X.X版本,重新选择一个别的,比如android6.0,确认后此时项目下会产生android6.0文件夹,里面有一个jar包
再重新修改回androidX.X,后会生成androidX.X文件夹
打开菜单栏的project,clean,选中自己的project名字,确定,清理会删除gen文件夹,然后自动重新build project(右下角有提示),完毕重新生成了gen文件夹,问题解决
相关文章推荐
- android 引入别的项目The type java.lang.Class cannot be resolved. It is indirectly referenced from required
- 问题1-The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files
- The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files
- The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
- android Multiple markers at this line - The type java.lang.Class cannot be resolved. It is indirectl
- Eclipse error: The type java.lang.Object cannot be resolved. It is indirectly referenced from the required .class files
- android The type java.lang.Object cannot be resolved It is indirectly referenced ...
- The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
- Android The type java.lang.Object cannot be resolved It is indirectly referenced ...
- The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
- The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
- android Multiple markers at this line - The type java.lang.Class cannot be resolved. It is indirectl
- The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
- The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
- The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
- The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class
- The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
- 遇到的问题-----java The type java.lang.String cannot be resolved. It is indirectly referenced fr
- The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class
- The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files