无法生成发布版本



调试版本正在运行,但flutter构建apkflutter运行-发布以及发布捆绑包时出现构建错误。

Running Gradle task 'assembleRelease'...                                

                                             
FAILURE: Build failed with an exception.                                                                           
                                             
* Where:                                                                                                           
Script '/home/mkmalik/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 904                              
                                             
* What went wrong:                                                                                                 
Execution failed for task ':app:compileFlutterBuildRelease'.                                                       
> Process 'command '/home/mkmalik/flutter/bin/flutter'' finished with non-zero exit value 1                        
                                             
                                                                                                       
                                             
BUILD FAILED in 7m 16s       

flatter.gradle线:904(第一线,904)

project.exec {
logging.captureStandardError LogLevel.ERROR
executable flutterExecutable.absolutePath
workingDir sourceDir
if (localEngine != null) {
args "--local-engine", localEngine
args "--local-engine-src-path", localEngineSrcPath
}
if (verbose) {
args "--verbose"
} else {
args "--quiet"
}
args "assemble"
args "--depfile", "${intermediateDir}/flutter_build.d"
args "--output", "${intermediateDir}"

堆栈跟踪(./gradlew-build--stacktrace)

**

配置项目:应用

任务:agora_rtc_engine:compileReleaseKotlinw:/home/mkmalik/.pub-cache/hosts/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/java/io/gora/rtc/base/BainOvertor.kt:(81,44):不赞成使用"lowLatency:Boolean"。Java中已弃用w:/home/mkmalik/.pub-cache/hosts/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/java/io/gora/rtc/base/BainOvertor.kt:(90,51):不赞成使用"backgroundColor:Int"。Java中已弃用w:/home/mkmalik/.pub cache/hosts/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/java/io/gora/rtc/base/Extensions.kt:(103,16):不赞成使用"delay:Int"。Java中已弃用w:/home/mkmalik/.pub cache/hosts/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/java/io/gora/rtc/base/RtcChannel.kt:(299,56):"setEncryptionSecret(String!):Int"已弃用。Java中已弃用w:/home/mkmalik/.pub-cache/hosts/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/java/io/gora/rtc/base/RtcChannel.kt:(303,56):不赞成使用"setEncryptionMode(String!):Int"。Java中已弃用w:/home/mkmalik/.pub cache/hosts/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/java/io/gora/rtc/base/RtcEngine.kt:(425,27):"enableWebSdkInteroperability(Boolean):Int"已弃用。Java中已弃用w:/home/mkmalik/.pub cache/hosts/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/java/io/gora/rtc/base/RtcEngine.kt:(720,27):"setLocalVoiceChanger(Int):Int"已弃用。Java中已弃用w:/home/mkmalik/.pub cache/hosts/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/java/io/gora/rtc/base/RtcEngine.kt:(724,27):"setLocalVoiceReverbPreset(Int):Int"已弃用。Java中已弃用w:/home/mkmalik/.pub cache/hosts/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/java/io/gora/rtc/base/RtcEngine.kt:(898,27):"setEncryptionSecret(String!):Int"已弃用。Java中已弃用w:/home/mkmalik/.pub-cache/hosts/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/java/io/gora/rtc/base/RtcEngine.kt:(902,27):不赞成使用"setEncryptionMode(String!):Int"。Java中已弃用w:/home/mkmalik/.pub-cache/hoste/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/kotlin/io/agora/agora_rtcp_engine/AgoraRtcEnginePlugin.kt:(135,50):调用使用了在编译类路径中找不到的反射API。确保类路径中有kotlin-reflect.jar

任务:agora_rtc_engine:compileProfileKotlinw:/home/mkmalik/.pub-cache/hosts/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/java/io/gora/rtc/base/BainOvertor.kt:(81,44):不赞成使用"lowLatency:Boolean"。Java中已弃用w:/home/mkmalik/.pub-cache/hosts/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/java/io/gora/rtc/base/BainOvertor.kt:(90,51):不赞成使用"backgroundColor:Int"。Java中已弃用w:/home/mkmalik/.pub cache/hosts/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/java/io/gora/rtc/base/Extensions.kt:(103,16):不赞成使用"delay:Int"。Java中已弃用w:/home/mkmalik/.pub cache/hosts/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/java/io/gora/rtc/base/RtcChannel.kt:(299,56):"setEncryptionSecret(String!):Int"已弃用。Java中已弃用w:/home/mkmalik/.pub-cache/hosts/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/java/io/gora/rtc/base/RtcChannel.kt:(303,56):不赞成使用"setEncryptionMode(String!):Int"。Java中已弃用w:/home/mkmalik/.pub cache/hosts/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/java/io/gora/rtc/base/RtcEngine.kt:(425,27):"enableWebSdkInteroperability(Boolean):Int"已弃用。Java中已弃用w:/home/mkmalik/.pub cache/hosts/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/java/io/gora/rtc/base/RtcEngine.kt:(720,27):"setLocalVoiceChanger(Int):Int"已弃用。Java中已弃用w:/home/mkmalik/.pub cache/hosts/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/java/io/gora/rtc/base/RtcEngine.kt:(724,27):"setLocalVoiceReverbPreset(Int):Int"已弃用。Java中已弃用w:/home/mkmalik/.pub cache/hosts/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/java/io/gora/rtc/base/RtcEngine.kt:(898,27):"setEncryptionSecret(String!):Int"已弃用。Java中已弃用w:/home/mkmalik/.pub-cache/hosts/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/java/io/gora/rtc/base/RtcEngine.kt:(902,27):不赞成使用"setEncryptionMode(String!):Int"。Java中已弃用w:/home/mkmalik/.pub-cache/hoste/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/kotlin/io/agora/agora_rtcp_engine/AgoraRtcEnginePlugin.kt:(135,50):调用使用了在编译类路径中找不到的反射API。确保类路径中有kotlin-reflect.jar

任务:agora_rtc_engine:compileDebugKotlinw:/home/mkmalik/.pub-cache/hosts/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/java/io/gora/rtc/base/BainOvertor.kt:(81,44):不赞成使用"lowLatency:Boolean"。Java中已弃用w:/home/mkmalik/.pub-cache/hosts/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/java/io/gora/rtc/base/BainOvertor.kt:(90,51):不赞成使用"backgroundColor:Int"。Java中已弃用w:/home/mkmalik/.pub cache/hosts/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/java/io/gora/rtc/base/Extensions.kt:(103,16):不赞成使用"delay:Int"。Java中已弃用w:/home/mkmalik/.pub cache/hosts/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/java/io/gora/rtc/base/RtcChannel.kt:(299,56):"setEncryptionSecret(String!):Int"已弃用。Java中已弃用w:/home/mkmalik/.pub-cache/hosts/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/java/io/gora/rtc/base/RtcChannel.kt:(303,56):不赞成使用"setEncryptionMode(String!):Int"。Java中已弃用w:/home/mkmalik/.pub cache/hosts/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/java/io/gora/rtc/base/RtcEngine.kt:(425,27):"enableWebSdkInteroperability(Boolean):Int"已弃用。Java中已弃用w:/home/mkmalik/.pub cache/hosts/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/java/io/gora/rtc/base/RtcEngine.kt:(720,27):"setLocalVoiceChanger(Int):Int"已弃用。Java中已弃用w:/home/mkmalik/.pub cache/hosts/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/java/io/gora/rtc/base/RtcEngine.kt:(724,27):"setLocalVoiceReverbPreset(Int):Int"已弃用。Java中已弃用w:/home/mkmalik/.pub cache/hosts/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/java/io/gora/rtc/base/RtcEngine.kt:(898,27):"setEncryptionSecret(String!):Int"已弃用。Java中已弃用w:/home/mkmalik/.pub-cache/hosts/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/java/io/gora/rtc/base/RtcEngine.kt:(902,27):不赞成使用"setEncryptionMode(String!):Int"。Java中已弃用w:/home/mkmalik/.pub-cache/hoste/pub.dartlang.org/agora_rtc_engine-3.3/3android/src/main/kotlin/io/agora/agora_rtcp_engine/AgoraRtcEnginePlugin.kt:(135,50):调用使用了在编译类路径中找不到的反射API。确保类路径中有kotlin-reflect.jar

任务:agora_rtc_engine:lint调用mockable JAR工件转换来创建文件:/home/mkmalik/.gradle/caches/transforms-2/files-2.1/8a531961b8210f93eb2287d6c9845042/android.JAR,输入/home/mcmalik/android/Sdk/platforms/android-28/android.JAR在变体发布上运行lint:发现6个问题在变体配置文件上运行lint:发现6个问题在变体调试上运行lint:发现6个问题将HTML报告写入file:///home/mkmalik/Desktop/MeetMeFit/mmf%201.0.3%20(副本)/mmf%2013%2021年5月20日/meetfit/build/agora_tc_engine/reports/lint-results.html将XML报告写入file:///home/mkmalik/Desktop/MeetMeFit/mmf%201.0.3%20(副本)/mmf%2013%2021年5月%20may/meetfit/build/agora_tc_engine/reports/lint-results.xml

任务:agora_rtc_engine:lint失败*********************************************************警告:如果此版本的flatter_webview_plugin或其依赖项与AndroidX不兼容,它将破坏您的Android构建。

失败:生成失败,出现异常。

  • 出了什么问题:任务":agora_rtc_engine:lint"的执行失败

Lint在项目中发现错误;正在中止生成。

修复lint识别的问题,或将以下内容添加到构建脚本中以继续处理错误:。。。android{lintOptions{abortError false}}…

前3个错误(共6个)为:/home/mkmalik/.pub-cache/hosts/pub.dartlang.org/agora_rtc_engine3.3.3/android/src/main/kotlin/io/agora/agora_rtcp_engine/AgoraSurfaceViewFactory.kt:59:错误:调用需要API 26级(当前最小值为16):java.lang.reflect.Executable#getParameters[NewApi]function.parameters.forEach{parameter->~~~~~~~~~~/home/mkmalik/.pub-cache/hosts/pub.dartlang.org/agora_rtc_engine3.3.3/android/src/main/kotlin/io/agora/agora_rtcp_engine/AgoraSurfaceViewFactory.kt:61:错误:调用需要API级别26(当前最小值为16):java.lang.reflect.Parameter#getName[NewApi]if(map.contentsKey(parameter.name)){~~~~/home/mkmalik/.pub-cache/hosts/pub.dartlang.org/agora_rtc_engine3.3.3/android/src/main/kotlin/io/agora/agora_rtcp_engine/AgoraSurfaceViewFactory.kt:62:错误:调用需要API级别26(当前最小值为16):java.lang.reflect.Parameter#getName[NewApi]parameters.add(映射[parameter.name])~~~~

  • 尝试:使用--info或--debug选项运行以获得更多日志输出。使用--scan运行以获得完整的见解。

  • 例外情况是:org.gradle.api.tasks.TaskExecutionException:任务":agora_rtc_engine:lint"的执行失败。位于org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:207)网址:org.gradle.internal.Thry$Failure.ifSuccessfulOrElse(Try.java:263)位于org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:205)位于org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:186)位于org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:114)位于org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePProperties TaskExecuter.java:46)位于org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskexecutionModeExecutor.java:62)位于org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.exexecute(SkipTaskWithNoActionsExecuter.java:57)位于org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnyIfTaskexecuter.java:56)位于org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExcessionTaskExecuter.java:36)位于org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)位于org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)位于org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)位于org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutior.java:416)位于org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutior.java:406)位于org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)网址:org.gradle.internal.operations.DefaultBuildOperationExecution.execute(DefaultBuildOperationExecutior.java:250)位于org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)在org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutior.java:102)网址:org.gradle.internal.operations.DelegatingBuildOperationExecutior.call(DelegatingBuildOperationExecutiator.java:36)位于org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)网址:org.gradle.exexecution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:41)位于org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutionsAction.execute(DefaultTaskExecutionGraph.java:370)位于org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutionsAction.execute(DefaultTaskExecutionGraph.java:357)位于org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.exexecute(DefaultTaskExecutionGraph.java:350)位于org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.exexecute(DefaultTaskExecutionGraph.java:336)在org.gradle.exexecution.plan.DefaultPlanExecutiator$ExecutitorWorker.lambda$run$0(DefaultPlanExecutiator.java:127)网址:org.gradle.exexecution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:191)在org.gradle.execution.plan.DefaultPlanExecutor$ExecutoWorker.executeNextNode(DefaultPlanExecutor.java:182)网址:org.gradle.exexecution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:124)网址:org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)网址:org.gradle.internal.concurrent.ManagedExecutiorImpl$1.run(ManagedExecutiorimpl.java:48)位于org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)原因:org.gradle.api.GradleException:Lint在项目中发现错误;正在中止生成。

