could not resolve com.android.tools.build:gradle:4.0.1

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Yuvan raj
Regular
Posts: 38
Joined: Wed Feb 17, 2021 11:24 am
Contact:

could not resolve com.android.tools.build:gradle:4.0.1

#1 Post by Yuvan raj »

Hello guys, I've spent the whole day trying to build an android application. After several errors I finally got the Build package option. But when I click on it, it takes some time for processing then says "Error The build seems to have failed". And I also get the below log in my atom editor.

Code: Select all

Renpy 7.6.0.23051307

Updating project.

Creating assets directory.

Packaging internal data.

I'm using Gradle to build the package.
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/6.1.1/userguide/gradle_daemon. html.
Daemon will be stopped at the end of the build stopping after processing

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project ‘app’.
> Could not resolve all artifacts for configuration *:classpath’.
   > Could not resolve com.android.tools.build:gradle:4.0.1.
     Required by:
         project :
      > Could not resolve com.android.tools.build:gradle:4.0.1.
         > Could not get resource "http://dl.google. con/dl/android/maven2/com/android/tools/build/gradle/4.0.1/gradle-4.0.1.pom'.
            > java.io.IOException: The process cannot access the file because another process has locked a portion of the file

* 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 15s




The build seems to have failed.

Can anyone please help me? I'm still in windows 8.1 if that helps..

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: could not resolve com.android.tools.build:gradle:4.0.1

#2 Post by PyTom »

I'd suggest rebooting to clear the lock.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: No registered users