打包自定义基座,报错如下:
[PackagePath]/app/AndroidManifest.xml Error:
uses-sdk:minSdkVersion 19 cannot be smaller than version 21 declared in library [watermarkphoto-release.aar] /home/[Name]/.gradle/caches/transforms-2/files-2.1/f2f98819d2948c9133c4b728d3f17a6c/jetified-watermarkphoto-release/AndroidManifest.xml as the library might be using APIs not available in 19
Suggestion: use a compatible library with a minSdk of at most 19,
or increase this project's minSdk version to at least 21,
or use tools:overrideLibrary=\"com.wh.watermarkphoto\" to force usage (may lead to runtime failures)
请问应该如何解决呢
2 个回复
7***@qq.com
请问楼主解决了吗
7***@qq.com
"minSdkVersion" : 21,
一开始在manifest 中就没有找到这个最低sdk属性,去源码视图中自己添加这个属性就行。下面是官网的详细配置,具体的写法在附件中查看
https://uniapp.dcloud.io/tutorial/app-manifest.html