Page 1 of 2

When making an Android build, missing file error

Posted: Wed Apr 06, 2016 3:49 pm
by mikey
Hi, I get this error when building an Android version:
Got the JDK , and RAPT.
That "extras" directory doesn't exist on my computer.

Can someone help out on this? Thank you!

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/android.rpy", line 447, in <module>
IOError: [Errno 2] No such file or directory: 'C:\\_DATA\\renpy-6.99.10-sdk\\rapt\\android-sdk-r24.4.1/extras/google/play_apk_expansion/downloader_library/project.properties'

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

Full traceback:
  File "c:/_DATA/renpy-6.99.10-sdk/android.rpyc", line 445, in script
  File "C:\_DATA\renpy-6.99.10-sdk\renpy\ast.py", line 806, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\_DATA\renpy-6.99.10-sdk\renpy\python.py", line 1577, in py_exec_bytecode
    exec bytecode in globals, locals
  File "game/android.rpy", line 447, in <module>
  File "C:\_DATA\renpy-6.99.10-sdk\rapt\buildlib\rapt\install_sdk.py", line 263, in install_sdk
    get_packages(interface)
  File "C:\_DATA\renpy-6.99.10-sdk\rapt\buildlib\rapt\install_sdk.py", line 186, in get_packages
    with open(plat.path("android-sdk/extras/google/play_apk_expansion/downloader_library/project.properties"), "r") as f:
IOError: [Errno 2] No such file or directory: 'C:\\_DATA\\renpy-6.99.10-sdk\\rapt\\android-sdk-r24.4.1/extras/google/play_apk_expansion/downloader_library/project.properties'

Windows-8-6.2.9200
Ren'Py 6.99.10.1227
Ren'Py Launcher 6.99.10.1227

Re: When making an Android build, missing file error

Posted: Wed Apr 06, 2016 6:48 pm
by PyTom
Try running "install sdk" again. If that doesn't work, delete rapt/android-sdk-r24.4.1 and install the SDK again.

Re: When making an Android build, missing file error