修复lint识别的问题,或将以下内容添加到构建脚本中以继续处理错误:。。。android{lintOptions{abortError false}}…

前3个错误(共6个)为:/home/mkmalik/.pub-cache/hosts/pub.dartlang.org/agora_rtc_engine3.3.3/android/src/main/kotlin/io/agora/agora_rtcp_engine/AgoraSurfaceViewFactory.kt:59:错误:调用需要API 26级(当前最小值为16):java.lang.reflect.Executable#getParameters[NewApi]function.parameters.forEach{parameter->~~~~~~~~~~/home/mkmalik/.pub-cache/hosts/pub.dartlang.org/agora_rtc_engine3.3.3/android/src/main/kotlin/io/agora/agora_rtcp_engine/AgoraSurfaceViewFactory.kt:61:错误:调用需要API级别26(当前最小值为16):java.lang.reflect.Parameter#getName[NewApi]if(map.contentsKey(parameter.name)){~~~~/home/mkmalik/.pub-cache/hosts/pub.dartlang.org/agora_rtc_engine3.3.3/android/src/main/kotlin/io/agora/agora_rtcp_engine/AgoraSurfaceViewFactory.kt:62:错误:调用需要API级别26(当前最小值为16):java.lang.reflect.Parameter#getName[NewApi]parameters.add(映射[parameter.name])~~~~

