react native - error while fetching build tools files

please use a "react-native.config.js" file to configure the react native cli
react-native build failed android
react native build apk
rnpm deprecated react-native
build failed in react-native
react-native upgrade error
cannot find module react-native-community/cli
xcode react native

I am unable to build my android app using react-native run-android, because I get following error. Yesterday everything worked fine. Do you know where could be the problem?

A problem occurred configuring root project 'contacto'.
> Could not resolve all files for configuration ':classpath'.
   > Could not find builder.jar (com.android.tools.build:builder:3.1.2).
     Searched in the following locations:
         https://jcenter.bintray.com/com/android/tools/build/builder/3.1.2/builder-3.1.2.jar
   > Could not find lint-gradle-api.jar (com.android.tools.lint:lint-gradle-api:26.1.2).
     Searched in the following locations:
         https://jcenter.bintray.com/com/android/tools/lint/lint-gradle-api/26.1.2/lint-gradle-api-26.1.2.jar
   > Could not find manifest-merger.jar (com.android.tools.build:manifest-merger:26.1.2).
     Searched in the following locations:
         https://jcenter.bintray.com/com/android/tools/build/manifest-merger/26.1.2/manifest-merger-26.1.2.jar
   > Could not find builder-test-api.jar (com.android.tools.build:builder-test-api:3.1.2).
     Searched in the following locations:
         https://jcenter.bintray.com/com/android/tools/build/builder-test-api/3.1.2/builder-test-api-3.1.2.jar
   > Could not find aapt2-proto.jar (com.android.tools.build:aapt2-proto:0.1.0).
     Searched in the following locations:
         https://jcenter.bintray.com/com/android/tools/build/aapt2-proto/0.1.0/aapt2-proto-0.1.0.jar
   > Could not find builder-model.jar (com.android.tools.build:builder-model:3.1.2).
     Searched in the following locations:
         https://jcenter.bintray.com/com/android/tools/build/builder-model/3.1.2/builder-model-3.1.2.jar
   > Could not find annotations.jar (com.android.tools:annotations:26.1.2).
     Searched in the following locations:
         https://jcenter.bintray.com/com/android/tools/annotations/26.1.2/annotations-26.1.2.jar

Add the following line in your project`s gradle file

allprojects {
    repositories {
        .....
        ......
        maven { url 'https://maven.google.com' }  //  Add this line.
        ......
    } }

android - react native - error while fetching build tools files, Add the following line in your project`s gradle file allprojects { repositories { .. ..​. maven { url 'https://maven.google.com' } // Add this line. Join GitHub today. GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.

The only solution that worked for me was to go to Build --> Build Types, and add google() to both repos

The SDK Build Tools revision (23.0.1) is too low for project ':react , Hi I get this error after installing this package. Changing the SDK build tools revision to 25.0.0 gives me the following error: `AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource :react-native-version-number:​processDebugResources FAILED alvaromb closed this on May 15, 2019. React-Native fetch, Network request failed. On android #10404. Clcll opened this issue on Oct 15, 2016 · 78 comments. React-Native fetch, Network request failed. On android #10404. Clcll opened this issue on Oct 15, 2016 · 78 comments. Resolution: Locked. Clcll commented on Oct 15, 2016. Hello, everything working fine on IOS but it's faild on

For those who have the same error, try adding this to App Builde.gradle :

android {
    //the rest of the code above

    lintOptions {
       disable 'MissingTranslation'
    }
}

I had the same problem, and this, for whatever reason, worked for me.

Build Failed in react native 0.60 · Issue #26220 · facebook/react , When I issue a command react-native run-android, the build gets failed react-​native-fetch-blob: https://github.com/wkh237/react-native-fetch-blob#readme; realm: error React Native CLI uses autolinking for native dependencies, but WARNING: The specified Android SDK Build Tools version (23.0.1)  @aayanqazi @flexzuu @eloquentbit There appears to be a problem with current versions of yarn when requesting to ignore optional dependencies -- these failures are happening because transitive optional deps are causing the installation to fail.

How to permanently fix “SDK Build Tools is too low for project” error , Or: How not to have your react-native Android project completely messed up every fix “SDK Build Tools is too low for project” error in React Native for Android to the files in the node_modules folder (besides actually updating every dep);  The SDK Build Tools revision (23.0.1) is too low for project 'react-native-vector-icons'. Minimum required is 25.0.0. And the only way I can build is to set the buildToolsVersion to "25.0.0" inside the build.gradle file

Troubleshooting · React Native, These are some common issues you may run into while setting up React Native. port in the node_modules/react-native/React/React.xcodeproj/project.pbxproj file. such as npm WARN locking Error: EACCES while using the React Native CLI, If you added React Native manually to your project, make sure you have  The Fetch API provides an interface for fetching resources. We’ll use it to fetch data from a third-party API and see how to use it when fetching data from an API built in-house. Using Fetch with a third-party API. See the Pen React Fetch API Pen 1 by Kingsley Silas Chijioke (@kinsomicrote) on CodePen.

Common React Native errors // buddybuild documentation, node_modules/react-native/react.gradle" This can be fixed by adding something like this to your root level build.gradle file: subprojects { ext { buildTools = "25.0.1" } In other words, you MUST place your AAPT: Error retrieving parent for item:  Yes Environment react-native -v: react-native-cli: 2.0.1, react-native: 0.46.4 node -v: V6.11.1 npm -v: 3.10.10 yarn --version: Then, specify: Targe Is this a bug report? Yes Have you read the Bugs section of the How to Contribute guide?

Comments
  • Possible duplicate of Could not find runtime.jar (android.arch.lifecycle:runtime:1.0.0)
  • Yeah, seems like a problem with repository (server side) as stated in the duplicate question
  • Yup, the first answer on that post is correct for this error.
  • Maybe this will help: stackoverflow.com/a/52944600/4255978