$ ./gradlew build --stacktrace
> Configure project :libsignal-service
Verifying com.fasterxml.jackson.core:jackson-annotations
Verifying com.fasterxml.jackson.core:jackson-core
Verifying com.fasterxml.jackson.core:jackson-databind
Verifying com.google.protobuf:protobuf-javalite
Verifying com.googlecode.libphonenumber:libphonenumber
Verifying com.squareup.okhttp3:okhttp
Verifying com.squareup.okio:okio
Verifying org.signal:signal-metadata-java
Verifying org.signal:zkgroup-java
Verifying org.threeten:threetenbp
Verifying org.whispersystems:curve25519-java
Verifying org.whispersystems:signal-protocol-java
> Configure project :app
The com.google.protobuf plugin was already applied to the project: :app and will not be applied again after plugin: android
Verifying androidx.activity:activity
Verifying androidx.annotation:annotation-experimental
Verifying androidx.annotation:annotation
Verifying androidx.appcompat:appcompat-resources
Verifying androidx.appcompat:appcompat
Verifying androidx.arch.core:core-common
Verifying androidx.arch.core:core-runtime
Verifying androidx.asynclayoutinflater:asynclayoutinflater
Verifying androidx.autofill:autofill
Verifying androidx.camera:camera-camera2
Verifying androidx.camera:camera-core
Verifying androidx.camera:camera-lifecycle
Verifying androidx.cardview:cardview
Verifying androidx.collection:collection
Verifying androidx.concurrent:concurrent-futures
Verifying androidx.constraintlayout:constraintlayout-solver
Verifying androidx.constraintlayout:constraintlayout
Verifying androidx.coordinatorlayout:coordinatorlayout
Verifying androidx.core:core
Verifying androidx.cursoradapter:cursoradapter
Verifying androidx.customview:customview
Verifying androidx.documentfile:documentfile
Verifying androidx.drawerlayout:drawerlayout
Verifying androidx.exifinterface:exifinterface
Verifying androidx.fragment:fragment
Verifying androidx.gridlayout:gridlayout
Verifying androidx.interpolator:interpolator
Verifying androidx.legacy:legacy-preference-v14
Verifying androidx.legacy:legacy-support-core-ui
Verifying androidx.legacy:legacy-support-core-utils
Verifying androidx.legacy:legacy-support-v13
Verifying androidx.legacy:legacy-support-v4
Verifying androidx.lifecycle:lifecycle-common-java8
Verifying androidx.lifecycle:lifecycle-common
Verifying androidx.lifecycle:lifecycle-extensions
Verifying androidx.lifecycle:lifecycle-livedata-core
Verifying androidx.lifecycle:lifecycle-livedata
Verifying androidx.lifecycle:lifecycle-process
Verifying androidx.lifecycle:lifecycle-runtime
Verifying androidx.lifecycle:lifecycle-service
Verifying androidx.lifecycle:lifecycle-viewmodel-savedstate
Verifying androidx.lifecycle:lifecycle-viewmodel
Verifying androidx.loader:loader
Verifying androidx.localbroadcastmanager:localbroadcastmanager
Verifying androidx.media:media
Verifying androidx.multidex:multidex
Verifying androidx.navigation:navigation-common
Verifying androidx.navigation:navigation-fragment
Verifying androidx.navigation:navigation-runtime
Verifying androidx.navigation:navigation-ui
Verifying androidx.paging:paging-common
Verifying androidx.paging:paging-runtime
Verifying androidx.preference:preference
Verifying androidx.print:print
Verifying androidx.recyclerview:recyclerview
Verifying androidx.savedstate:savedstate
Verifying androidx.slidingpanelayout:slidingpanelayout
Verifying androidx.swiperefreshlayout:swiperefreshlayout
Verifying androidx.transition:transition
Verifying androidx.vectordrawable:vectordrawable-animated
Verifying androidx.vectordrawable:vectordrawable
Verifying androidx.versionedparcelable:versionedparcelable
Verifying androidx.viewpager2:viewpager2
Verifying androidx.viewpager:viewpager
Verifying cn.carbswang.android:NumberPickerView
Verifying com.airbnb.android:lottie
Verifying com.amulyakhare:com.amulyakhare.textdrawable
Verifying com.annimon:stream
Verifying com.codewaves.stickyheadergrid:stickyheadergrid
Verifying com.davemorrissey.labs:subsampling-scale-image-view
Verifying com.fasterxml.jackson.core:jackson-annotations
Verifying com.fasterxml.jackson.core:jackson-core
Verifying com.fasterxml.jackson.core:jackson-databind
Verifying com.github.bumptech.glide:annotations
Verifying com.github.bumptech.glide:disklrucache
Verifying com.github.bumptech.glide:gifdecoder
Verifying com.github.bumptech.glide:glide
Verifying com.github.chrisbanes:PhotoView
Verifying com.github.dmytrodanylyk.circular-progress-button:library
Verifying com.google.android.datatransport:transport-api
Verifying com.google.android.datatransport:transport-backend-cct
Verifying com.google.android.datatransport:transport-runtime
Verifying com.google.android.exoplayer:exoplayer-core
Verifying com.google.android.exoplayer:exoplayer-ui
Verifying com.google.android.gms:play-services-auth-api-phone
Verifying com.google.android.gms:play-services-auth-base
Verifying com.google.android.gms:play-services-auth
Verifying com.google.android.gms:play-services-base
Verifying com.google.android.gms:play-services-basement
Verifying com.google.android.gms:play-services-clearcut
Verifying com.google.android.gms:play-services-flags
Verifying com.google.android.gms:play-services-maps
Verifying com.google.android.gms:play-services-phenotype
Verifying com.google.android.gms:play-services-stats
Verifying com.google.android.gms:play-services-tasks
Verifying com.google.android.gms:play-services-vision-common
Verifying com.google.android.gms:play-services-vision-face-contour-internal
Verifying com.google.android.gms:play-services-vision-image-label
Verifying com.google.android.gms:play-services-vision
Verifying com.google.android.material:material
Verifying com.google.auto.value:auto-value-annotations
Verifying com.google.dagger:dagger
Verifying com.google.firebase:firebase-common
Verifying com.google.firebase:firebase-components
Verifying com.google.firebase:firebase-datatransport
Verifying com.google.firebase:firebase-encoders-json
Verifying com.google.firebase:firebase-iid-interop
Verifying com.google.firebase:firebase-iid
Verifying com.google.firebase:firebase-installations-interop
Verifying com.google.firebase:firebase-installations
Verifying com.google.firebase:firebase-messaging
Verifying com.google.firebase:firebase-ml-common
Verifying com.google.firebase:firebase-ml-vision-face-model
Verifying com.google.firebase:firebase-ml-vision
Verifying com.google.guava:listenablefuture
Verifying com.google.protobuf:protobuf-javalite
Verifying com.google.zxing:android-integration
Verifying com.google.zxing:core
Verifying com.googlecode.ez-vcard:ez-vcard
Verifying com.googlecode.libphonenumber:libphonenumber
Verifying com.jpardogo.materialtabstrip:library
Verifying com.klinkerapps:android-smsmms
Verifying com.klinkerapps:logger
Verifying com.makeramen:roundedimageview
Verifying com.melnykov:floatingactionbutton
Verifying com.nineoldandroids:library
Verifying com.pnikosis:materialish-progress
Verifying com.squareup.okhttp3:okhttp
Verifying com.squareup.okio:okio
Verifying com.takisoft.fix:colorpicker
Verifying com.tomergoldst.android:tooltips
Verifying dnsjava:dnsjava
Verifying javax.inject:javax.inject
Verifying me.leolin:ShortcutBadger
Verifying mobi.upod:time-duration-picker
Verifying org.apache.httpcomponents:httpclient-android
Verifying org.conscrypt:conscrypt-android
Verifying org.greenrobot:eventbus
Verifying org.jsoup:jsoup
Verifying org.signal:aesgcmprovider
Verifying org.signal:android-database-sqlcipher
Verifying org.signal:argon2
Verifying org.signal:ringrtc-android
Verifying org.signal:signal-metadata-java
Verifying org.signal:zkgroup-android
Verifying org.signal:zkgroup-java
Verifying org.threeten:threetenbp
Verifying org.whispersystems:curve25519-java
Verifying org.whispersystems:signal-protocol-java
Verifying pl.tajchert:waitingdots
Verifying se.emilsjolander:stickylistheaders
> Configure project :flutter_webview_plugin
WARNING: The option 'android.enableR8' is deprecated and should not be used anymore.
It will be removed in a future version of the Android Gradle plugin, and will no longer allow you to disable R8.
> Task :flutter:compileFlutterBuildDebug FAILED
Error detected in pubspec.yaml:
No file or variants found for asset: assets/index.html.
*********************************************************
WARNING: This version of flutter_webview_plugin will break your Android build if it or its dependencies aren't compatible with AndroidX.
See https://goo.gl/CP92wY for more information on the problem and how to fix it.
This warning prints for all Android build failures. The real root cause of the error may be unrelated.
*********************************************************
FAILURE: Build failed with an exception.
* Where:
Script '/home/liucz/Flutter/flutter_linux_2.0.4-stable/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 991
* What went wrong:
Execution failed for task ':flutter:compileFlutterBuildDebug'.
> Process 'command '/home/liucz/Flutter/flutter_linux_2.0.4-stable/flutter/bin/flutter'' finished with non-zero exit value 1
* Try:
Run with --info or --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 ':flutter:compileFlutterBuildDebug'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.accept(ExecuteActionsTaskExecuter.java:166)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.accept(ExecuteActionsTaskExecuter.java:163)
at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:191)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:156)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:62)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:108)
at org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionOutputsTaskExecuter.execute(ResolveBeforeExecutionOutputsTaskExecuter.java:67)
at org.gradle.api.internal.tasks.execution.ResolveAfterPreviousExecutionStateTaskExecuter.execute(ResolveAfterPreviousExecutionStateTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:94)
at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:95)
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:43)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:355)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:343)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:336)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:322)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:134)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:129)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:202)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:193)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:129)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
Caused by: org.gradle.process.internal.ExecException: Process 'command '/home/liucz/Flutter/flutter_linux_2.0.4-stable/flutter/bin/flutter'' finished with non-zero exit value 1
at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:409)
at org.gradle.process.internal.DefaultExecAction.execute(DefaultExecAction.java:38)
at org.gradle.process.internal.DefaultExecActionFactory.exec(DefaultExecActionFactory.java:145)
at org.gradle.api.internal.project.DefaultProject.exec(DefaultProject.java:1117)
at org.gradle.api.internal.project.DefaultProject.exec(DefaultProject.java:1112)
at org.gradle.api.Project$exec$11.call(Unknown Source)
at BaseFlutterTask.buildBundle(/home/liucz/Flutter/flutter_linux_2.0.4-stable/flutter/packages/flutter_tools/gradle/flutter.gradle:991)
at BaseFlutterTask$buildBundle.callCurrent(Unknown Source)
at FlutterTask.build(/home/liucz/Flutter/flutter_linux_2.0.4-stable/flutter/packages/flutter_tools/gradle/flutter.gradle:1112)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:103)
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:717)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:684)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$5.run(ExecuteActionsTaskExecuter.java:476)
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:461)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:444)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.access$200(ExecuteActionsTaskExecuter.java:93)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.execute(ExecuteActionsTaskExecuter.java:237)
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:58)
at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:35)
at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:48)
at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:33)
at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:39)
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:35)
at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:51)
at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:45)
at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:31)
at org.gradle.internal.execution.steps.CacheStep.executeWithoutCache(CacheStep.java:208)
at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:70)
at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:45)
at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:49)
at org.gradle.internal.execution.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:43)
at org.gradle.internal.execution.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:32)
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:96)
at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$0(SkipUpToDateStep.java:89)
at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:54)
at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:38)
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:90)
at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:48)
at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:69)
at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:47)
at org.gradle.internal.execution.impl.DefaultWorkExecutor.execute(DefaultWorkExecutor.java:33)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:140)
... 34 more
* Get more help at https://help.gradle.org
BUILD FAILED in 3s
29 actionable tasks: 1 executed, 28 up-to-date
洋洋洒洒一大堆异常,看着吓死个人,但仔细看build的输出信息,可以查看到关键信息:
Error detected in pubspec.yaml:
No file or variants found for asset: assets/index.html.
是在检测pubspec.yaml文件时报错,assets/index.html
这个文件没有找到。
文件添加之后,再次构建:
BUILD SUCCESSFUL
gradle构建成功!
反思:
刚开始还去查看这部分异常信息:
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':flutter:compileFlutterBuildDebug'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.accept(ExecuteActionsTaskExecuter.java:166)
以及
Caused by: org.gradle.process.internal.ExecException: Process 'command '/home/liucz/Flutter/flutter_linux_2.0.4-stable/flutter/bin/flutter'' finished with non-zero exit value 1
at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:409)
关注点错了呀…应该关注上面点的那个异常:
> Task :flutter:compileFlutterBuildDebug FAILED
Error detected in pubspec.yaml:
No file or variants found for asset: assets/index.html.
Build failed with an exception. Execution failed for task ‘:app:compileFlutterBuildDebug’. #72658
When trying to build I got this error - Execution failed for task ‘:app:compileFlutterBuildDebug’
Execution failed for task ‘:app:compileFlutterBuildDebug’. #74984