at com.android.tools.lint.gradle.LintGradleExecution.abort(LintGradleExecution.java:206)
at com.android.tools.lint.gradle.LintGradleExecution.lintAllVariants(LintGradleExecution.java:530)
at com.android.tools.lint.gradle.LintGradleExecution.analyze(LintGradleExecution.java:96)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at com.android.tools.lint.gradle.api.ReflectiveLintRunner.runLint(ReflectiveLintRunner.kt:38)
at com.android.build.gradle.tasks.LintBaseTask.runLint(LintBaseTask.java:100)
at com.android.build.gradle.tasks.LintGlobalTask.lint(LintGlobalTask.java:47)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:104)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:49)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:42)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:28)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:722)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:689)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.run(ExecuteActionsTaskExecuter.java:569)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:554)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:537)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.access$300(ExecuteActionsTaskExecuter.java:108)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.executeWithPreviousOutputFiles(ExecuteActionsTaskExecuter.java:278)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.execute(ExecuteActionsTaskExecuter.java:267)
at org.gradle.internal.execution.steps.ExecuteStep.lambda$execute$1(ExecuteStep.java:33)
at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:33)
at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:26)
at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:67)
at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:36)
at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:49)
at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:34)
at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:43)
at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:73)
at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:54)
at org.gradle.internal.execution.steps.CatchExceptionStep.execute(CatchExceptionStep.java:34)
at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:44)
at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:54)
at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:38)
at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:49)
at org.gradle.internal.execution.steps.CacheStep.executeWithoutCache(CacheStep.java:159)
at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:72)
at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:43)
at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:44)
at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:33)
at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:38)
at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:24)
at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:92)
at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$0(SkipUpToDateStep.java:85)
at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:55)
at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:39)
at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:76)
at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:37)
at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:36)
at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:26)
at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:94)
at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:49)
at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:79)
at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:53)
at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:74)
at org.gradle.internal.execution.steps.SkipEmptyWorkStep.lambda$execute$2(SkipEmptyWorkStep.java:78)
at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:78)
at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:34)
at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:39)
at org.gradle.internal.execution.steps.LoadExecutionStateStep.execute(LoadExecutionStateStep.java:40)
at org.gradle.internal.execution.steps.LoadExecutionStateStep.execute(LoadExecutionStateStep.java:28)
at org.gradle.internal.execution.impl.DefaultWorkExecutor.execute(DefaultWorkExecutor.java:33)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:194)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:186)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:114)
at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:62)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:41)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:370)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:357)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:350)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:336)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.lambda$run$0(DefaultPlanExecutor.java:127)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:191)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execut

此版本中使用了不推荐的Gradle功能,使其与Gradle 7.0不兼容。

请参阅https://docs.gradle.org/6.4.1/userguide/command_line_interface.html#sec:command_line_warnings

3米51秒内建造失败70项可操作任务:45项已执行,25项最新任务**

从完整的堆栈中可以看到

Call requires API level 26 (current min is 16)

这意味着您需要将minSDK更改为26。您可以在文件android/app/build.gradle中更新它,将minSdkVersion 16更改为minSdkVersion 26。请确保在执行此更改后运行flutter cleanflutter pub get

相关内容

  • 没有找到相关文章

最新更新