Error while building an apk for Android

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
Doogy
Newbie
Posts: 14
Joined: Wed Aug 19, 2009 9:52 am
Location: Rennes [France]
Contact:

Error while building an apk for Android

#1 Post by Doogy » Mon Jul 16, 2018 3:17 am

Hi,
I am trying to build an apk of my game and here is the error I get, can someone help me ?
Could it be because I use an external python module (yaml) ?

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/android.rpy", line 472, in <module>
  File "game/android.rpy", line 268, in android_build
  File "game/mobilebuild.rpy", line 209, in call
  File "game/mobilebuild.rpy", line 228, in check_process
CalledProcessError: Command '['E:\\Dev\\Renpy\\renpy-7.0.0-sdk\\rapt\\android-sdk-r24.4.1\\tools\\android.bat', 'update', 'project', '-p', '.', '-t', 'android-22', '-n', 'MyGame', '--library', 'extras/google/market_apk_expansion/downloader_library']' returned non-zero exit status 1

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

Full traceback:
  File "launcher/game/android.rpyc", line 472, in script
  File "E:\Dev\Renpy\renpy-7.0.0-sdk\renpy\ast.py", line 862, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "E:\Dev\Renpy\renpy-7.0.0-sdk\renpy\python.py", line 1912, in py_exec_bytecode
    exec bytecode in globals, locals
  File "game/android.rpy", line 472, in <module>
  File "game/android.rpy", line 268, in android_build
  File "E:\Dev\Renpy\renpy-7.0.0-sdk\rapt\buildlib\rapt\build.py", line 498, in build
    "--library", plat.path("extras/google/market_apk_expansion/downloader_library", relative=True),
  File "game/mobilebuild.rpy", line 209, in call
  File "E:\Dev\Renpy\renpy-7.0.0-sdk\renpy\exports.py", line 2710, in call_screen
    rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
  File "E:\Dev\Renpy\renpy-7.0.0-sdk\renpy\ui.py", line 287, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "E:\Dev\Renpy\renpy-7.0.0-sdk\renpy\display\core.py", line 2649, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, **kwargs)
  File "E:\Dev\Renpy\renpy-7.0.0-sdk\renpy\display\core.py", line 3451, in interact_core
    rv = root_widget.event(ev, x, y, 0)
  File "E:\Dev\Renpy\renpy-7.0.0-sdk\renpy\display\layout.py", line 992, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "E:\Dev\Renpy\renpy-7.0.0-sdk\renpy\display\layout.py", line 992, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "E:\Dev\Renpy\renpy-7.0.0-sdk\renpy\display\layout.py", line 992, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "E:\Dev\Renpy\renpy-7.0.0-sdk\renpy\display\screen.py", line 697, in event
    rv = self.child.event(ev, x, y, st)
  File "E:\Dev\Renpy\renpy-7.0.0-sdk\renpy\display\layout.py", line 992, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "E:\Dev\Renpy\renpy-7.0.0-sdk\renpy\display\behavior.py", line 1993, in event
    return run(self.function, *self.args, **self.kwargs)
  File "E:\Dev\Renpy\renpy-7.0.0-sdk\renpy\display\behavior.py", line 315, in run
    return action(*args, **kwargs)
  File "game/mobilebuild.rpy", line 228, in check_process
CalledProcessError: Command '['E:\\Dev\\Renpy\\renpy-7.0.0-sdk\\rapt\\android-sdk-r24.4.1\\tools\\android.bat', 'update', 'project', '-p', '.', '-t', 'android-22', '-n', 'MyGame', '--library', 'extras/google/market_apk_expansion/downloader_library']' returned non-zero exit status 1

Windows-7-6.1.7601-SP1
Ren'Py 7.0.0.196
Ren'Py Launcher 7.0.0.196
Mon Jul 16 09:04:37 2018
Sorry for my english, i am french.

User avatar
Doogy
Newbie
Posts: 14
Joined: Wed Aug 19, 2009 9:52 am
Location: Rennes [France]
Contact:

Re: Error while building an apk for Android

#2 Post by Doogy » Sun Jul 29, 2018 9:35 am

I have mor information on my error :

Code: Select all

-code-gen:
[mergemanifest] Found Deleted Target File
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
     [echo] Handling aidl files...
     [aidl] Found 1 AIDL files.
     [aidl] Compiling 1 AIDL files.
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...
     [aapt] Generating resource IDs...
     [aapt] F:\Dev\Renpy\renpy-7.0.0-sdk\rapt\res\values\strings.xml:3: error: Error parsing XML: not well-formed (invalid token)
     [aapt] 
     [aapt] F:\Dev\Renpy\renpy-7.0.0-sdk\rapt\res\layout\downloader.xml:88: error: Error: No resource found that matches the given name (at 'text' with value '@string/text_button_pause').
     [aapt] 
     [aapt] F:\Dev\Renpy\renpy-7.0.0-sdk\rapt\res\layout\downloader.xml:102: error: Error: No resource found that matches the given name (at 'text' with value '@string/text_button_cancel').
     [aapt] 
     [aapt] F:\Dev\Renpy\renpy-7.0.0-sdk\rapt\res\layout\downloader.xml:128: error: Error: No resource found that matches the given name (at 'text' with value '@string/text_paused_cellular').
     [aapt] 
     [aapt] F:\Dev\Renpy\renpy-7.0.0-sdk\rapt\res\layout\downloader.xml:135: error: Error: No resource found that matches the given name (at 'text' with value '@string/text_paused_cellular_2').
     [aapt] 
     [aapt] F:\Dev\Renpy\renpy-7.0.0-sdk\rapt\res\layout\downloader.xml:148: error: Error: No resource found that matches the given name (at 'text' with value '@string/text_button_resume_cellular').
     [aapt] 
     [aapt] F:\Dev\Renpy\renpy-7.0.0-sdk\rapt\res\layout\downloader.xml:156: error: Error: No resource found that matches the given name (at 'text' with value '@string/text_button_wifi_settings').
     [aapt] 

BUILD FAILED
F:\Dev\Renpy\renpy-7.0.0-sdk\rapt\android-sdk-r24.4.1\tools\ant\build.xml:649: The following error occurred while executing this line:
F:\Dev\Renpy\renpy-7.0.0-sdk\rapt\android-sdk-r24.4.1\tools\ant\build.xml:694: null returned: 1

Total time: 9 seconds




The build seems to have failed.
Sorry for my english, i am french.

User avatar
PyTom
Ren'Py Creator
Posts: 15224
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: Error while building an apk for Android

#3 Post by PyTom » Mon Aug 06, 2018 12:06 am

My guess is you have a weird character in your game name, like a ", <. or &.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: No registered users