我仔細檢查了我是否安裝了它..
搖籃 7.3
所以沒關系..當我輸入命令 gradle --daemon 時問題就出現了
我收到這個錯誤
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'RentInCars'.
> Could not resolve all files for configuration ':classpath'.
> Could not find com.android.tools.build:gradle:7.2.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/7.2/gradle-7.2.pom
- https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/7.2/gradle-7.2.pom
- https://jcenter.bintray.com/com/android/tools/build/gradle/7.2/gradle-7.2.pom
Required by:
project :
* 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
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.3/userguide/command_line_interface.html#sec:command_line_warnings
我嘗試使用 sudo gradle --daemon .. 仍然給我同樣的錯誤.. 接下來我應該嘗試什么?
uj5u.com熱心網友回復:
正如我們在評論中所討論的,您需要 VPN 而不是任何 VPN。
您必須知道您的 vpn 正在使用哪個埠。
例如,如果您下載了 psiphone,您可以進入設定,然后是本地代理埠,您可以添加 12345 作為埠,例如。
那么您需要轉到 .gradle 檔案夾,如果您使用的 Windows 通常位于 USER/%USERNAME%/.gradle ,并創建一個全域 gradle.properties 然后添加以下內容。
systemProp.http.proxyHost=127.0.0.1
systemProp.http.proxyPort=12345
systemProp.https.proxyHost=127.0.0.1
systemProp.https.proxyPort=12345
這將重定向所有 gradle 連接拋出您的代理,例如在 psiphone 的情況下。
uj5u.com熱心網友回復:
我也試過這個并遇到了同樣的問題。后來我發現這里還沒有添加 Gradle 7.3
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/358323.html
標籤:javascript 安卓 反应原生 视觉工作室 等级
上一篇:基于多風味維度的Gradle依賴
