android程序出现了奇怪的错误 Field requires API level 5 (current min is 1): ......
android程序出现了奇怪的错误 Field requires API level 5 (current min is 1): ......
解决办法:
Right click on the project folder > Android tools > Clear Link Markers
英文网站找的,细节就看不懂了。参见
http://stackoverflow.com/questions/10322482/android-lint-erroneously-thinks-min-sdk-version-is-1
Eclipse refuses to build my Android project. In the package explorer, the project root node has the little red error symbol, but nothing else inside of it has this symbol. The Problems tab shows errors detected by Lint:
My best guess is that Lint thinks my minSdkVersion is 1, which it isn't; my manifest declares
At this point I'm out of ideas. Anybody have suggestions?
android eclipse build compiler-errors android-lint
|
|||||
Was this post useful to you?
|
2 Answers
up vote 19 down vote accepted
|
I have the same problem, and my solution is: Right click on the project folder > Android tools > Clear Link Markers "Run Android Lint" makes some markers and the markers cause this error.
|
||||||
feedback
|
up vote 0 down vote
|
Try right clicking on the project folder > Android tools > fix properties You should also check in the build properties that all your android libraries and things are checked and loading in the correct order. Right click on the project > Properties > Build
|
||
feedback
|
android程序出现了奇怪的错误 Field requires API level 5 (current min is 1): ......相关推荐
- SimpleDateFormat 出现错误 Call requires API level 24 (current min is 15)
这个故事是这样的 今天写打卡时间的时候需要获取一下当前时间,然后我就写了一个这个 [java] view plaincopy SimpleDateFormat sDF = new SimpleDa ...
- 关于Android错误 View requires API level 14 (current...
2019独角兽企业重金招聘Python工程师标准>>> 问题描述:在界面配置文件main.xml中,可能用上某些控件(例如GridLayout)遇上下面所说的错误:View requ ...
- Android中使用getDrawable时提示:Call requires API level 21(current min is 15)
场景 在通过getDrawable方法获取照片资源时提示: Call requires API level 21(current min is 15) 注: 博客: https://blog.csdn ...
- 解决Android Studio中 Call requires API level 18 (current min is 15)问题
Android Studio今天用蓝牙的时候出现一个奇怪的问题 final BluetoothManager bluetoothManager = (BluetoothManager) getSyst ...
- Android Call requires API level 11 (current min is 8)的解决方案
[错误描述] 在用Eclipse开发过程中,为了兼容Android2.2和4.0以上版本,我在使用Notification类时做了2个版本的代码,代码根据系统版本不同执行相应模块,结果,等我输完代码, ...
- Error: Call requires API level 11 (current min is 8): android.app.Activity#onCreateView
20151106: 通过默认设置创建一个项目,如图: 创建好了之后,打开 MainActivity.java 发现里面有报错,如图: 处理方式1: 将 AndroidManifest.xml 中的 & ...
- AndroidStudio_Android Studio项目中报Call requires API level 18 (current min is 16)---Android原生开发工作笔记232
这个问题的解决非常简单,昨天发现的,因为对接第三方硬件的时候,对sdk的版本要求不一样导致的这问题. 只需要找到对应工程的,比如上面那个defaultConfig, 然后修改minSdkVersion ...
- Android SDK版本号 与 API Level 对应关系
转自:https://blog.csdn.net/qiaoquan3/article/details/70185550 Android SDK版本号 与 API Level 对应关系 新接触Andro ...
- Android API level 版本对应关系
详情地址:http://developer.android.com/guide/topics/manifest/uses-sdk-element.html Platform Version API L ...
最新文章
- 4个轮子+1部手机=长城眼里的智能汽车现状
- Node 连接mysql数据库
- php获取时间计算时间差
- 机器人码垛搬运编程程序_一条指令搞定机器人搬运程序
- android 常用依赖库
- DAY8-打卡第八天-2018-1-18
- AccessibilityService+OpenCV实现微信7.0.0抢红包插件
- Unable to start activity ComponentInfo,请教如何解决?
- 威联通212-P 安装远程迅雷,docker安装远程迅雷
- gstreamer学习笔记:将音视频合成MPEG2-TS流并打包通过rtp传输
- STM32机器人控制开发教程No.3 使用遥控控制电机/舵机(基于HAL库)
- Cousera Machine Learning 笔记:Gradient Descent
- Windows系统解决谷歌翻译不能用的问题
- windows11 + linux 蓝牙连接问题
- 安装XAMPP端口冲突问题
- 蓝牙架构(6)—— 3 数据传输架构(3.1 核心传输载体)
- python中矩阵乘以常数_在python(H.W)中单独乘以矩阵
- kernel 启动过程之三, start_kernel()函数 概叙!init/main.c
- mt4怎么修改服务器代码,如何修改指标参数?
- 课程设计书五子棋AI算法及其实现