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.

Failed build in Andorid

See original GitHub issue

When I build a new react native project , and do the steps:

  1. npm install --save rn-fetch-blob
  2. RNFB_ANDROID_PERMISSIONS=true react-native link

And run in android studio. I got these erros:

Error:(9, 34) package android.support.v4.content not exist
Error:(12, 33) package com.facebook.react.bridge not exist
...

The error file is .../node_modules/rn-fetch-blob/android/src/main/java/com/RNFetchBlob/RNFetchBlob.java

image

My package.json is

"dependencies": {
    "react": "16.6.1",
    "react-native": "0.57.5",
    "rn-fetch-blob": "^0.10.13"
  },

Andorid Studio Version:3.0.1

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:17

github_iconTop GitHub Comments

1reaction
JofBigHealthcommented, Jan 30, 2019

@erbud No problem. Ok, I don’t want to clog up this issue’s comments further… If I get time over the weekend I’ll try out your test case and report back. No promises though. You’ll probably have more success via Twitter, Discord, StackOverflow or similar than me but I’ll do what I can. Might be an issue with the lib so worth investigating.

1reaction
JofBigHealthcommented, Jan 29, 2019

@AricWu From memory RN 0.57.x requires Android Studio 3.1.x

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to build project with Android studio - Stack Overflow
File->Other Settings->Default Project Structure · Under Project Settings: Project, set Project SDK as Android SDK. · Click Edit button · For Android SDK,...
Read more >
Why does a build fail in Android Studio even if I don't ... - Quora
There are several causes for gradle build fail in Android studio. Few reasons might be: * Dependencies added * Importing the project from...
Read more >
Different Ways to fix "Error running android: Gradle project ...
Method 1: Restarting your project using Invalidate Caches and Restart option · Method 2: Sync your project with Gradle files · Method 3:...
Read more >
Known issues with Android Studio and Android Gradle Plugin
When you navigate to Build > Generate Signed Bundle / APK and attempt to ... If that process fails, the IDE may not...
Read more >
Fix Gradle Build Error in Android Studio | Compilation failed
Tutorial to fix errors encountered while running the android application. This video includes some ways in which you can fix Gradle build ......
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