BUG集合-1 minSdkVersion 14 cannot be smaller than version 17 declared in library

问题打印:

uses-sdk:minSdkVersion 14 cannot be smaller than version 17 declared in library [com.github.yhaolpz:FloatWindow:1.0.9] C:\Users\jingwen.li\.gradle\caches\transforms-1\files-1.1\FloatWindow-1.0.9.aar\f85d8f82b7968f44227e5bb73df688c0\AndroidManifest.xml as the library might be using APIs not available in 14
    Suggestion: use a compatible library with a minSdk of at most 14,
        or increase this project's minSdk version to at least 17,
        or use tools:overrideLibrary="com.example.fixedfloatwindow" to force usage (may lead to runtime failures)

这个问题其实简单,就是定义的最低SDK 14版本不能往上兼容SDK 17版本,解决的办法有两个:

1. 将最低版本改为能兼容的版本,列如此次异常可以将 minSdkVersion 14 改为 minSdkVersion 17或者以上

2.强制性兼容SDK14版本,这样修改之后有可能会出现以下代码问题,因为有些高版本的接口低版本没有,所以导致报错。修改方式如下,在manifest 文件里面加上sdk权限

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章