FAILURE: Build failed with an exception. * Where: Build file 'C:\Users\HP\AndroidStudioProjects\Plant-App-Flutter-UI\android\app\build.gradle'

Viewed 692

FAILURE: Build failed with an exception.

  • Where: Build file 'C:\Users\HP\AndroidStudioProjects\Plant-App-Flutter-UI\android\app\build.gradle' line: 26

  • What went wrong: A problem occurred evaluating project ':app'.

Could not resolve all artifacts for configuration 'classpath'. Could not resolve org.glassfish.jaxb:txw2:2.3.1. Required by: unspecified:unspecified:unspecified > com.android.tools.build:gradle:4.1.0 > androidx.databinding:databinding-compiler-common:4.1.0 > org.glassfish.jaxb:jaxb-runtime:2.3.1 > Could not resolve org.glassfish.jaxb:txw2:2.3.1. > Could not get resource 'https://jcenter.bintray.com/org/glassfish/jaxb/txw2/2.3.1/txw2-2.3.1.pom'. > Could not GET 'https://jcenter.bintray.com/org/glassfish/jaxb/txw2/2.3.1/txw2-2.3.1.pom'. > java.net.SocketException: Connection reset

  • 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 2m 38s Exception: Gradle task assembleDebug failed with exit code 1

0 Answers
Related