Page 1 of 1

Error while building an apk for Android

Posted: Mon Jul 16, 2018 3:17 am
by Doogy
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

Re: Error while building an apk for Android

Posted: Sun Jul 29, 2018 9:35 am
by Doogy
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.

Re: Error while building an apk for Android

Posted: Mon Aug 06, 2018 12:06 am
by PyTom
My guess is you have a weird character in your game name, like a ", <. or &.