I can't build the android version.

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
Kaind1337
Newbie
Posts: 1
Joined: Sun Mar 10, 2024 8:34 am
Contact:

I can't build the android version.

#1 Post by Kaind1337 »

Good afternoon!
I'm trying to build an android version of my game. There were no problems with the last version. But now I get this error and I don't know what to do. I uninstalled and reinstalled rapt, but no result.


Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/android.rpy", line 523, in <module>
  File "game/android.rpy", line 222, in android_build
WindowsError: [Error 5] : u'E:\\renpy\\renpy-7.4.11-sdk\\tmp\\New_Tail_Beta\\android.dist\\assets\\game\\audio'

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

Full traceback:
  File "launcher/game/android.rpyc", line 523, in script
  File "renpy/ast.py", line 928, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "renpy/python.py", line 2245, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/android.rpy", line 523, in <module>
  File "game/android.rpy", line 222, in android_build
  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python2.7/shutil.py", line 270, in rmtree
  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python2.7/shutil.py", line 270, in rmtree
  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python2.7/shutil.py", line 270, in rmtree
  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python2.7/shutil.py", line 279, in rmtree
  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python2.7/shutil.py", line 277, in rmtree
WindowsError: [Error 5] : u'E:\\renpy\\renpy-7.4.11-sdk\\tmp\\New_Tail_Beta\\android.dist\\assets\\game\\audio'

Windows-10-10.0.19041
Ren'Py 7.4.11.2266
Ren'Py Launcher 7.4.11.2266
Sun Mar 10 15:29:53 2024

downover
Regular
Posts: 38
Joined: Sun Feb 25, 2024 1:36 am
Contact:

Re: I can't build the android version.

#2 Post by downover »

Looks to me like it's breaking trying to delete that folder. Is one of the files in that folder being used in another program?

Code: Select all

    def android_build(p=None, gui=True, bundle=False, install=False, launch=False, destination=None, opendir=False):
        """
        This actually builds the package.
        """

        if p is None:
            p = project.current

        update_android_json(p, gui)

        dist = p.temp_filename("android.dist")

        if os.path.exists(dist):
            shutil.rmtree(dist) #<------------------------------------------------------ exception is here

downover
Regular
Posts: 38
Joined: Sun Feb 25, 2024 1:36 am
Contact:

Re: I can't build the android version.

#3 Post by downover »

For what it's worth, I downloaded 7.4.11.2266 to grab that code, but it's actually unchanged in main: https://github.com/renpy/renpy/blob/mas ... ndroid.rpy

So unless it's caused by something further up in the stack, I doubt it's a bug that has since been fixed, but more likely is something to do with your local folder.

Deleting this folder should fix the issue: E:\\renpy\\renpy-7.4.11-sdk\\tmp\\New_Tail_Beta\\android.dist

Post Reply

Who is online

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