Can't build Android distributions

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
Keinart
Regular
Posts: 133
Joined: Sun May 13, 2012 8:28 pm
Completed: One Thousand Lies
Projects: Lotus Reverie
Organization: Keinart Lobre
Tumblr: keinart
itch: keinart
Location: Spain
Contact:

Can't build Android distributions

#1 Post by Keinart » Wed Oct 28, 2015 3:06 am

So I just decided to start trying how my project would look on android but I can't build the package. After trying some stuff I just tried to do the same with the question or the tutorial but it seems it can't create anything with them either. What's going on?

When using my project I get this from a file named android.txt:

Code: Select all

Updating source code.

Updating build files.
Resolved location of library project to: D:\Design\Renpy\renpy-6.18.3-sdk\rapt\android-sdk-r23\extras\google\play_apk_expansion\downloader_library
Updated and renamed default.properties to project.properties
Updated local.properties
Added file D:\Design\Renpy\renpy-6.18.3-sdk\rapt\build.xml
Updated file D:\Design\Renpy\renpy-6.18.3-sdk\rapt\proguard-project.txt




Creating assets directory.

Creating expansion file.

Packaging internal data.

I'm using Ant to build the package.
Buildfile: D:\Design\Renpy\renpy-6.18.3-sdk\rapt\build.xml
  [taskdef] Could not load definitions from resource emma_ant.properties. It could not be found.

-set-mode-check:

-set-release-mode:

-release-obfuscation-check:
     [echo] proguard.config is ${proguard.config}

-pre-build:

-check-env:
 [checkenv] Android SDK Tools Revision 23.0.0
 [checkenv] Installed at D:\Design\Renpy\renpy-6.18.3-sdk\rapt\android-sdk-r23

-setup:
     [echo] Project Name: onethousand-0.1
  [gettype] Project Type: Application

-build-setup:
[getbuildtools] Using latest Build Tools: 20.0.0
     [echo] Resolving Build Target for onethousand-0.1...
[gettarget] Project Target:   Android 4.4.2
[gettarget] API level:        19
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: D:\Design\Renpy\renpy-6.18.3-sdk\rapt\bin\res
    [mkdir] Created dir: D:\Design\Renpy\renpy-6.18.3-sdk\rapt\bin\rsObj
    [mkdir] Created dir: D:\Design\Renpy\renpy-6.18.3-sdk\rapt\bin\rsLibs
    [mkdir] Created dir: D:\Design\Renpy\renpy-6.18.3-sdk\rapt\gen
    [mkdir] Created dir: D:\Design\Renpy\renpy-6.18.3-sdk\rapt\bin\classes
    [mkdir] Created dir: D:\Design\Renpy\renpy-6.18.3-sdk\rapt\bin\dexedLibs
     [echo] ----------
     [echo] Resolving Dependencies for onethousand-0.1...
[dependency] Library dependencies:
[dependency] 
[dependency] ------------------
[dependency] Ordered libraries:
[dependency] 
[dependency] ------------------
     [echo] ----------
     [echo] Building Libraries with 'release'...

BUILD FAILED
D:\Design\Renpy\renpy-6.18.3-sdk\rapt\android-sdk-r23\tools\ant\build.xml:601: The following error occurred while executing this line:
D:\Design\Renpy\renpy-6.18.3-sdk\rapt\android-sdk-r23\extras\google\play_licensing\library\build.xml:90: Cannot find D:\Diseño\Renpy\renpy-6.18.3-sdk\rapt\android-sdk-r23\tools\ant\build.xml imported from D:\Design\Renpy\renpy-6.18.3-sdk\rapt\android-sdk-r23\extras\google\play_licensing\library\build.xml

Total time: 0 seconds




The build seems to have failed.
With the tutorial or the question I get this from the traceback:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/android.rpy", line 462, in script
  File "game/android.rpy", line 462, in <module>
  File "game/android.rpy", line 213, in android_build
  File "game/distribute.rpy", line 490, in __init__
  File "game/distribute.rpy", line 904, in make_package
IOError: [Errno 2] No such file or directory: u'D:\\Design\\Renpy\\renpy-6.18.3-sdk\\tutorial-1.0-dists\\tutorial-1.0-android.update.json'

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "game/android.rpy", line 462, in script
  File "D:\Design\Renpy\renpy-6.18.3-sdk\renpy\ast.py", line 797, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "D:\Design\Renpy\renpy-6.18.3-sdk\renpy\python.py", line 1448, in py_exec_bytecode
    exec bytecode in globals, locals
  File "game/android.rpy", line 462, in <module>
  File "game/android.rpy", line 213, in android_build
  File "game/distribute.rpy", line 490, in __init__
  File "game/distribute.rpy", line 904, in make_package
IOError: [Errno 2] No such file or directory: u'D:\\Design\\Renpy\\renpy-6.18.3-sdk\\tutorial-1.0-dists\\tutorial-1.0-android.update.json'

Windows-7-6.1.7601-SP1
Ren'Py 6.99.6.739
Ren'Py Launcher 6.99.6.739

User avatar
Keinart
Regular
Posts: 133
Joined: Sun May 13, 2012 8:28 pm
Completed: One Thousand Lies
Projects: Lotus Reverie
Organization: Keinart Lobre
Tumblr: keinart
itch: keinart
Location: Spain
Contact:

Re: Can't build Android distributions

#2 Post by Keinart » Wed Oct 28, 2015 6:28 pm

So I updated today new build of renpy and now it's working fine, I have no idea what was going on but I guess Tom already knew what was the issue about and fixed it.

Post Reply

Who is online

Users browsing this forum: No registered users