问题表象:
最近开始用Lint检查代码,发现一个Error,说的是某个方法在更高的API Level(此处称为Level甲)才提供而当前AndroidManifest.xml配置的min API Level(此处称为Level乙)低于Level甲,但是之前在包括Eclipse上调试编译没有错误提示,并在低版本的系统上运行都没有抛异常.
模糊解答:
这个又是为什么呢??菜鸟不懂。。大牛懂点,据大牛说这个接口应该一直都存在,只不过并没有在提供的文档以及SDK源代码中暴露出来,所以虽然我们在文档中看不到此接口,但是在低端系统上却一直存在。
题外话:
用Lint和FindBugs还是很有用处的,会发现很多不规范的写法,可以用来规范代码。当然也不用完全按照标准来,毕竟有些warnings是虚报,也是么有价值的。
相关推荐
当出现提示说: Call requires API level 9 (current min is 8): android.os.StrictMode#setThrea 也就是说版本低
v7包解决importandroid.support.annotation.RequiresApi
Plugin 'Lombok' (version '0.32-EAP') is not compatible with the current version of the IDE, because it requires build 203.* or older but the current build is AI-211.7628.21 这个异常信息是由于Lombok ...
android-secure-preferences About This project uses the Encryption class from: ...Gives an implementation of SharedPreferences, which encrypts...Project requires API level 8 due to Base64 Android API level r
PubNub Android WebRTC Signaling API PnWebRTC is an Android module that makes WebRTC signaling easy! View the official PnWebRTC JavaDoc here. NOTE: This API uses PubNub for signaling to transfer the...
修改 ADT 24.0.2 支持 java 1.8,Elipse 报如下错误的都可以:Android requires compiler compliance level 5.0 or 6.0. Found '1.8' instead.
Requires API level 14 Download example apk Components ActionView A widget which can dynamically animate between defined Actions. ```xml You can dynamically change the action with: ```java actionView...
解决eclipse加载android adt时候的版本过高问题!
The game requires Android 2.1 (API level 7) to run. It should run on pretty much any hardware, even the older models. Swipe the screen to launch a satellite. The longer the swipe, the higher the ...
前言 ...但是报错了Call requires API level 24 (current min is 21): android.telephony.TelephonyManager#getDataNetworkType Android 版本更替,新的版本带来新的特性,新的方法。 新的方法带来
Failure [INSTALL_FAILED_OLDER_SDK: Failed parse during installPackageLI: /data/app/vmdl1716187195.tmp/base.apk (at Binary XML file line #0): Requires newer sdk version #28 (current version is #27)]...
Interactive Mode requires user input during installation; Silent Mode and Unattended Preload do not. This software also offers a set of command line flags, which provide additional installation ...
Requires at least: 3.0 Tested up to: 3.3 Stable tag: 2.2 Add some tools for taxonomies : Terms suggestion, Mass Edit Terms, Auto link Terms, Ajax Autocompletion, Click Terms, Auto terms, Advanced ...
这个是android-support-v7的依赖库包,希望对你有用
androidx-annotation-1.0.0.jar
最全的,解压后是jar文件,用于解决eclipse中 无法加载android.support.annotations的问题
musicg is a lightweight audio analysis library, written in Java, with the purpose of extracting both high level and low level audio features. This API allows developers to extract audio features and ...
安装 mysql5.7时提示:This application requires Visual Studio 2013 Redistributable. Please install the Redistributable then run this installer again. 需要安装指定版本的Microsoft Visual C++ ...
What is PInvoke.net? A wiki for .NET developers PInvoke.net is primarily a wiki, allowing developers to find, edit and add PInvoke* signatures, user-defined types, and any other information related ...
Ultimate Android App Template [level: Beginner] This is a simple start-template to save you a little time. It doesn't use dagger // mvp // mvvp or any other stuff that requires an more in depth ...