scratchfoundation / scratch-flash

Open source version of the Scratch 2.0 project editor. This is the basis for the online and offline versions of Scratch found on the website.
https://scratch.mit.edu
GNU General Public License v2.0
1.33k stars 512 forks source link

build failed #1391

Closed luofei614 closed 5 years ago

luofei614 commented 6 years ago

show this error:

FAILURE: Build failed with an exception.

afety commented 6 years ago

I also got this failure System: Ubunto 16.04 LTS Gradle: 4.6

Error:

:compileFlex FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileFlex'.
> Could not resolve all dependencies for configuration ':external'.
   > Could not resolve macromedia.com:playerglobal:11_6.
     Required by:
         :scratch-flash:1.0-SNAPSHOT
      > Could not resolve macromedia.com:playerglobal:11_6.
         > Failed to download SHA1 for resource 'http://fpdownload.macromedia.com/get/flashplayer/installers/archive/playerglobal/playerglobal11_6.xml'.
            > For input string: "<!"

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED
moneygohome commented 6 years ago

same failure. could anyone please advise?

dadede999 commented 6 years ago

same error

royqh1979 commented 6 years ago

me too

royqh1979 commented 6 years ago

tried manually download , and got 404 error

royqh1979 commented 6 years ago

Seems that it's because macromedia.com is wrong CDNed in some country. I tried to download http://fpdownload.macromedia.com/get/flashplayer/installers/archive/playerglobal/playerglobal11_6.swc by using a proxy, put the downloaded swc file in my own http server, and changed scratch.gradle file: ivy { name 'Player Globals' artifactPattern 'http://royqh.net/[module][revision].[ext]' } And then build ok.

wweiradio commented 6 years ago

@royqh1979 thank you for the information. Now the build is OK, and got the Scratch.swf how to proceed to get the windows installation binary of scratch offline editor.

standup-jb commented 6 years ago

I alsob build failure ,The error message as blow :

Execution failed for task ':compileFlex'.

java.lang.Exception: mxmlc execution failed: Apache Flex Compiler (mxmlc) Version 4.15.0 build 20160104 Copyright 2016 The Apache Software Foundation. command line: 错误: 无法打开“libs/osmf.swc”

使用“mxmlc -help”可获得有关如何使用命令行的信息。