追梦随想
追梦随想
  • 发布:2019-08-27 10:56
  • 更新:2020-04-08 10:48
  • 阅读:1969

云打包失败 minSdkVersion 14 cannot be smaller than version 19 declared

分类:HTML5+

昨晚打包的苹果版还好好的,今天打包安卓版就失败了,跟以前打包一样的操作,唯一不同的是去掉了苹果支付SDK,可能是这个原因吧,错误日志如下,我也看不懂。。。

Appid: H5B110EC0  
安装包制作目录/AndroidManifest.xml Error:  
uses-sdk:minSdkVersion 14 cannot be smaller than version 19 declared in library [payment-weixin-release.aar] /home/pandora/.gradle/caches/transforms-1/files-1.1/payment-weixin-release.aar/5f420c9d7551bdb87b692271d58e886f/AndroidManifest.xml as the library might be using APIs not available in 14  
Suggestion: use a compatible library with a minSdk of at most 14,  
or increase this project's minSdk version to at least 19,  
or use tools:overrideLibrary=\"io.dcloud.feature\" to force usage (may lead to runtime failures)  

FAILURE: Build failed with an exception.  

* What went wrong:  
Execution failed for task ':processReleaseManifest'.  
> Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than version 19 declared in library [payment-weixin-release.aar] /home/pandora/.gradle/caches/transforms-1/files-1.1/payment-weixin-release.aar/5f420c9d7551bdb87b692271d58e886f/AndroidManifest.xml as the library might be using APIs not available in 14  
Suggestion: use a compatible library with a minSdk of at most 14,  
or increase this project's minSdk version to at least 19,  
or use tools:overrideLibrary=\"io.dcloud.feature\" to force usage (may lead to runtime failures)  

* 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 ':processReleaseManifest'.  
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:110)  
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:77)  
at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)  
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59)  
at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)  
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:59)  
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101)  
at org.gradle.api.internal.tasks.execution.FinalizeInputFilePropertiesTaskExecuter.execute(FinalizeInputFilePropertiesTaskExecuter.java:44)  
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:91)  
at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:62)  
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:59)  
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)  
at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)  
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)  
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.run(EventFiringTaskExecuter.java:51)  
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)  
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)  
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)  
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)  
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)  
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:46)  
at org.gradle.execution.taskgraph.LocalTaskInfoExecutor.execute(LocalTaskInfoExecutor.java:42)  
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:277)  
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:262)  
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:135)  
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:130)  
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.execute(DefaultTaskPlanExecutor.java:200)  
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.executeWithWork(DefaultTaskPlanExecutor.java:191)  
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.run(DefaultTaskPlanExecutor.java:130)  
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)  
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)  
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)  
Caused by: java.lang.RuntimeException: Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than version 19 declared in library [payment-weixin-release.aar] /home/pandora/.gradle/caches/transforms-1/files-1.1/payment-weixin-release.aar/5f420c9d7551bdb87b692271d58e886f/AndroidManifest.xml as the library might be using APIs not available in 14  
Suggestion: use a compatible library with a minSdk of at most 14,  
or increase this project's minSdk version to at least 19,  
or use tools:overrideLibrary=\"io.dcloud.feature\" to force usage (may lead to runtime failures)  
at com.android.builder.core.AndroidBuilder.mergeManifestsForApplication(AndroidBuilder.java:540)  
at com.android.build.gradle.tasks.MergeManifests.doFullTaskAction(MergeManifests.java:173)  
at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:106)  
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)  
at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:50)  
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)  
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26)  
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:131)  
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)  
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)  
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)  
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)  
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)  
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:120)  
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:99)  
... 31 more* Get more help at https://help.gradle.org  

BUILD FAILED in 13s

另外希望增加一个停止打包的功能,因为我是批量打包的,然后都报错了,今天次数已经用完,只能等到第二天了,如果有停止打包功能,出现错误就立即停止,也能缩减云服务器的开销啊

2019-08-27 10:56 负责人:无 分享
已邀请:
h***@qq.com

h***@qq.com

我啥权限没有用,选14,也是提示我不能低于19

该问题目前已经被锁定, 无法添加新回复