0
votes

I have a problem in Android Studio when trying to run the project, I get this error

FAILURE: Build failed with an exception.

What went wrong: A problem occurred configuring root project 'android'.

Could not resolve all artifacts for configuration ':classpath'. Could not download builder.jar (com.android.tools.build:builder:3.5.0) Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/3.5.0/builder-3.5.0.jar'. Premature end of Content-Length delimited message body (expected: 8174407; received: 4456416 Could not download bundletool.jar (com.android.tools.build:bundletool:0.9.0) Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/bundletool/0.9.0/bundletool-0.9.0.jar'. Premature end of Content-Length delimited message body (expected: 5248142; received: 4456416

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 19m 23s Finished with error: Gradle task assembleDebug failed with exit code 1

1
The error sounds like a temporary networking problem. Could you try again? - halfer
I have tried it atleast 5 times. trying it for last 5 days but still showing same error - Grb
OK. I am not familiar with Android development, but I doubt there is enough information here for readers to help you. Could you edit your question to include the file that specifies your project dependencies? - halfer
Possible similar problem - one respondent says they are using a VPN. Are you using a VPN to connect to the internet? - halfer

1 Answers

-1
votes

Yes. Its a VPN issue. Please disconnect VPN and try, it worked for me.