Page 1 of 1

Issue:Can't download android-sdk_r23-windows.zip

Posted: Wed Dec 30, 2015 12:20 pm
by decemer
hi,all :D

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>
  File "game/mobilebuild.rpy", line 234, in download
  File "game/download.rpy", line 131, in check
Exception: Downloading http://dl.google.com/android/android-sdk_r23-windows.zip to D:\renpy-6.99.8-sdk\rapt\android-sdk-r23_r23-windows.zip failed: <urlopen error [Errno 10060] >

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

Full traceback:
  File "game/android.rpy", line 445, in script
  File "D:\renpy-6.99.8-sdk\renpy\ast.py", line 805, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "D:\renpy-6.99.8-sdk\renpy\python.py", line 1461, in py_exec_bytecode
    exec bytecode in globals, locals
  File "game/android.rpy", line 447, in <module>
  File "D:\renpy-6.99.8-sdk\rapt\buildlib\rapt\install_sdk.py", line 258, in install_sdk
    unpack_sdk(interface)
  File "D:\renpy-6.99.8-sdk\rapt\buildlib\rapt\install_sdk.py", line 100, in unpack_sdk
    interface.download(url, plat.path(archive))
  File "game/mobilebuild.rpy", line 234, in download
  File "D:\renpy-6.99.8-sdk\renpy\ui.py", line 277, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "D:\renpy-6.99.8-sdk\renpy\display\core.py", line 2424, in interact
    repeat, rv = self.interact_core(preloads=preloads, **kwargs)
  File "D:\renpy-6.99.8-sdk\renpy\display\core.py", line 3080, in interact_core
    rv = root_widget.event(ev, x, y, 0)
  File "D:\renpy-6.99.8-sdk\renpy\display\layout.py", line 906, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "D:\renpy-6.99.8-sdk\renpy\display\layout.py", line 906, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "D:\renpy-6.99.8-sdk\renpy\display\layout.py", line 906, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "D:\renpy-6.99.8-sdk\renpy\display\behavior.py", line 1780, in event
    return run(self.function, *self.args, **self.kwargs)
  File "D:\renpy-6.99.8-sdk\renpy\display\behavior.py", line 295, in run
    return var(*args, **kwargs)
  File "game/download.rpy", line 131, in check
Exception: Downloading http://dl.google.com/android/android-sdk_r23-windows.zip to D:\renpy-6.99.8-sdk\rapt\android-sdk-r23_r23-windows.zip failed: <urlopen error [Errno 10060] >

Windows-8-6.2.9200
Ren'Py 6.99.8.959
Ren'Py Launcher 6.99.8.959
maybe internet problem,any other way replace?
THX

Re: Issue:Can't download android-sdk_r23-windows.zip

Posted: Thu Dec 31, 2015 1:23 am
by PyTom
IIRC, if you download http://dl.google.com/android/android-sd ... indows.zip and place it in the RAPT directory, Ren'Py will pick it up.

Re: Issue:Can't download android-sdk_r23-windows.zip

Posted: Thu Dec 31, 2015 3:34 am
by decemer
no,i haved copy zip file in rapt,it will build android-sdk_r23-windows.tmp file,and then,Still error :oops:

Re: Issue:Can't download android-sdk_r23-windows.zip

Posted: Thu Dec 31, 2015 12:36 pm
by decemer
PyTom wrote:IIRC, if you download http://dl.google.com/android/android-sd ... indows.zip and place it in the RAPT directory, Ren'Py will pick it up.
no,i haved copy zip file in rapt,it will build android-sdk_r23-windows.tmp file,and then,Still error :oops:

Re: Issue:Can't download android-sdk_r23-windows.zip

