React native old project build failed - android

I am working in a old react native project. I am getting errors while running this app. How I can solve these errors. First time I am working in a old react native project. This app build in react native old version. I update this in to version. Please help me.
// My package.json ==>
"name": "unknown",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "react-native start",
"flow": "flow --show-all-errors",
"flow start": "flow start",
"flow stop": "flow stop",
"flow status": "flow status",
"flow coverage": "flow coverage",
"eslint": "eslint",
"eslint-check": "eslint --print-config .eslintrc.js | eslint-config-prettier-check",
"build:ios": "react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios'"
},
"dependencies": {
"#react-native-community/cli-platform-android": "^9.1.0",
"babel-plugin-transform-remove-console": "6.9.4",
"braces": "^2.3.2",
"crypto-js": "4.1.1",
"currency-formatter": "1.5.9",
"d3": "7.3.0",
"d3-array": "3.1.1",
"d3-scale": "4.0.2",
"d3-shape": "3.1.0",
"moment": "^2.29.4",
"react": "^17.0.2",
"react-dom": "^18.2.0",
"react-native": "^0.69.5",
"react-native-appstore-version-checker": "3.0.0",
"react-native-device-info": "^10.1.1",
"react-native-dropdownalert": "4.5.1",
"react-native-elements": "3.4.2",
"react-native-fabric": "^0.5.2",
"react-native-fingerprint-scanner": "6.0.0",
"react-native-gesture-handler": "^2.6.0",
"react-native-keychain": "8.0.0",
"react-native-loading-spinner-overlay": "3.0.0",
"react-native-maps": "0.30.1",
"react-native-modal-datetime-picker": "13.0.1",
"react-native-pathjs-charts": "0.0.30",
"react-native-segmented-control-tab": "4.0.0",
"react-native-sentry": "0.43.2",
"react-native-simple-dialogs": "1.4.0",
"react-native-svg": "12.3.0",
"react-native-table-component": "1.2.2",
"react-native-vector-icons": "9.1.0",
"react-navigation": "4.4.4",
"react-redux": "7.2.6",
"realm": "10.13.0",
"redux": "4.1.2",
"redux-logger": "3.0.6",
"redux-thunk": "2.4.1"
},
"devDependencies": {
"#babel/core": "7.17.5",
"#babel/plugin-proposal-class-properties": "7.16.7",
"#babel/plugin-transform-runtime": "7.17.0",
"#babel/preset-env": "7.16.11",
"#babel/preset-react": "7.16.7",
"babel-cli": "6.26.0",
"babel-eslint": "10.1.0",
"babel-jest": "27.5.1",
"babel-plugin-module-resolver": "4.1.0",
"babel-preset-flow": "6.23.0",
"babel-preset-react-native": "2.1.0",
"eslint": "8.10.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "8.5.0",
"eslint-import-resolver-babel-module": "5.3.1",
"eslint-plugin-import": "2.25.4",
"eslint-plugin-jsx-a11y": "6.5.1",
"eslint-plugin-react": "7.29.3",
"flow-bin": "0.173.0",
"invariant": "2.2.4",
"jest": "27.5.1",
"metro-react-native-babel-preset": "0.69.0",
"react-test-renderer": "17.0.2"
},
"jest": {
"preset": "react-native"
},
"rnpm": {
"assets": [
"./assets/fonts/"
]
}
}
//project level gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.2.1'
}
}
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"
}
}
}
//My gradle.app file ==>
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:'
}
}
apply plugin: "com.android.application"
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
google()
}
When I try to run android app getting this below error->
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:mergeDebugAssets'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
> Could not resolve project :realm.
Required by:
project :app
> No matching configuration of project :realm was found. The consumer was configured to find a runtime of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.2.1' but:
- None of the consumable configurations have attributes.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s

Related

Problem building app in React Native with expo in Run Gradlew phase

