找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 15864|回复: 2

[已解决] 安卓 打包失败

[复制链接]
发表于 2020-3-22 10:36:07 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
本帖最后由 lililixxx1 于 2020-3-22 15:14 编辑

     各位大佬,尝试把the question打包成安卓失败,怎么解决?
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\用户\Downloads\Programs\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\用户\Downloads\Programs\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\用户\Downloads\Programs\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\用户\Downloads\Programs\renpy-7.3.5-sdk\rapt\buildlib\rapt\build.py", line 565, in build
    iconmaker.IconMaker(directory, config)
  File "C:\Users\用户\Downloads\Programs\renpy-7.3.5-sdk\rapt\buildlib\rapt\iconmaker.py", line 29, in __init__
    self.write_dpi(dpi, scale)
  File "C:\Users\用户\Downloads\Programs\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\用户\Downloads\Programs\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\用户\Downloads\Programs\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 Mar 22 10:11:45 2020

发表于 2020-3-22 13:12:09 | 显示全部楼层
error: Couldn't open C:\Users\用户\Downloads\Programs\renpy-7.3.5-sdk\rapt\project/app/src/main/res/mipmap-mdpi/icon_background.png 提示app图标的背景图片找不到,你看下renpy-7.3.5-sdk\rapt\templates\android-icon_foreground.png文件是否能找到,还有最好放英文路径下。
回复 支持 抱歉

使用道具 举报

 楼主| 发表于 2020-3-22 14:19:52 | 显示全部楼层
sockone68 发表于 2020-3-22 13:12
error: Couldn't open C:%users\用户\Downloads\Programs\renpy-7.3.5-sdk\rapt\project/app/src/main/res/ ...

感谢,放在英文路径下成功了
回复 支持 抱歉

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|RenPy中文空间 ( 苏ICP备17067825号|苏公网安备 32092302000068号 )

GMT+8, 2024-11-23 09:47 , Processed in 0.104100 second(s), 24 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表