Android Build: CalledProcessError

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
K0torisan
Regular
Posts: 26
Joined: Fri Feb 16, 2018 10:21 pm
Contact:

Android Build: CalledProcessError

#1 Post by K0torisan »

I'm trying to do an Android build for my game, but I got this error. I honestly have no idea what's wrong - I'm terrible with this sort of thing.

I tried uninstalling/reinstalling renpy and RAPT, and that didn't work.
Any help?

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/android.rpy", line 462, in <module>
  File "game/mobilebuild.rpy", line 210, in call
  File "game/mobilebuild.rpy", line 229, in check_process
CalledProcessError: Command '['java', '-classpath', '/Users/kotorisan/Desktop/renpy-7.1.3-sdk/rapt/buildlib', 'CheckJDK8']' returned non-zero exit status 1

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

Full traceback:
  File "launcher/game/android.rpyc", line 460, in script
  File "/Users/kotorisan/Desktop/renpy-7.1.3-sdk/renpy/ast.py", line 881, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "/Users/kotorisan/Desktop/renpy-7.1.3-sdk/renpy/python.py", line 1913, in py_exec_bytecode
    exec bytecode in globals, locals
  File "game/android.rpy", line 462, in <module>
  File "/Users/kotorisan/Desktop/renpy-7.1.3-sdk/rapt/buildlib/rapt/install_sdk.py", line 234, in install_sdk
    check_java(interface)
  File "/Users/kotorisan/Desktop/renpy-7.1.3-sdk/rapt/buildlib/rapt/install_sdk.py", line 50, in check_java
    if not run_slow(interface, plat.java, "-classpath", plat.path("buildlib"), "CheckJDK8", use_path=True):
  File "/Users/kotorisan/Desktop/renpy-7.1.3-sdk/rapt/buildlib/rapt/install_sdk.py", line 35, in run_slow
    interface.call(args, cancel=True, **kwargs)
  File "game/mobilebuild.rpy", line 210, in call
  File "/Users/kotorisan/Desktop/renpy-7.1.3-sdk/renpy/exports.py", line 2755, in call_screen
    rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
  File "/Users/kotorisan/Desktop/renpy-7.1.3-sdk/renpy/ui.py", line 289, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "/Users/kotorisan/Desktop/renpy-7.1.3-sdk/renpy/display/core.py", line 2672, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, **kwargs)
  File "/Users/kotorisan/Desktop/renpy-7.1.3-sdk/renpy/display/core.py", line 3477, in interact_core
    rv = root_widget.event(ev, x, y, 0)
  File "/Users/kotorisan/Desktop/renpy-7.1.3-sdk/renpy/display/layout.py", line 998, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "/Users/kotorisan/Desktop/renpy-7.1.3-sdk/renpy/display/layout.py", line 998, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "/Users/kotorisan/Desktop/renpy-7.1.3-sdk/renpy/display/layout.py", line 998, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "/Users/kotorisan/Desktop/renpy-7.1.3-sdk/renpy/display/screen.py", line 697, in event
    rv = self.child.event(ev, x, y, st)
  File "/Users/kotorisan/Desktop/renpy-7.1.3-sdk/renpy/display/layout.py", line 998, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "/Users/kotorisan/Desktop/renpy-7.1.3-sdk/renpy/display/behavior.py", line 2000, in event
    return run(self.function, *self.args, **self.kwargs)
  File "/Users/kotorisan/Desktop/renpy-7.1.3-sdk/renpy/display/behavior.py", line 315, in run
    return action(*args, **kwargs)
  File "game/mobilebuild.rpy", line 229, in check_process
CalledProcessError: Command '['java', '-classpath', '/Users/kotorisan/Desktop/renpy-7.1.3-sdk/rapt/buildlib', 'CheckJDK8']' returned non-zero exit status 1

