调用第三方SDK,开发文档要求如下:
//项目的build.gradle文件中添加仓库地址
buildscript {
repositories {
maven { url 'https://jitpack.io' }
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' }
maven { url 'https://maven.aliyun.com/repository/google' }
google()
mavenCentral()
}
}
使用远程仓库就要离线打包,请问如何把SDK远程仓库的包下载到本地?
z***@126.com (作者)
[PackagePath]/app/AndroidManifest.xml Error:
uses-sdk:minSdkVersion 19 cannot be smaller than version 21 declared in library [com.sunmi:SunmiEID-SDK:1.3.14] /home/[Name]/.gradle/caches/transforms-3/a49dc53cb405850301691a37ed2b2258/transformed/jetified-SunmiEID-SDK-1.3.14/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.sunmi.eidlibrary\" to force usage (may lead to runtime failures)
FAILURE: Build failed with an exception.
我看翻译是minSdkVersion的报错,第三方SDK需要满足minSdkVersion21,现在云打包是19吗,hx版本3.7.9
2023-04-26 16:11
z***@126.com (作者)
原生插件云打包报错,应该如何处理?
2023-04-26 16:17
z***@126.com (作者)
SunmiEID-SDK-1.3.14为第三方SDK
2023-04-26 16:18
z***@126.com (作者)
package.json里配置了"minSdkVersion":21,已成功打包
【云端打包提示信息】
** minSdkVersion 配置调整为 21,详情参考 https://uniapp.dcloud.io/app-android-minsdkversion
uni原生插件 "huode-sunmi-card" 要求 minSdkVersion 至少为 21
2023-04-26 16:36