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

前端 未结 9 1820
慢半拍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:29

    I just changed minSdkVersion="7" in C:\MyApp\platforms\android\CordovaLib\AndroidManifest.xml and it worked.

    Steps:

    1. Path: C:\MyApp\platforms\android\CordovaLib\AndroidManifest.xml
    2. Value:
    3. Ran command in new cmd prompt:

      C:\MyApp>phonegap build android --debug [phonegap] executing 'cordova build android --debug'... [phonegap] completed 'cordova build android --debug'

提交回复
热议问题