Posted: Thu Dec 31, 2015 1:30 pm
by Karl_C
Have you tried this one?
Android and iOS Support
When building Android or iOS packages, Ren'Py will prompt you to download RAPT (Ren'Py Android Packaging Tool) or Renios (Ren'Py iOS Support). As these downloads may fail if your Internet connection is unreliable, these packages can be downloaded separately. To install, extract the contents of the archive to the Ren'Py directory. (Place the "rapt" or "renios" directory into the "renpy-6.99.8" directory.)

Android Support (RAPT): renpy-6.99.8-rapt.zip

iOS Support (Renios): renpy-6.99.8-renios.zip
Source: Ren'Py 6.99.8 "Here's to the crazy ones."

Re: Issue:Can't download android-sdk_r23-windows.zip

Posted: Thu Dec 31, 2015 1:37 pm
by Karl_C
BTW: Why do you use apache-ant-xxx-bin.tar.gz?

tar.gz are zipped Linux archives? .zip would be the choice for windows?

Re: Issue:Can't download android-sdk_r23-windows.zip

Posted: Fri Jan 01, 2016 8:00 am
by decemer
Karl_C wrote:BTW: Why do you use apache-ant-xxx-bin.tar.gz?

tar.gz are zipped Linux archives? .zip would be the choice for windows?
i do not thing and renpy program auto download it :(

Re: Issue:Can't download android-sdk_r23-windows.zip

Posted: Fri Jan 01, 2016 8:33 am
by decemer
Karl_C wrote:Have you tried this one?
Android and iOS Support
When building Android or iOS packages, Ren'Py will prompt you to download RAPT (Ren'Py Android Packaging Tool) or Renios (Ren'Py iOS Support). As these downloads may fail if your Internet connection is unreliable, these packages can be downloaded separately. To install, extract the contents of the archive to the Ren'Py directory. (Place the "rapt" or "renios" directory into the "renpy-6.99.8" directory.)

Android Support (RAPT): renpy-6.99.8-rapt.zip

iOS Support (Renios): renpy-6.99.8-renios.zip
Source: Ren'Py 6.99.8 "Here's to the crazy ones."
i haved done this,but the problem is android sdk,your rapt still need to download android-sdk_r23-windows.zip

Re: Issue:Can't download android-sdk_r23-windows.zip

Posted: Tue Jan 05, 2016 2:57 am
by decemer
i solved the question above ,down zip and setup
and then,problem is
BUILD FAILED
D:\renpy-6.99.8-sdk\rapt\android-sdk-r23\tools\ant\build.xml:601: Invalid file: D:\renpy-6.99.8-sdk\rapt\android-sdk-r23\extras\google\play_licensing\library\build.xml
and i can find new android SDK have this file

Re: Issue:Can't download android-sdk_r23-windows.zip

Posted: Wed Jan 06, 2016 12:25 am
by PyTom
Hm... are you in a country where access to google is blocked for some reason? It sounds like you are, and you might need a VPN or something to work around that.

Re: Issue:Can't download android-sdk_r23-windows.zip

Posted: Thu Jan 07, 2016 5:18 am
by decemer
PyTom wrote:Hm... are you in a country where access to google is blocked for some reason? It sounds like you are, and you might need a VPN or something to work around that.
So is there any other way to packaging Android? :)
Just some manal mode,manal way,manal packaging tutorials to export APK packages

Re: Issue:Can't download android-sdk_r23-windows.zip

Posted: Fri Jan 08, 2016 3:18 am
by PyTom
The answer is no. The android stuff is all automated, and trying to extract that is more work than I want to do. Feel free to read installsdk.py to see what it does, but I'm not going to write a second set of documentation that duplicates the automatic stuff. Your best bet is to solve the problems that are preventing you from reliably downloading the android SDK. (Especially because to set up the environment manually, you're likely to need to download that stuff anyway.)

Re: Issue:Can't download android-sdk_r23-windows.zip

Posted: Sun Jan 10, 2016 12:05 pm
by decemer
PyTom wrote:The answer is no. The android stuff is all automated, and trying to extract that is more work than I want to do. Feel free to read installsdk.py to see what it does, but I'm not going to write a second set of documentation that duplicates the automatic stuff. Your best bet is to solve the problems that are preventing you from reliably downloading the android SDK. (Especially because to set up the environment manually, you're likely to need to download that stuff anyway.)
thanks ,i can donate your android work,just best wish for renpy future,your donate web is?

Re: Issue:Can't download android-sdk_r23-windows.zip

Posted: Fri Jan 15, 2016 3:42 am
by decemer
i found! my folder is "D:\renpy-6.99.8-sdk" debug info is "D:\renpy-6.99.3-sdk\"

Re: Issue:Can't download android-sdk_r23-windows.zip

Posted: Sun Feb 07, 2016 1:40 pm
by MimirollCookie
Hmm.....
The same problem happened to me too!!
But it worked because of what PyTom posted!