Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run Example App #11106

Closed
penggguna opened this issue Nov 24, 2016 · 7 comments
Closed

Unable to run Example App #11106

penggguna opened this issue Nov 24, 2016 · 7 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@penggguna
Copy link

mdazhari@Aspire-E1-422:~/ExampleApp$ ./gradlew :Examples:Movies:android:app:installDebug
Incremental java compilation is an incubating feature.
:ReactAndroid:preBuild UP-TO-DATE
:ReactAndroid:preReleaseBuild UP-TO-DATE
:ReactAndroid:compileReleaseNdk UP-TO-DATE
:ReactAndroid:compileLint
:ReactAndroid:copyReleaseLint UP-TO-DATE
:ReactAndroid:checkReleaseManifest
:ReactAndroid:preDebugAndroidTestBuild UP-TO-DATE
:ReactAndroid:preDebugBuild UP-TO-DATE
:ReactAndroid:preDebugUnitTestBuild UP-TO-DATE
:ReactAndroid:preReleaseUnitTestBuild UP-TO-DATE
:ReactAndroid:prepareComAndroidSupportAppcompatV72301Library UP-TO-DATE
:ReactAndroid:prepareComAndroidSupportRecyclerviewV72301Library UP-TO-DATE
:ReactAndroid:prepareComAndroidSupportSupportV42321Library UP-TO-DATE
:ReactAndroid:prepareComFacebookFrescoDrawee0110Library UP-TO-DATE
:ReactAndroid:prepareComFacebookFrescoFbcore0110Library UP-TO-DATE
:ReactAndroid:prepareComFacebookFrescoFresco0110Library UP-TO-DATE
:ReactAndroid:prepareComFacebookFrescoImagepipeline0110Library UP-TO-DATE
:ReactAndroid:prepareComFacebookFrescoImagepipelineBase0110Library UP-TO-DATE
:ReactAndroid:prepareComFacebookFrescoImagepipelineOkhttp30110Library UP-TO-DATE
:ReactAndroid:prepareComFacebookSoloaderSoloader010Library UP-TO-DATE
:ReactAndroid:prepareOrgWebkitAndroidJscR174650Library UP-TO-DATE
:ReactAndroid:prepareReleaseDependencies
:ReactAndroid:compileReleaseAidl UP-TO-DATE
:ReactAndroid:compileReleaseRenderscript UP-TO-DATE
:ReactAndroid:generateReleaseBuildConfig UP-TO-DATE
:ReactAndroid:mergeReleaseShaders UP-TO-DATE
:ReactAndroid:compileReleaseShaders UP-TO-DATE
:ReactAndroid:generateReleaseAssets UP-TO-DATE
:ReactAndroid:mergeReleaseAssets UP-TO-DATE
:ReactAndroid:generateReleaseResValues UP-TO-DATE
:ReactAndroid:generateReleaseResources UP-TO-DATE
:ReactAndroid:mergeReleaseResources UP-TO-DATE
:ReactAndroid:processReleaseManifest UP-TO-DATE
:ReactAndroid:processReleaseResources UP-TO-DATE
:ReactAndroid:generateReleaseSources UP-TO-DATE
:ReactAndroid:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE
:ReactAndroid:createNativeDepsDirectories UP-TO-DATE
:ReactAndroid:downloadBoost
Unable to get progress logger. Download progress will not be displayed.
:ReactAndroid:downloadBoost FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':ReactAndroid:downloadBoost'.
> java.io.IOException: Server returned HTTP response code: 403 for URL: https://unpkg.com/boost-mirror@1.57.0/boost.zip

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

BUILD FAILED

Total time: 26.588 secs

@MG-K
Copy link

MG-K commented Nov 24, 2016

@mkonicek
Copy link
Contributor

@MG-K's fix is valid.

The unpkg URL works for me. Are you behind a proxy?

@MG-K
Copy link

MG-K commented Nov 25, 2016

nope... I'm just... personal dev

@codexdelta
Copy link

how can I change the link? which file to target? @MG-K

@MG-K
Copy link

MG-K commented Nov 28, 2016

../react-native/ReactAndroid/buld.gradle 31 line or 33 line.

@natseg
Copy link

natseg commented Nov 29, 2016

  1. Download the zip on your system from one of the two urls
    https://unpkg.com/boost-mirror@1.57.0/boost.zip http://mirror.nienbo.com/boost/1.57.0/boost_1_57_0.zip

  2. Locate the zip on your local system

  3. define REACT_NATIVE_BOOST_PATH as an environment variable and the build will use that
    eg: export REACT_NATIVE_BOOST_PATH=/Users/unixusername/whereverboostissaved/boost.zip

see ReactAndroid/build.gradle comments

// The Boost library is a very large download (>100MB).
// If Boost is already present on your system, define the REACT_NATIVE_BOOST_PATH env variable
// and the build will use that.
def boostPath = System.getenv("REACT_NATIVE_BOOST_PATH")

And/or check the url provided in the comments is correct:
http://mirror.nienbo.com/boost/1.57.0/boost_1_57_0.zip
vs.
http://mirror.nienbo.com/boost/boost_1_57_0.zip

@omeid
Copy link
Contributor

omeid commented Nov 30, 2016

Adding header 'User-Agent', 'unpkg.com requires a user agent.', or any other user agent you fancy in ReactAndroid/build.gradle's downloadBoost task should fix this problem.

@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

7 participants