FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.
> Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository 'maven(http://storage.flutter-io.cn/download.flutter.io)' to redirect to a secure protocol (like HTTPS) or allow insecure protocols. See https://docs.gradle.org/7.4/dsl/org.gradle.api.artifacts.repositories.UrlArtifactRepository.html#org.gradle.api.artifacts.repositories.UrlArtifactRepository:allowInsecureProtocol for more details.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 50s
Exception: Gradle task assembleDebug failed with exit code 1
Solution:
Although there are many tutorials online, but there is no solution to this solution, the early my attention are in the first sentence, only to know that the original focus is the latter sentence, the main error is in the http and https protocol, Just modify HTTP to HTTPS of the system variable FLUTTER_STORAGE_BASE_URL variable value.
Read More:
- [Solved] Exception in replication between CentOS virtual machine and host
- VScode Error: extension failed XHR Failed (Ubuntu Virtual Machine)
- [Solved] Virtual Machine Boot-up Error: failed to recover intents
- Linux Virtual Machine Boot Container: Error response from daemon: driver failed programming external connectivity on endpoint
- [Solved] Virtual machine Failed to restart network Error: Error:Failed to start LSB: Bring up/down networking
- [Solved] VMware Create a Virtual Machine Error: unsuccessful
- Virtual machine failed to start network service error: ob for network.service failed because the control process exited with error code
- [Solved] Virtual Machine Centos7 Startup Error: Entering emergency mode
- [Solved] Linux virtual machine startup error: operating system not found
- Virtual machine ping Command Error: ping name or service not known
- Vmware Virtual Machine ubuntu Compile Error: fatal error: Killed signal terminated program cc1plus
- Weblogic Deployment Error: The most likely cause is an error in the network configuration of this machine.
- Vmware virtual Mechine connect VScode Error: channel 3: open failed: administratively prohibited: open failed
- How to Use Annotations in Flutter & Dart
- [Solved] Jenkins build error: esbuild install failed
- [Solved] rk3588_buildroot Compile Error: ERROR: Running build_kernel failed!
- WARNING: Download failure <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
- [Solved] Ubuntu Compile Rust Program Error: failed to run custom build command for openssl-sys v0.9.39
- How to fix the ERROR: Failed to build gem native extension in Centos 8
- petalinux-build Error: ERROR: Task (/opt/pkg/petalinux/components/yocto/source/aarch64/layers/meta-xilinx-tools/recipes-bsp/fsbl/fsbl_git.bb:do_compile) failed with exit code ‘1’