RenPy apk problem for android

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
fearlessor
Newbie
Posts: 3
Joined: Sat Oct 27, 2018 9:28 am
Contact:

RenPy apk problem for android

#1 Post by fearlessor » Sat Oct 27, 2018 3:09 pm

I'm trying to make some Renpy games to android port. I've done everything step by step. project prepared. but there is no apk in the file. only have obb file. Why is that? Where is it missing?

screenshot: https://resmim.net/preview/Laq58k.png

User avatar
Nanahs
Veteran
Posts: 298
Joined: Wed Aug 22, 2018 5:50 pm
Contact:

Re: RenPy apk problem for android

#2 Post by Nanahs » Sat Oct 27, 2018 4:13 pm

Hello!
Do you have Java 8 installed in your computer?
I was having many problems like that too. So I asked here:

viewtopic.php?f=8&t=52045

I had another Java version installed. I had to uninstall it and install Java 8.
https://www.oracle.com/technetwork/pt/j ... 33155.html

Now it's all working fine.

Good luck!

fearlessor
Newbie
Posts: 3
Joined: Sat Oct 27, 2018 9:28 am
Contact:

Re: RenPy apk problem for android

#3 Post by fearlessor » Sat Oct 27, 2018 5:28 pm

Yes java is up to date. To make sure I did the update again. but now it was also this error

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\diğer\Downloads\renpy-7.1.1-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\diğer\Downloads\renpy-7.1.1-sdk\renpy\ast.py", line 882, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Users\diğer\Downloads\renpy-7.1.1-sdk\renpy\python.py", line 1913, 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\diğer\Downloads\renpy-7.1.1-sdk\rapt\buildlib\rapt\build.py", line 565, in build
    iconmaker.IconMaker(directory, config)
  File "C:\Users\diğer\Downloads\renpy-7.1.1-sdk\rapt\buildlib\rapt\iconmaker.py", line 29, in __init__
    self.write_dpi(dpi, scale)
  File "C:\Users\diğer\Downloads\renpy-7.1.1-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\diğer\Downloads\renpy-7.1.1-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\diğer\Downloads\renpy-7.1.1-sdk\rapt\project/app/src/main/res/mipmap-mdpi/icon_background.png

User avatar
PyTom
Ren'Py Creator
Posts: 15476
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: RenPy apk problem for android

#4 Post by PyTom » Sun Oct 28, 2018 12:07 am

This looks like a permissions problem, or perhaps one where a folder doesn't exist.
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: Bing [Bot]