Posted: Thu Apr 07, 2016 6:01 am
by IvanDrago
same problem. your tips do not help(

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/android.rpy", line 445, in script
  File "game/android.rpy", line 447, in <module>
IOError: [Errno 2] No such file or directory: 'G:\\renpy-6.99.9-sdk\\rapt\\android-sdk-r23/extras/google/play_apk_expansion/downloader_library/project.properties'

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

Full traceback:
  File "game/android.rpy", line 445, in script
  File "G:\renpy-6.99.9-sdk\renpy\ast.py", line 806, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "G:\renpy-6.99.9-sdk\renpy\python.py", line 1461, in py_exec_bytecode
    exec bytecode in globals, locals
  File "game/android.rpy", line 447, in <module>
  File "G:\renpy-6.99.9-sdk\rapt\buildlib\rapt\install_sdk.py", line 263, in install_sdk
    get_packages(interface)
  File "G:\renpy-6.99.9-sdk\rapt\buildlib\rapt\install_sdk.py", line 186, in get_packages
    with open(plat.path("android-sdk/extras/google/play_apk_expansion/downloader_library/project.properties"), "r") as f:
IOError: [Errno 2] No such file or directory: 'G:\\renpy-6.99.9-sdk\\rapt\\android-sdk-r23/extras/google/play_apk_expansion/downloader_library/project.properties'

Windows-7-6.1.7601-SP1
Ren'Py 6.99.9.1168
Ren'Py Launcher 6.99.9.1168


Re: When making an Android build, missing file error

Posted: Thu Apr 07, 2016 6:12 am
by MimirollCookie
Try this-
Copy the sdk installer and put it on a folder. Then delete rapt and install it again. After that, install the sdk again and restart your device.
other-
Don't install the sdk yet. Try to install it in the Ren'Py. If it didn't worked. Install the sdk then restart your computer
other-
Delete Ren'Py abd install everything again.

Hope it helps.

Re: When making an Android build, missing file error

Posted: Thu Apr 07, 2016 9:58 am
by IvanDrago
I have this error when i install SDK :(

Re: When making an Android build, missing file error

Posted: Thu Apr 07, 2016 11:54 am
by mikey
I have also tried it all now - removing just the SDK directory, removing rapt as well, installing new, installing from renpy etc... the same error all the time. :(

Re: When making an Android build, missing file error

Posted: Thu Apr 07, 2016 1:17 pm
by borrowed
found a solution to this problem it seems that rapt does not automatic download android-sdk-r23/extras/google/play_apk_expansion/downloader_library/project.properties'
i just manual download it and create a new folder name it play_apk_expansion and copy downloader_library if you cant find downloader_library it inside market_apk_expansion hope and dev find patch for this hope this help you guys it took me a whole day to find this bug or not just hoping it will be fix soon

Re: When making an Android build, missing file error

Posted: Thu Apr 07, 2016 3:09 pm
by mikey
borrowed wrote:found a solution to this problem it seems that rapt does not automatic download android-sdk-r23/extras/google/play_apk_expansion/downloader_library/project.properties'
i just manual download it and create a new folder name it play_apk_expansion and copy downloader_library if you cant find downloader_library it inside market_apk_expansion hope and dev find patch for this hope this help you guys it took me a whole day to find this bug or not just hoping it will be fix soon
I cannot find that market apk expansion that you mention, is it a download? Where can I find it? I searched for it, but I landed on some developer page for apk expansion in general - if you meant it's inside the SDK file, there is nothing of that kind inside the android-sdk-r24.4.1_r24.4.1-windows.zip file :(

Re: When making an Android build, missing file error

Posted: Thu Apr 07, 2016 8:31 pm
by hoonsubin
I also have the same error. Got it since I updated Ren'Py to 6.99.10. But I'm not sure if the error is cused by the update.

Anyway, no-matter what I do--delete rapt, use the android sdk on the Ren'Py site, delete and reinstall Ren'Py itself--it will always show this error when I try to use the 'Install SDK & Create Keys' or 'Build Package'

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/android.rpy", line 445, in script
  File "game/android.rpy", line 447, in <module>
IOError: [Errno 2] No such file or directory: 'C:\\Program Files (x86)\\renpy-sdk\\rapt\\android-sdk-r24.4.1/extras/google/play_apk_expansion/downloader_library/project.properties'

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

Full traceback:
  File "game/android.rpy", line 445, in script
  File "C:\Program Files (x86)\renpy-sdk\renpy\ast.py", line 806, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Program Files (x86)\renpy-sdk\renpy\python.py", line 1577, in py_exec_bytecode
    exec bytecode in globals, locals
  File "game/android.rpy", line 447, in <module>
  File "C:\Program Files (x86)\renpy-sdk\rapt\buildlib\rapt\install_sdk.py", line 263, in install_sdk
    get_packages(interface)
  File "C:\Program Files (x86)\renpy-sdk\rapt\buildlib\rapt\install_sdk.py", line 186, in get_packages
    with open(plat.path("android-sdk/extras/google/play_apk_expansion/downloader_library/project.properties"), "r") as f:
IOError: [Errno 2] No such file or directory: 'C:\\Program Files (x86)\\renpy-sdk\\rapt\\android-sdk-r24.4.1/extras/google/play_apk_expansion/downloader_library/project.properties'

Windows-8-6.2.9200
Ren'Py 6.99.10.1227
Ren'Py Launcher 6.99.10.1227

Re: When making an Android build, missing file error

Posted: Fri Apr 08, 2016 12:20 am
by MimirollCookie
That happened to me. Like a lot of times. But it was always fixed when I deleted Ren'Py and installed everything again then restarting the device. Try it.

Re: When making an Android build, missing file error

Posted: Fri Apr 08, 2016 2:56 am
by mikey
MimirollCookie wrote:That happened to me. Like a lot of times. But it was always fixed when I deleted Ren'Py and installed everything again then restarting the device. Try it.
I did just that and it didn't fix it. Delete everything, restart, redownload. Stil the same error, that directory doesn't exist in the sdk that renpy downloads, and not even if I download the android sdk directly.

Re: When making an Android build, missing file error

Posted: Fri Apr 08, 2016 3:04 am
by MimirollCookie
That's strange. I still Use Ren'Py version 6.99.8 so no worries here.

Re: When making an Android build, missing file error

Posted: Fri Apr 08, 2016 7:31 pm
by borrowed
mikey wrote:
borrowed wrote:found a solution to this problem it seems that rapt does not automatic download android-sdk-r23/extras/google/play_apk_expansion/downloader_library/project.properties'
i just manual download it and create a new folder name it play_apk_expansion and copy downloader_library if you cant find downloader_library it inside market_apk_expansion hope and dev find patch for this hope this help you guys it took me a whole day to find this bug or not just hoping it will be fix soon
I cannot find that market apk expansion that you mention, is it a download? Where can I find it? I searched for it, but I landed on some developer page for apk expansion in general - if you meant it's inside the SDK file, there is nothing of that kind inside the android-sdk-r24.4.1_r24.4.1-windows.zip file :(
you must go into your rapt\android-sdk-r23 open sdk manager
Image
after you download it go to extras folder \rapt\android-sdk-r23\extras\google you will find this folder market_apk_expansion you must rename it to play_apk_expansion <--- this this will fix your problems

after building a package midway saw this i LOL
BUILD FAILED
E:\New folder\renpy-6.99.10-sdk\rapt\android-sdk-r24.4.1\tools\ant\build.xml:597: Invalid file: E:\New folder\renpy-6.99.10-sdk\rapt\android-sdk-r24.4.1\extras\google\play_licensing\library\build.xml JUST DOWNGRADE MUCH OLDER VERSION TOO MUCH HASSEL FOR NEW VERSION WITH ALOT OF ERRORS - i after a few tries got it to work with 6.9.9.10 if you want copy rapt file for this version just tell okay

Re: When making an Android build, missing file error

Posted: Sun Apr 10, 2016 10:02 pm
by hoonsubin
I found a solution that worked for me!!

First, open SDK Manager.exe in the android-sdk-r24.4.1 folder with admin. then download what you need (mostly everything)
next, go to the file directory that causes the error

Code: Select all

IOError: [Errno 2] No such file or directory: 'C:\\_DATA\\renpy-6.99.10-sdk\\rapt\\android-sdk-r24.4.1/extras/google/play_apk_expansion/downloader_library/project.properties'
in this case: the directory your looking for is '[Ren'Py SDK File]\rapt\android-sdk-r24.4.1\extras\google'
there will be a file name that starts with the word 'market', change 'market' to 'play'
ex: 'market_apk_expansion' to 'play_apk_expansion'

and your ready to compile to android!


...at least this is how I fixed my problem

Re: When making an Android build, missing file error

Posted: Tue Apr 12, 2016 12:03 pm
by IvanDrago
I changed the name and the problem is resolved. Now renpy say "Ready to start packaking games", but in menu i can press only "install SDK" :(