如题,如果使用android studio中出现了
Manifest merger failed : uses-sdk:minSdkVersion 21 cannot be smaller than version 24 declared in library [:share] D:\work\project\location-android\share\build\intermediates\library_manifest\debug\AndroidManifest.xml as the library might be using APIs not available in 21
Suggestion: use a compatible library with a minSdk of at most 21,
or increase this project's minSdk version to at least 24,
or use tools:overrideLibrary="touchair.demo.share" to force usage (may lead to runtime failures)
说明其中有一些gradle中的minSdkVersion小于了24,也就是小于了整个项目允许的最小sdkVersion,所以就打开所有的build.gradle,然后看minSdkVersion是否等于24,如果不是,那么改成24,就OK了。
文章评论