Home > Mobile >  I have downloaded the latest version of Gradle 7.3 that I would like to use in my Visual studio proj
I have downloaded the latest version of Gradle 7.3 that I would like to use in my Visual studio proj

Time:11-16

I double checked to see if I have it installed..

Gradle 7.3

so that's fine.. the problem comes when I enter the command gradle --daemon

I get this error

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

I tried using sudo gradle --daemon.. still gives me the same error.. what should I try next?

CodePudding user response:

As we discussed in comments , you ll need VPN but not any VPN .

You have to know what port your vpn is working on .

for example , if you downloaded psiphone , you can go to settings , then local proxy ports and you can add 12345 as port for example .

then you need to go to .gradle folder , if your using windows its usually located at USER/%USERNAME%/.gradle , and create a global gradle.properties and then add the following .

systemProp.http.proxyHost=127.0.0.1
systemProp.http.proxyPort=12345
systemProp.https.proxyHost=127.0.0.1
systemProp.https.proxyPort=12345

This will redirect all gradle connection throw your proxy , in the case psiphone for example.

  • Related