Android apk error "icon_background"

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
jump23
Newbie
Posts: 1
Joined: Sat Oct 17, 2020 11:58 pm
Contact:

Android apk error "icon_background"

#1 Post by jump23 »

I'm trying to create an apk, but this error occurs all the time. Does anyone know how to solve?


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\Bruno\Documents\Tradução e APK Ren'py\renpy-7.3.5-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\Bruno\Documents\Tradução e APK Ren'py\renpy-7.3.5-sdk\renpy\ast.py", line 914, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Users\Bruno\Documents\Tradução e APK Ren'py\renpy-7.3.5-sdk\renpy\python.py", line 2028, 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\Bruno\Documents\Tradução e APK Ren'py\renpy-7.3.5-sdk\rapt\buildlib\rapt\build.py", line 565, in build
    iconmaker.IconMaker(directory, config)
  File "C:\Users\Bruno\Documents\Tradução e APK Ren'py\renpy-7.3.5-sdk\rapt\buildlib\rapt\iconmaker.py", line 29, in __init__
    self.write_dpi(dpi, scale)
  File "C:\Users\Bruno\Documents\Tradução e APK Ren'py\renpy-7.3.5-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\Bruno\Documents\Tradução e APK Ren'py\renpy-7.3.5-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\Bruno\Documents\Tradução e APK Ren'py\renpy-7.3.5-sdk\rapt\project/app/src/main/res/mipmap-mdpi/icon_background.png

Windows-8-6.2.9200
Ren'Py 7.3.5.606
Ren'Py Launcher 7.3.5.606
Sun Oct 18 00:33:41 2020

nananame
Regular
Posts: 72
Joined: Fri Oct 13, 2017 1:40 pm
Contact:

Re: Android apk error "icon_background"

#2 Post by nananame »

you project folder should containt a file called "android-icon_background.png"
I'm guessing that's the problem.

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

Re: Android apk error "icon_background"

#3 Post by Imperf3kt »

It might be the folder name.
Im not sure if Tradução is supported
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

Post Reply

Who is online

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