[Android] FAILURE: Build failed with an exception.

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
User avatar
DragoonHP
Miko-Class Veteran
Posts: 751
Joined: Tue Jun 22, 2010 12:54 am
Completed: Christmas
IRC Nick: DragoonHP
Location: Zion Island, Solario
Contact:

[Android] FAILURE: Build failed with an exception.

#1 Post by DragoonHP » Sun May 02, 2021 11:30 am

I keep getting this trace report.

Code: Select all

Could not determine the dependencies of task ':app:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':app:debugRuntimeClasspath'.
   > Could not resolve com.danikula.expansion:expansion:1.3.4.
     Required by:
         project :app > project :renpyandroid
      > Could not resolve com.danikula.expansion:expansion:1.3.4.
         > Could not get resource 'https://dl.bintray.com/alexeydanilov/apk-expansion/com/danikula/expansion/expansion/1.3.4/expansion-1.3.4.pom'.
            > Could not GET 'https://dl.bintray.com/alexeydanilov/apk-expansion/com/danikula/expansion/expansion/1.3.4/expansion-1.3.4.pom'. Received status code 403 from server: Forbidden
   > Could not resolve com.danikula.expansion:license:1.7.0.
     Required by:
         project :app > project :renpyandroid
      > Could not resolve com.danikula.expansion:license:1.7.0.
         > Could not get resource 'https://dl.bintray.com/alexeydanilov/apk-expansion/com/danikula/expansion/license/1.7.0/license-1.7.0.pom'.
            > Could not GET 'https://dl.bintray.com/alexeydanilov/apk-expansion/com/danikula/expansion/license/1.7.0/license-1.7.0.pom'. Received status code 403 from server: Forbidden
   > Could not resolve com.danikula.expansion:zip:1.2.1.
     Required by:
         project :app > project :renpyandroid
      > Could not resolve com.danikula.expansion:zip:1.2.1.
         > Could not get resource 'https://dl.bintray.com/alexeydanilov/apk-expansion/com/danikula/expansion/zip/1.2.1/zip-1.2.1.pom'.
            > Could not GET 'https://dl.bintray.com/alexeydanilov/apk-expansion/com/danikula/expansion/zip/1.2.1/zip-1.2.1.pom'. Received status code 403 from server: Forbidden
Anyone have any idea why?

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3413
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: [Android] FAILURE: Build failed with an exception.

#2 Post by Imperf3kt » Sun May 02, 2021 5:16 pm

403 forbidden means you're trying to access a file you don't have permission to access.

Judging by the log, rapt is trying to download an apk extension, is this something you added? If not, it may simply be that the repository hosting the file is down for maintenance, though as far as I was aware, you don't need to download anything to build an apk, at least not once you've installed rapt and it's dependencies.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
Latest Blackjack updates

User avatar
DragoonHP
Miko-Class Veteran
Posts: 751
Joined: Tue Jun 22, 2010 12:54 am
Completed: Christmas
IRC Nick: DragoonHP
Location: Zion Island, Solario
Contact:

Re: [Android] FAILURE: Build failed with an exception.

#3 Post by DragoonHP » Mon May 03, 2021 2:38 am

I didn't add any dependencies and the bintray.com webiste is going down in June that's why it's returning 403.

I think the first time you build a project, Ren'Py downloads some extension.

User avatar
DragoonHP
Miko-Class Veteran
Posts: 751
Joined: Tue Jun 22, 2010 12:54 am
Completed: Christmas
IRC Nick: DragoonHP
Location: Zion Island, Solario
Contact:

Re: [Android] FAILURE: Build failed with an exception.

#4 Post by DragoonHP » Mon May 03, 2021 5:24 am

These three expansion files are defined in build.gradle so they are needed by rapt

User avatar
damonRuru
Newbie
Posts: 20
Joined: Sun Oct 14, 2018 12:31 pm
Contact:

Re: [Android] FAILURE: Build failed with an exception.

#5 Post by damonRuru » Mon May 03, 2021 5:27 am

Oh we have the same problem :O
This also keep happening to me after i updated my renpy and redownload rapt.
Before, i can build android version of my game easily.
I am lurking behind every corner of the world just to seek one special spice for my life.

HimikoS
Newbie
Posts: 1
Joined: Mon May 03, 2021 8:33 am
Contact:

Re: [Android] FAILURE: Build failed with an exception.

#6 Post by HimikoS » Mon May 03, 2021 8:38 am

I have the same problem, any solution?

User avatar
mavyxdawn
Regular
Posts: 68
Joined: Sun Dec 20, 2015 6:18 pm
Github: mavyxdawn
itch: zeillearnings
Discord: Zeil#4950
Contact:

Re: [Android] FAILURE: Build failed with an exception.

#7 Post by mavyxdawn » Tue May 04, 2021 9:12 am

Hi! We had a discussion in Reddit if you need more information:
https://www.reddit.com/r/RenPy/comments ... ?context=3

We also contacted the devs in GitHub: https://github.com/renpy/renpy/issues/2792
Please comment on the GitHub link if you can provide any additional info that could help. The log file can be found in "Renpy/tmp/<your_renpy_game_title>/android.txt".
YouTube: Zeil Learnings
itch.io: Zeil Learnings

Image

Post Reply

Who is online

Users browsing this forum: Bing [Bot], blewbyboy, Google [Bot], Human Bolt Diary, Shinlocke