Build error building revolution-irc

Hello, I’m trying to build: revolution-irc

I get the following error:

$ /snap/bin/gradle tasks

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'revolution-irc'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not resolve com.android.tools.build:gradle:4.0.2.
     Required by:
         project :
         project : > project :ircSettingsPlugin
      > Could not resolve com.android.tools.build:gradle:4.0.2.
         > Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/4.0.2/gradle-4.0.2.pom'.
            > java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
      > Could not resolve com.android.tools.build:gradle:4.0.2.
         > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/4.0.2/gradle-4.0.2.pom'.
            > java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
   > Could not resolve org.yaml:snakeyaml:1.23.
     Required by:
         project : > project :ircSettingsPlugin
      > Could not resolve org.yaml:snakeyaml:1.23.
         > Could not get resource 'https://jcenter.bintray.com/org/yaml/snakeyaml/1.23/snakeyaml-1.23.pom'.
            > java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
      > Could not resolve org.yaml:snakeyaml:1.23.
         > Could not get resource 'https://dl.google.com/dl/android/maven2/org/yaml/snakeyaml/1.23/snakeyaml-1.23.pom'.
            > java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
   > Could not resolve com.squareup:javawriter:2.5.1.
     Required by:
         project : > project :ircSettingsPlugin
      > Could not resolve com.squareup:javawriter:2.5.1.
         > Could not get resource 'https://jcenter.bintray.com/com/squareup/javawriter/2.5.1/javawriter-2.5.1.pom'.
            > java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
      > Could not resolve com.squareup:javawriter:2.5.1.
         > Could not get resource 'https://dl.google.com/dl/android/maven2/com/squareup/javawriter/2.5.1/javawriter-2.5.1.pom'.
            > java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)

* 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.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1s

I’m new to this, not sure what to do… any tips welcome.
Thanks

Besides that you should never use gradle to run a Gradle build, but always gradlew to make sure the build is run with the correct Gradle version (you don’t even need Gradle installed), your error looks to me like the Java you use to run the build is somehow corrupt / broken. Try a different Java installation it reinstall it.

Ah, thanks for the tip. I had to use:

$ ANDROID_SDK_ROOT=/usr/lib/android-sdk ./gradlew tasks

And now it looks better.

1 Like