Darwin-14.5.0-x86_64-i386-64bit
Ren'Py 7.1.3.1092
Ren'Py Launcher 7.1.3.1092
Sun Nov 25 19:21:16 2018
Last edited by K0torisan on Tue Nov 27, 2018 10:21 pm, edited 1 time in total.

K0torisan
Regular
Posts: 26
Joined: Fri Feb 16, 2018 10:21 pm
Contact:

Re: Trying to do an Android Build... what is this error?

#2 Post by K0torisan »

Just as clarification, this error appears after I select "Install SDK & Create Keys" and right after the launcher says that it is running a test program to see if I have a JDK program, which I have already installed.

Also, this happens on every single project in Ren'py, even the Tutorial/test game.

User avatar
PyTom
Ren'Py Creator
Posts: 16088
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: Android Build: CalledProcessError

#3 Post by PyTom »

Make sure you have Java 8 installed such that it run when you run Java.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

K0torisan
Regular
Posts: 26
Joined: Fri Feb 16, 2018 10:21 pm
Contact:

Re: Android Build: CalledProcessError

#4 Post by K0torisan »

Yes, I have Java 8.

mameshiba
Newbie
Posts: 20
Joined: Fri Jan 19, 2018 6:10 pm
Contact:

Re: Android Build: CalledProcessError

#5 Post by mameshiba »

