React-native-firebase: Failed to crunch file

Created on 7 Sep 2017  路  2Comments  路  Source: invertase/react-native-firebase

Issue


I'm getting this error when I sync the project with Gradle files:
https://imgur.com/a/uo0IN
Gradle output:
https://imgur.com/a/KLST3
and when I try to compile, I get:
https://imgur.com/a/L8Fss

Can I fix it? How?

I only installed the RNFirebase nothing else.

Environment

  1. Application Target Platform: Android

  1. Development Operating System:

  1. Build Tools: Android Studio 2.3.3

  1. React Native version: 0.48.1

  1. RNFirebase Version: 2.2.0

  1. Firebase Module: N/A
General

Most helpful comment

Failed to crunch file means studio can't process the file as the file path has reached the max file path length of the operating system. Yay for windows 馃帀

-> Crude way to solve this is to move your project to some folder in the root of your drive, so D:\ in this case.

-> Better way is to change the build directory of your project in your build.gradle file (Project gradle file)

allprojects {
    buildDir = "C:/tmp/${rootProject.name}/${project.name}"
    // ..
    // ...
}

All 2 comments

Failed to crunch file means studio can't process the file as the file path has reached the max file path length of the operating system. Yay for windows 馃帀

-> Crude way to solve this is to move your project to some folder in the root of your drive, so D:\ in this case.

-> Better way is to change the build directory of your project in your build.gradle file (Project gradle file)

allprojects {
    buildDir = "C:/tmp/${rootProject.name}/${project.name}"
    // ..
    // ...
}

This is the issue with the long path of folder, i just replace my project folder its working fine for me.

Was this page helpful?
0 / 5 - 0 ratings