I'm having trouble starting my React Native app build with Expo.
This issue is occurring in the Run Gradlew phase, returning the following errors:
w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
Execution optimizations have been disabled for 7 invalid unit(s) of work during this build to ensure correctness.
Please consult deprecation warnings for more details.
536 actionable tasks: 536 executed
[stderr] FAILURE: Build completed with 2 failures.
[stderr] 1: Task failed with an exception.
[stderr] -----------
[stderr] * What went wrong:
[stderr] Execution failed for task ':app:collectReleaseDependencies'.
[stderr] > java.io.FileNotFoundException: / (Is a directory)
[stderr] * Try:
[stderr] > Run with --stacktrace option to get the stack trace.
[stderr] > Run with --info or --debug option to get more log output.
[stderr] > Run with --scan to get full insights.
[stderr] ==============================================================================
[stderr] 2: Task failed with an exception.
[stderr] -----------
[stderr] * What went wrong:
[stderr] java.lang.StackOverflowError (no error message)
[stderr] * Try:
[stderr] > Run with --stacktrace option to get the stack trace.
[stderr] > Run with --info or --debug option to get more log output.
[stderr] > Run with --scan to get full insights.
[stderr] ==============================================================================
[stderr] * Get more help at https://help.gradle.org
[stderr] BUILD FAILED in 7m 44s
Here is my package.json:
{
"name": "app-name",
"version": "1.0.1",
"main": "index.js",
"scripts": {
"start": "expo start --dev-client",
"android": "expo run:android",
"ios": "expo run:ios",
"web": "expo start --web"
},
"dependencies": {
"#expo-google-fonts/spartan": "^0.2.2",
"#react-native-community/netinfo": "^9.3.5",
"#react-navigation/bottom-tabs": "^6.3.1",
"#react-navigation/native": "^6.0.10",
"#react-navigation/stack": "^6.2.1",
"#rneui/base": "^4.0.0-rc.4",
"#rneui/themed": "^4.0.0-rc.4",
"axios": "^0.27.2",
"expo": "~46.0.19",
"expo-document-picker": "~10.3.0",
"expo-file-system": "~14.1.0",
"expo-font": "~10.2.0",
"expo-navigation-bar": "~1.3.0",
"expo-splash-screen": "~0.16.2",
"expo-status-bar": "~1.4.0",
"expo-updates": "~0.14.7",
"firebase": "9.8.3",
"react": "18.0.0",
"react-dom": "18.0.0",
"react-native": "0.69.6",
"react-native-bouncy-checkbox": "^2.1.10",
"react-native-bouncy-checkbox-group": "^0.1.0",
"react-native-dotenv": "^3.3.1",
"react-native-dropdown-select-list": "^1.0.18",
"react-native-elements": "^3.4.2",
"react-native-gesture-handler": "~2.5.0",
"react-native-maps": "^1.3.2",
"react-native-modal": "^13.0.1",
"react-native-permissions": "^3.3.1",
"react-native-reanimated": "~2.9.1",
"react-native-safe-area-context": "4.3.1",
"react-native-screens": "^3.18.2",
"react-native-status-bar-height": "^2.6.0",
"react-native-svg": "12.3.0",
"react-native-svg-transformer": "^1.0.0",
"react-native-swiper": "^1.6.0",
"react-native-vector-icons": "^9.1.0",
"react-native-web": "~0.18.7",
"styled-components": "^5.3.5",
"xlsx": "^0.18.5"
},
"devDependencies": {
"#babel/core": "^7.18.6",
"metro-react-native-babel-preset": "^0.70.3",
"react-test-renderer": "18.0.0"
},
"private": true
}
My eas.json:
{
"cli": {
"version": ">= 3.6.0"
},
"build": {
"development": {
"distribution": "internal",
"android": {
"gradleCommand": ":app:assembleDebug"
},
"ios": {
"buildConfiguration": "Debug",
"resourceClass": "m1-medium"
}
},
"preview": {
"distribution": "internal",
"ios": {
"resourceClass": "m1-medium"
}
},
"production": {
"ios": {
"resourceClass": "m1-medium"
}
}
},
"submit": {
"production": {}
}
}
My app.json:
{
"expo": {
"name": "App Name",
"slug": "appname",
"version": "1.0.1",
"icon": "./assets/images/icon.png",
"splash": {
"image": "./assets/images/splash.png",
"resizeMode": "contain",
"backgroundColor": "#FF6B0F"
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/images/adaptive-icon.png",
"backgroundColor": "#fff"
},
"permissions": [
"WRITE_EXTERNAL_STORAGE"
],
"package": "com.euquero.app"
},
"assetBundlePatterns": [
"**/*"
],
"packagerOpts": {
"config": "metro.config.js",
"sourceExts": [
"js",
"svg"
]
},
"description": "",
"extra": {
"eas": {
"projectId": "24bced36-2rfs-4d11-89e2-19013e1f178f"
}
}
}
}
I've tried using the expo upgrade to update everything, I've used the react native upgrade helper to update correctly. I've already tried clearing Gradlew's cache (./gradlew clean).
I already updated the build.gradlew.
I managed to solve it, deleted the Android folder and Ios, also deleted the Node Modules, used the 'yarn' command, used the 'eas build:configure' command, then 'npx expo prebuild' and finally 'eas build --clear- cache'.

