question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

react-native. 0.56 Android build error

See original GitHub issue

react-native init reactnew and then react-native run-android causes this error:

`FAILURE: Build failed with an exception.

  • What went wrong: A problem occurred configuring root project ‘newreact’.

Could not resolve all dependencies for configuration ‘:classpath’. > Could not resolve com.android.tools.build:gradle:2.3.3. Required by: project : Could not resolve com.android.tools.build:gradle:2.3.3. Could not get resource ‘https://maven.google.com/com/android/tools/build/gradle/2.3.3/gradle-2.3.3.pom’. Could not GET ‘https://maven.google.com/com/android/tools/build/gradle/2.3.3/gradle-2.3.3.pom’. maven.google.com:443 failed to respond Could not resolve com.android.tools.build:gradle:2.3.3. Could not get resource ‘https://jcenter.bintray.com/com/android/tools/build/gradle/2.3.3/gradle-2.3.3.pom’. Could not GET ‘https://jcenter.bintray.com/com/android/tools/build/gradle/2.3.3/gradle-2.3.3.pom’. jcenter.bintray.com:443 failed to respond`

build.gradle:

`// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() maven { url ‘https://maven.google.com/’ name ‘Google’ } } dependencies { classpath ‘com.android.tools.build:gradle:2.3.3’

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

}

allprojects { repositories { mavenLocal() jcenter() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url “$rootDir/…/node_modules/react-native/android” } maven { url ‘https://maven.google.com/’ name ‘Google’ } } }

ext { buildToolsVersion = “26.0.3” minSdkVersion = 16 compileSdkVersion = 26 targetSdkVersion = 26 supportLibVersion = “26.1.0” }`

package.json: { "name": "newreact", "version": "0.0.1", "private": true, "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start", "test": "jest" }, "dependencies": { "react": "16.4.1", "react-native": "0.56.0" }, "devDependencies": { "babel-jest": "23.4.0", "babel-preset-react-native": "5", "jest": "23.4.0", "react-test-renderer": "16.4.1" }, "jest": { "preset": "react-native" } }

React Native Environment Info: System: OS: Windows 10 CPU: x64 Intel® Core™ i7-7500U CPU @ 2.70GHz Memory: 2.65 GB / 7.88 GB Binaries: Yarn: 1.7.0 - C:\Users\khani\AppData\Roaming\npm\yarn.CMD npm: 5.6.0 - C:\Program Files\nodejs\npm.CMD

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
zenzcommented, Jul 13, 2018

I got different errors:

Unable to resolve module AccessibilityInfo from C:\Users\Simon\programs\my2app\node_modules\react-native\Libraries\react-native\react-native-implementation.js: Module AccessibilityInfo does not exist in the Haste module map

I do the research and cannot find any relative information which can help

React Native Environment Info: System: OS: Windows 10 CPU: x64 Intel® Core™ i5-7200U CPU @ 2.50GHz Memory: 1.79 GB / 7.91 GB Binaries: Yarn: 1.7.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.1.0 - C:\Program Files\nodejs\npm.CMD

2reactions
tannusesquerdocommented, Jul 12, 2018

same here. 😔

Read more comments on GitHub >

github_iconTop Results From Across the Web

error code: 500 on react native 0.56 for android - Stack Overflow
my project is a new empty react native project. everything is cool at the time of build, but on android device I face...
Read more >
Running Android builds — Part 4, React Native DevOps Guide
Concept discussion and step-by-step walkthrough for building Android React Native applications. Part 4 of the React Native DevOps Guide.
Read more >
React Native Android build, "ERROR: Could not get unknown ...
[Solved]-React Native Android build, "ERROR: Could not get unknown property 'mergeResourcesProvider'"-React Native · Related Query · More Query from same tag.
Read more >
Releasing 0.56 - React Native
The long-awaited 0.56 version of React Native is now available . This blog post highlights some of the changes introduced in this new ......
Read more >
react-native deprecated gradle features were used in this ...
Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Error: Command failed: gradlew.bat app: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found