I have the same issue. :(

K0torisan
Regular
Posts: 26
Joined: Fri Feb 16, 2018 10:21 pm
Contact:

Re: Android Build: CalledProcessError

#6 Post by K0torisan »

Mameshiba, is it the exact same error? Post your traceback/error message here as well! Someone might be able to make sense of it :(

mameshiba
Newbie
Posts: 20
Joined: Fri Jan 19, 2018 6:10 pm
Contact:

Re: Android Build: CalledProcessError

#7 Post by mameshiba »

The first few lines are indentical as far as I can see - I'm not sure about the rest!

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/android.rpy", line 462, in <module>
  File "game/mobilebuild.rpy", line 210, in call
  File "game/mobilebuild.rpy", line 229, in check_process
CalledProcessError: Command '['java', '-classpath', '/Users/mameshiba/Documents/RenPy/renpy-7.1.3-sdk/rapt/buildlib', 'CheckJDK8']' returned non-zero exit status 1

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

Full traceback:
  File "launcher/game/android.rpyc", line 460, in script
  File "/Users/mameshiba/Documents/RenPy/renpy-7.1.3-sdk/renpy/ast.py", line 881, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "/Users/mameshiba/Documents/RenPy/renpy-7.1.3-sdk/renpy/python.py", line 1913, in py_exec_bytecode
    exec bytecode in globals, locals
  File "game/android.rpy", line 462, in <module>
  File "/Users/mameshiba/Documents/RenPy/renpy-7.1.3-sdk/rapt/buildlib/rapt/install_sdk.py", line 234, in install_sdk
    check_java(interface)
  File "/Users/mameshiba/Documents/RenPy/renpy-7.1.3-sdk/rapt/buildlib/rapt/install_sdk.py", line 50, in check_java
    if not run_slow(interface, plat.java, "-classpath", plat.path("buildlib"), "CheckJDK8", use_path=True):
  File "/Users/mameshiba/Documents/RenPy/renpy-7.1.3-sdk/rapt/buildlib/rapt/install_sdk.py", line 35, in run_slow
    interface.call(args, cancel=True, **kwargs)
  File "game/mobilebuild.rpy", line 210, in call
  File "/Users/mameshiba/Documents/RenPy/renpy-7.1.3-sdk/renpy/exports.py", line 2755, in call_screen
    rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
  File "/Users/mameshiba/Documents/RenPy/renpy-7.1.3-sdk/renpy/ui.py", line 289, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "/Users/mameshiba/Documents/RenPy/renpy-7.1.3-sdk/renpy/display/core.py", line 2672, in interact
    repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, **kwargs)
  File "/Users/mameshiba/Documents/RenPy/renpy-7.1.3-sdk/renpy/display/core.py", line 3477, in interact_core
    rv = root_widget.event(ev, x, y, 0)
  File "/Users/mameshiba/Documents/RenPy/renpy-7.1.3-sdk/renpy/display/layout.py", line 998, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "/Users/mameshiba/Documents/RenPy/renpy-7.1.3-sdk/renpy/display/layout.py", line 998, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "/Users/mameshiba/Documents/RenPy/renpy-7.1.3-sdk/renpy/display/layout.py", line 998, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "/Users/mameshiba/Documents/RenPy/renpy-7.1.3-sdk/renpy/display/screen.py", line 697, in event
    rv = self.child.event(ev, x, y, st)
  File "/Users/mameshiba/Documents/RenPy/renpy-7.1.3-sdk/renpy/display/layout.py", line 998, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "/Users/mameshiba/Documents/RenPy/renpy-7.1.3-sdk/renpy/display/behavior.py", line 2000, in event
    return run(self.function, *self.args, **self.kwargs)
  File "/Users/mameshiba/Documents/RenPy/renpy-7.1.3-sdk/renpy/display/behavior.py", line 315, in run
    return action(*args, **kwargs)
  File "game/mobilebuild.rpy", line 229, in check_process
CalledProcessError: Command '['java', '-classpath', '/Users/mameshiba/Documents/RenPy/renpy-7.1.3-sdk/rapt/buildlib', 'CheckJDK8']' returned non-zero exit status 1

Darwin-14.5.0-x86_64-i386-64bit
Ren'Py 7.1.3.1092
Ren'Py Launcher 7.1.3.1092
Fri Dec  7 14:48:30 2018

K0torisan
Regular
Posts: 26
Joined: Fri Feb 16, 2018 10:21 pm
Contact:

Re: Android Build: CalledProcessError

#8 Post by K0torisan »

Loathe as I am to bump a post, the launch date of my game is approaching, and I still can't work out a solution.
Also, the same error message has happened to someone else.

Not sure if it's relevant, but it looks like both of us are working off macOS, so I wonder if any other Mac users are getting the same problem (or not??).

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

Re: Android Build: CalledProcessError

#9 Post by Imperf3kt »

As best I can tell (and this is a complete guess), do you have a 64bit version of the Java development kit installed? Version 8 is required.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
PyTom
Ren'Py Creator
Posts: 16088
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: Android Build: CalledProcessError

#10 Post by PyTom »

I got pinged about this thread. This is the error you'd get if you don't have a 64-bit version of JDK 8 installed. (It is quite possible that you have a newer version of Java.)
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

K0torisan
Regular
Posts: 26
Joined: Fri Feb 16, 2018 10:21 pm
Contact:

Re: Android Build: CalledProcessError

#11 Post by K0torisan »

So... I thought (think???) that I did have the 64bit version downloaded, but let me add some screenshots of what I can see/have done on my end. It's possible (very possible) that I'm doing something really stupid and missing something obvious. :lol:

First, I followed the link provided here to get to the development kit.

This is what I downloaded and installed:
Image

And this is the information I pulled up on the Control Panel to list the version:
Image

Also, I tried update 192 and same error.
Also, again, sorry for all the problems.

mameshiba
Newbie
Posts: 20
Joined: Fri Jan 19, 2018 6:10 pm
Contact:

Re: Android Build: CalledProcessError

#12 Post by mameshiba »

I used my friend's PC, and I didn't have this issue. It's possible this is a Mac-only issue?

Jene
Newbie
Posts: 1
Joined: Tue Jul 12, 2022 6:31 am
Contact:

Re: Android Build: CalledProcessError

#13 Post by Jene »

I'm a little late I think. But, this error can have following causes :
1 Didn't install JDK at all
2 Installed wrong version
3 You've installed more than one version and because of that the path of JAVA_HOME is not set to the location of correct version that is JDK 8
I had the same problem. And in my case it was 3.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]