9***@qq.com
9***@qq.com
  • 发布:2023-08-24 16:37
  • 更新:2023-08-24 17:09
  • 阅读:346

大佬求救,制作原生sdk,依赖了一个第三方的arr,然后制作自定义基座失败了

分类:uni-app

这几天遇到了需要接入原生sdk的需求,完全不懂。
对方提供了个arr文件,只能跟着文档去进行集成
在android studio上面调试是跑得了,但是想打包成uniapp插件的时候却失败了
无奈,安卓一点不懂,请各位巨佬指教一下

以下是制作自定义基座的错误信息

[PackagePath]/app/AndroidManifest.xml Error:  
uses-sdk:minSdkVersion 19 cannot be smaller than version 21 declared in library [tosbsdk-release_1.0.1.aar] /home/[Name]/.gradle/caches/transforms-3/4a26b2c6259806c2f89b0db3a6eddfe5/transformed/jetified-tosbsdk-release_1.0.1/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.khy.tosb.sdk\" to force usage (may lead to runtime failures)  

FAILURE: Build failed with an exception.  

* What went wrong:  
Execution failed for task ':app:processReleaseMainManifest'.  
> Manifest merger failed with multiple errors, see logs  

* Try:  
> Run with --debug option to get more log output.  
> Run with --scan to get full insights.  

* Exception is:  
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:processReleaseMainManifest'.  
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:145)  
at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:282)
2023-08-24 16:37 负责人:无 分享
已邀请:
xzh

xzh

提示信息很清楚了,你的tosbsdk-release_1.0.1.aar库minSdkVersion是21, 但是你的项目的minSdkVersion是19,你把项目的minSdkVersion改成 21就可以了

要回复问题请先登录注册