Page 1 of 1

[Android] FAILURE: Build failed with an exception.

Posted: Sun May 02, 2021 11:30 am
by DragoonHP
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?

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

Posted: Sun May 02, 2021 5:16 pm
by Imperf3kt
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.

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

Posted: Mon May 03, 2021 2:38 am
by DragoonHP
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.

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

Posted: Mon May 03, 2021 5:24 am
by DragoonHP
These three expansion files are defined in build.gradle so they are needed by rapt

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

Posted: Mon May 03, 2021 5:27 am
by damonRuru
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.

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

Posted: Mon May 03, 2021 8:38 am
by HimikoS
I have the same problem, any solution?

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

Posted: Tue May 04, 2021 9:12 am
by mavyxdawn
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".