我在安裝一些依賴項時遇到問題:
dependencies:
youtube_player_iframe: ^2.2.2
當我運行我的顫振并拋出一些錯誤時:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':flutter_local_notifications:compileDebugJavaWithJavac'.
> Could not resolve all files for configuration ':flutter_local_notifications:debugCompileClasspath'.
> Could not download threetenbp-1.4.2-no-tzdb.jar (org.threeten:threetenbp:1.4.2)
> Could not get resource 'https://repo.maven.apache.org/maven2/org/threeten/threetenbp/1.4.2/threetenbp-1.4.2-no-tzdb.jar'.
> Could not GET 'https://repo.maven.apache.org/maven2/org/threeten/threetenbp/1.4.2/threetenbp-1.4.2-no-tzdb.jar'.
> This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server (repo.maven.apache.org)
* 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 20s
[!] Gradle threw an error while downloading artifacts from the network. Retrying to download...
Exception: Gradle task assembleDebug failed with exit code 1
有沒有辦法來解決這個問題?
uj5u.com熱心網友回復:
關閉防火墻和這項作業:)
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/360970.html
