7***@qq.com
7***@qq.com
  • 发布:2021-12-24 16:18
  • 更新:2022-05-24 17:02
  • 阅读:464

#插件讨论# 【 水印相机 - WH66 】打包报错

分类:uni-app
关联插件: 水印相机

打包自定义基座,报错如下:
[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)

请问应该如何解决呢

2021-12-24 16:18 负责人:无 分享
已邀请:
7***@qq.com

7***@qq.com

请问楼主解决了吗

7***@qq.com

7***@qq.com

"minSdkVersion" : 21,

一开始在manifest 中就没有找到这个最低sdk属性,去源码视图中自己添加这个属性就行。下面是官网的详细配置,具体的写法在附件中查看

https://uniapp.dcloud.io/tutorial/app-manifest.html

要回复问题请先登录注册