Page 1 of 1

Android Build Error

Posted: Wed Apr 15, 2020 9:27 am
by SyTax
I got this error in the latest version but I still don't understand why. There is nothing in Atom that uses that closed folder.
Please help!


Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/android.rpy", line 483, in <module>
  File "game/android.rpy", line 269, in android_build
error: Couldn't open C:\Users\Salih Güdücü\Desktop\Ren'Py\renpy-7.2.2-sdk\rapt\project/app/src/main/res/mipmap-mdpi/icon_background.png

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

Full traceback:
  File "launcher/game/android.rpyc", line 483, in script
  File "C:\Users\Salih Güdücü\Desktop\Ren'Py\renpy-7.2.2-sdk\renpy\ast.py", line 900, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Users\Salih Güdücü\Desktop\Ren'Py\renpy-7.2.2-sdk\renpy\python.py", line 1930, in py_exec_bytecode
    exec bytecode in globals, locals
  File "game/android.rpy", line 483, in <module>
  File "game/android.rpy", line 269, in android_build
  File "C:\Users\Salih Güdücü\Desktop\Ren'Py\renpy-7.2.2-sdk\rapt\buildlib\rapt\build.py", line 565, in build
    iconmaker.IconMaker(directory, config)
  File "C:\Users\Salih Güdücü\Desktop\Ren'Py\renpy-7.2.2-sdk\rapt\buildlib\rapt\iconmaker.py", line 29, in __init__
    self.write_dpi(dpi, scale)
  File "C:\Users\Salih Güdücü\Desktop\Ren'Py\renpy-7.2.2-sdk\rapt\buildlib\rapt\iconmaker.py", line 110, in write_dpi
    self.write_icon("icon_background", dpi, scale, 108, self.load_background)
  File "C:\Users\Salih Güdücü\Desktop\Ren'Py\renpy-7.2.2-sdk\rapt\buildlib\rapt\iconmaker.py", line 107, in write_icon
    pygame_sdl2.image.save(surf, dst)
  File "src/pygame_sdl2/image.pyx", line 151, in pygame_sdl2.image.save
error: Couldn't open C:\Users\Salih Güdücü\Desktop\Ren'Py\renpy-7.2.2-sdk\rapt\project/app/src/main/res/mipmap-mdpi/icon_background.png

Windows-7-6.1.7601-SP1
Ren'Py 7.2.2.491
Ren'Py Launcher 7.2.2.491
Wed Apr 15 16:23:41 2020

Re: Android Build Error

Posted: Wed Apr 15, 2020 12:24 pm
by rames44
Did you prepare the android icons as described at
https://www.renpy.org/doc/html/android. ... ash-images
?

Re: Android Build Error

Posted: Wed Apr 15, 2020 1:25 pm
by SyTax
rames44 wrote:
Wed Apr 15, 2020 12:24 pm
Did you prepare the android icons as described at
https://www.renpy.org/doc/html/android. ... ash-images
?
Yes but nothing changed