当前位置:

Received status code 502 from server: Bad Gateway

访客 2024-04-23 1480 0

第一个问题

报错信息

FAILURE:Buildfailedwithanexception.*Whatwentwrong:Couldnotdeterminethedependenciesoftask':app:processDebugResources'.>Couldnotresolvealltaskdependenciesforconfiguration':app:debugRuntimeClasspath'.>Couldnotresolveandroidx.room:room-common:[2.2.5].Requiredby:project:app>project:flutter_downloader>androidx.work:work-runtime:2.4.0>androidx.room:room-runtime:2.2.5>Failedtolistversionsforandroidx.room:room-common.>UnabletoloadMavenmeta-datafromhttps://谷歌.bintray.com/exoplayer/androidx/room/room-common/maven-metadata.xml.>Couldnotgetresource'https://谷歌.bintray.com/exoplayer/androidx/room/room-common/maven-metadata.xml'.>CouldnotGET'https://谷歌.bintray.com/exoplayer/androidx/room/room-common/maven-metadata.xml'.Receivedstatuscode502fromserver:BadGateway*Try:Runwith--stacktraceoptiontogetthestacktrace.Runwith--infoor--debugoptiontogetmorelogoutput.Runwith--scantogetfullinsights.*Getmorehelpathttps://help.gradle.orgFAILURE:Buildfailedwithanexception.*Whatwentwrong:Task'assembleAarRelease'notfoundinrootproject'amap_location_flutter_plugin'.*Try:Rungradlewtaskstogetalistofavailabletasks.Runwith--stacktraceoptiontogetthestacktrace.Runwith--infoor--debugoptiontogetmorelogoutput.Runwith--scantogetfullinsights.*Getmorehelpathttps://help.gradle.orgBUILDFAILEDin1sException:Thepluginamap_location_flutter_plugincouldnotbebuiltduetotheissueabove.

解决办法:修改gradle-wrapper.properties文件,升级distributionUrl的版本后修复

第二个问题

报错信息

FAILURE:Buildfailedwithanexception.*Whatwentwrong:Executionfailedfortask':app:packageDebug'.>Afailureoccurredwhileexecutingcom.android.build.gradle.internal.tasks.Workers$ActionFacade>java.io.FileNotFoundException:D:\项目路径\build\app\intermediates\signing_config\debug\out\signing-config.json(ܾʡ)*Try:Runwith--stacktraceoptiontogetthestacktrace.Runwith--infoor--debugoptiontogetmorelogoutput.Runwith--scantogetfullinsights.*Getmorehelpathttps://help.gradle.orgBUILDFAILEDin1m9s[!]Gradlethrewanerrorwhiledownloadingartifactsfromthenetwork.Retryingtodownload...RunningGradletask'assembleDebug'...FAILURE:Buildfailedwithanexception.*Whatwentwrong:Executionfailedfortask':app:packageDebug'.>Afailureoccurredwhileexecutingcom.android.build.gradle.internal.tasks.Workers$ActionFacade>java.io.FileNotFoundException:D:\项目路径\build\app\intermediates\signing_config\debug\out\signing-config.json(ܾʡ)*Try:Runwith--stacktraceoptiontogetthestacktrace.Runwith--infoor--debugoptiontogetmorelogoutput.Runwith--scantogetfullinsights.*Getmorehelpathttps://help.gradle.orgBUILDFAILEDin19s[!]Gradlethrewanerrorwhiledownloadingartifactsfromthenetwork.Retryingtodownload...Exception:GradletaskassembleDebugfailedwithexitcode1

解决办法:按照提示找到对应文件夹,直接把build文件夹下的文件全部删除,重新编译就可以运行了

发表评论

  • 评论列表
还没有人评论,快来抢沙发吧~