react-native app successfully installs but won't open after updating react-native-onesignal

I'm making an application in react native and I need to update it to use version 31 of the Android SDK due to the requirements of the Google Play Store. I was using version 30.
When trying to update android/build.gradle (below) with sdk 31 and build tools 31 (I already found the fix for the build tool 31 corruption error) I got the android:exported error even after adding it to my AndroidManifest .xml (below). After many tests I was able to successfully build and install the app by updating react-native-onesignal from version 4.0.2 to version 4.2.0, but the application no longer opens. It doesn't even try to connect with Metro, it just flashes a gray screen for less than 1 second and then closes. Does anyone know what it could be?
android/build.gradle
`
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = "30.0.2"
minSdkVersion = 21
compileSdkVersion = 30
targetSdkVersion = 30
ndkVersion = "21.4.7075529"
kotlinVersion = "1.6.0"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:4.2.2")
classpath 'com.google.gms:google-services:4.3.10'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
mavenCentral {
// We don't want to fetch react-native from Maven Central as there are
// older versions over there.
content {
excludeGroup "com.facebook.react"
}
}
google()
maven { url 'https://www.jitpack.io' }
}
}
AndroidManifest.xml
`
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.appopaprofessional">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION" />
<application
android:name=".MainApplication"
android:label="#string/app_name"
android:icon="#mipmap/ic_launcher"
android:roundIcon="#mipmap/ic_launcher_round"
android:allowBackup="false"
android:theme="#style/AppTheme">
<activity
android:name=".MainActivity"
android:exported="true"
android:label="#string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<action android:name="android.intent.action.DOWNLOAD_COMPLETE"/>
</intent-filter>
</activity>
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="#string/facebook_app_id"/>
<meta-data android:name="com.facebook.sdk.ClientToken" android:value="#string/facebook_client_token"/>
<meta-data android:name="com.google.android.geo.API_KEY" android:value="AIzaSyCDMXGqsxr_IuwMiPoRTzrZ_fD09WYT7E8"/>
</application>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
</manifest>
package.json
`
{
"name": "AppOpaProfessional",
"version": "1.3.1.5",
"private": true,
"scripts": {
"android": "react-native run-android",
"android-release-apk": "react-native run-android --variant=release",
"ios": "react-native run-ios",
"start": "react-native start",
"test": "jest",
"lint": "eslint .",
"clean": "react-native-clean-project"
},
"dependencies": {
"#hookform/error-message": "^1.1.0",
"#hookform/resolvers": "^2.9.10",
"#invertase/react-native-apple-authentication": "^2.1.5",
"#react-native-async-storage/async-storage": "^1.16.1",
"#react-native-community/masked-view": "^0.1.10",
"#react-native-community/netinfo": "^6.2.1",
"#react-native-community/toolbar-android": "^0.2.1",
"#react-native-firebase/app": "^14.2.2",
"#react-native-firebase/auth": "^14.2.2",
"#react-native-firebase/firestore": "^14.2.2",
"#react-native-firebase/functions": "^14.2.2",
"#react-native-firebase/storage": "^14.2.2",
"#react-native-google-signin/google-signin": "^7.1.0",
"#react-navigation/drawer": "^6.3.1",
"#react-navigation/material-top-tabs": "^6.1.1",
"#react-navigation/native": "^6.0.8",
"#react-navigation/native-stack": "^6.5.0",
"#types/styled-components-react-native": "^5.1.3",
"formik": "^2.2.9",
"geolib": "^3.3.1",
"jest-haste-map": "^26.6.2",
"jest-serializer": "^26.6.2",
"jest-worker": "^26.6.2",
"jetifier": "^1.6.6",
"lodash": "^4.17.21",
"moment": "^2.29.1",
"numbro": "^2.3.2",
"react": "17.0.2",
"react-hook-form": "^7.39.1",
"react-native": "0.66.4",
"react-native-blob-util": "^0.16.3",
"react-native-chart-kit": "^6.11.0",
"react-native-circular-progress": "^1.3.7",
"react-native-confirmation-code-field": "^6.5.1",
"react-native-credit-card-input": "^0.4.1",
"react-native-date-picker": "^3.2.10",
"react-native-datepicker": "^1.7.2",
"react-native-device-info": "^8.0.8",
"react-native-document-picker": "^8.1.2",
"react-native-easy-grid": "^0.2.2",
"react-native-fbsdk-next": "6.2.0",
"react-native-file-picker": "^0.0.20",
"react-native-geocoding": "^0.5.0",
"react-native-geolocation-service": "^5.2.0",
"react-native-gesture-handler": "^2.4.1",
"react-native-gifted-chat": "^0.16.3",
"react-native-google-maps-directions": "^2.1.1",
"react-native-google-places-autocomplete": "^2.4.1",
"react-native-image-picker": "^4.7.3",
"react-native-image-view": "^2.1.9",
"react-native-indicators": "^0.17.0",
"react-native-linear-gradient": "^2.5.6",
"react-native-loading-spinner-overlay": "^2.0.0",
"react-native-maps": "0.30.1",
"react-native-maps-directions": "^1.8.0",
"react-native-masked-text": "^1.13.0",
"react-native-material-dropdown-v2": "^0.11.1",
"react-native-material-menu": "^1.2.0",
"react-native-modal-filter-picker": "^2.0.0",
"react-native-onesignal": "4.0.1",
"react-native-pager-view": "^5.4.9",
"react-native-paper": "^4.12.0",
"react-native-pdf": "^6.6.2",
"react-native-popup-dialog": "^0.18.3",
"react-native-pulse": "^1.0.7",
"react-native-ratings": "^8.1.0",
"react-native-reanimated": "^2.4.1",
"react-native-render-html": "^5.1.0",
"react-native-safe-area-context": "^3.3.2",
"react-native-screen": "^1.0.1",
"react-native-screens": "^3.10.1",
"react-native-select-dropdown": "^1.13.0",
"react-native-select-multiple": "^2.1.0",
"react-native-share": "^5.1.7",
"react-native-slowlog": "^1.0.2",
"react-native-social-buttons": "^1.2.0",
"react-native-step-indicator": "^1.0.3",
"react-native-svg": "^12.1.1",
"react-native-swiper": "^1.6.0",
"react-native-tab-view": "^3.1.1",
"react-native-uuid": "^2.0.0",
"react-native-vector-icons": "9.1.0",
"react-native-webview": "^11.17.2",
"react-redux": "^7.2.6",
"redux": "^4.1.2",
"redux-thunk": "^2.4.1",
"rn-fetch-blob": "^0.12.0",
"styled-components": "^5.3.3",
"victory-native": "^36.2.0",
"yup": "0.32.11"
},
"devDependencies": {
"#babel/core": "^7.16.7",
"#babel/runtime": "^7.16.7",
"#react-native-community/eslint-config": "^3.0.1",
"babel-jest": "^27.4.6",
"eslint": "^7.32.0",
"jest": "^27.4.7",
"metro-react-native-babel-preset": "^0.66.2",
"react-native-clean-project": "^3.6.7",
"react-test-renderer": "17.0.2",
"uuid": "^8.3.2"
},
"jest": {
"preset": "react-native"
}
}
I tried to update all dependencies to newer versions but the error persisted.
add this to you app/build.gradle dependencies.
dependencies {
...
implementation "androidx.work:work-runtime:$rootProject.ext.work_version"
implementation "androidx.work:work-runtime-ktx:$rootProject.ext.work_version"
...
}
after that update reanimated and gesture-handler to the latest version.

Task :react-native-camera:compileGeneralDebugJavaWithJavac FAILED

My APP was running fine but while I tried a new installation it shows the error - Task :react-native-camera:compileGeneralDebugJavaWithJavac FAILED. Below code might help you to address the issue.
My package.json is given below:
{
"name": "app name",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"#react-native-community/async-storage": "^1.7.1",
"axios": "^0.18.1",
"native-base": "^2.13.12",
"react": "16.8.3",
"react-native": "^0.62.2",
"react-native-animatable": "^1.3.2",
"react-native-camera": "^2.11.0",
"react-native-modalbox": "^1.7.1",
"react-native-qrcode-scanner": "^1.2.1",
"react-native-search-filter": "^0.1.4",
"react-native-vector-icons": "^6.5.0",
"react-native-webview": "5.8.1",
"react-navigation": "^2.18.3",
"url": "^0.11.0"
},
"devDependencies": {
"#babel/core": "7.4.5",
"#babel/runtime": "7.4.5",
"babel-jest": "^26.0.1",
"jest": "^26.0.1",
"metro-react-native-babel-preset": "^0.54.1",
"react-native-dotenv": "^0.2.0",
"react-test-renderer": "16.8.3"
},
"jest": {
"preset": "react-native"
},
"rnpm": {
"assets": [
"./assets/fonts/"
]
}
}
android/build.gradle
buildscript {
ext {
buildToolsVersion = "28.0.3"
minSdkVersion = 16
compileSdkVersion = 28
targetSdkVersion = 28
supportLibVersion = "28.0.0"
}
repositories {
google()
jcenter()
}
dependencies {
classpath("com.android.tools.build:gradle:3.4.0")
}
}
allprojects {
repositories {
mavenLocal()
google()
jcenter()
maven {
url "$rootDir/../node_modules/react-native/android"
}
}
}
I have no clue on this error. Any help???
I think you have some linking problem.
I just faced same problem and solved it on React-Native v0.6,here's my solution:
JUST FOLLOWING THIS TUTORIAL
EXECUTE THIS `react-native run-android --no-jetifier
`

nativescript - problem with firebase plugin

I create a fresh nativescript project according to this article by running these commands:
tns create fitApp --appid "..."
cd fitApp
tns plugin add nativescript-plugin-firebase
tns run android
and changed AndroidManifest.xml accordingly and put google-services.json as it said.but i get this error:
Could not find support-compat.jar (com.android.support:support-compat:28.0.0).
Searched in the following locations:
https://maven.google.com/com/android/support/support-compat/28.0.0/support-compat-28.0.0.jar
this is my package.json:
{
"nativescript": {
"id": "...",
"tns-android": {
"version": "5.2.1"
},
"tns-ios": {
"version": "5.2.0"
}
},
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"repository": "<fill-your-repository-here>",
"dependencies": {
"#angular/animations": "~7.2.0",
"#angular/common": "~7.2.0",
"#angular/compiler": "~7.2.0",
"#angular/core": "~7.2.0",
"#angular/forms": "~7.2.0",
"#angular/http": "~7.2.0",
"#angular/platform-browser": "~7.2.0",
"#angular/platform-browser-dynamic": "~7.2.0",
"#angular/router": "~7.2.0",
"nativescript-angular": "~7.2.1",
"nativescript-plugin-firebase": "^8.1.1",
"nativescript-theme-core": "~1.0.4",
"reflect-metadata": "~0.1.12",
"rxjs": "~6.3.0",
"tns-core-modules": "~5.2.0",
"zone.js": "~0.8.26"
},
"devDependencies": {
"#angular/compiler-cli": "~7.2.0",
"#nativescript/schematics": "~0.5.0",
"#ngtools/webpack": "~7.2.0",
"nativescript-dev-typescript": "~0.8.0",
"nativescript-dev-webpack": "~0.20.0"
},
"gitHead": "f548ec926e75201ab1b7c4a3a7ceefe7a4db15af",
"readme": "NativeScript Application"
}
build.gradle:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.1'
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}

Unable to run react native app, which was working before.specifically after installation of prop-types module got failed

Following is the error which I receive when I try to run project.
I tried restarting server several times. Even unable to install new modules. (tried installing prop-types)
The development server returned response error code: 500
URL: http://10.0.3.2:8088/index.android.bundle?platform=android&dev=true&hot=false&minify=false
Body: {"from":"C:\\Users\\user\\Desktop\\NewRNPro\\node_modules\\react\\cjs\\react.production.min.js","to":"prop-types","message":"Unable to resolve module `prop-types` from `C:\\Users\\user\\Desktop\\NewRNPro\\node_modules\\react\\cjs\\react.production.min.js`: Module does not exist in the module map or in these directories:\n C:\\Users\\user\\Desktop\\node_modules\n\nThis might be related to https://github.com/facebook/react-native/issues/4968\nTo resolve try the following:\n 1. Clear watchman watches: `watchman watch-del-all`.\n 2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.\n 3. Reset packager cache: `rm -fr $TMPDIR/react-*` or `npm start --
--reset-cache`.","name":"UnableToResolveError","type":"UnableToResolveError","errors":[{}]} processBundleResult
BundleDownloader.java:170 access$100
BundleDownloader.java:39 onResponse
BundleDownloader.java:139 execute
RealCall.java:135 run
NamedRunnable.java:32 runWorker
ThreadPoolExecutor.java:1113 run
ThreadPoolExecutor.java:588 run
Thread.java:818
package.json
{
"name": "NewRNPro",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"lottie-react-native": "^2.2.0",
"react": "16.0.0-alpha.12",
"react-native": "0.47.1",
"react-native-collapsible": "^0.9.0",
"react-native-drawer": "^2.3.0",
"react-native-drawer-menu": "^0.2.4",
"react-native-elements": "^0.16.0",
"react-native-gridview": "^0.1.1",
"react-native-image-slider": "^1.1.5",
"react-native-scrollable-tab-view": "^0.6.7",
"react-native-snackbar": "^0.4.3",
"react-native-sqlite-storage": "^3.3.3",
"react-native-vector-icons": "^4.3.0",
"react-navigation": "^1.0.0-beta.11",
"react-redux": "^5.0.6"
},
"devDependencies": {
"babel-jest": "20.0.3",
"babel-preset-react-native": "2.1.0",
"jest": "20.0.4",
"react-test-renderer": "16.0.0-alpha.12"
},
"jest": {
"preset": "react-native"
}
}

Categories

Resources