How do I use tools:overrideLibrary in a build.gradle file?

前端 未结 9 1823
慢半拍i
慢半拍i 2020-11-28 18:00

I\'m using the leanback libraries, which require Android 17 or later. However my app supports a minSDK of 16, so I get a build error from gradle saying

Erro         


        
9条回答
  •  孤城傲影
    2020-11-28 18:22

    As library requires minSdkVersion 17 then you can change the same in build.gradle(Module:Application) file:

    defaultConfig {
            minSdkVersion 17 
            targetSdkVersion 25
    }
    

    and after that building the project should not throw any build error.

提交回复
热议问题