An exception has occurred - Installing SDK

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
420futa
Newbie
Posts: 1
Joined: Wed Jul 20, 2022 3:53 pm
Contact:

An exception has occurred - Installing SDK

#1 Post by 420futa » Wed Jul 20, 2022 3:57 pm

Trying to install SDK to make an adroid game and got this. Ive reinstalled, but no luck. Any ideas on what's going on here?

```
I'm sorry, but an uncaught exception occurred.

While running game code:
File "game/android.rpy", line 507, in <module>
File "game/mobilebuild.rpy", line 198, in call
FileNotFoundError: [WinError 2] The system cannot find the file specified

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

Full traceback:
File "launcher/game/android.rpyc", line 505, in script
File "C:\Users\rgran\Desktop\RenPy\renpy-8.0.1-sdk\renpy\ast.py", line 1131, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "C:\Users\rgran\Desktop\RenPy\renpy-8.0.1-sdk\renpy\python.py", line 1049, in py_exec_bytecode
exec(bytecode, globals, locals)
File "game/android.rpy", line 507, in <module>
File "C:\Users\rgran\Desktop\RenPy\renpy-8.0.1-sdk\rapt\buildlib\rapt\install_sdk.py", line 356, in install_sdk
check_java(interface)
File "C:\Users\rgran\Desktop\RenPy\renpy-8.0.1-sdk\rapt\buildlib\rapt\install_sdk.py", line 52, in check_java
if not run_slow(interface, plat.javac, plat.path("buildlib/CheckJDK8.java"), use_path=True):
File "C:\Users\rgran\Desktop\RenPy\renpy-8.0.1-sdk\rapt\buildlib\rapt\install_sdk.py", line 37, in run_slow
interface.call(args, cancel=True, **kwargs)
File "game/mobilebuild.rpy", line 198, in call
File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python3.9/subprocess.py", line 951, in __init__
File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python3.9/subprocess.py", line 1420, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified

Windows-10-10.0.19043 AMD64
Ren'Py 8.0.1.22070801
Ren'Py Launcher 8.0.1.22070801
Wed Jul 20 09:56:18 2022
```

User avatar
PyTom
Ren'Py Creator
Posts: 15893
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: An exception has occurred - Installing SDK

#2 Post by PyTom » Thu Jul 21, 2022 1:32 am

It looks like either Java is installed incorrectly, or rapt didn't download properly.
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