問題打印:
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權限