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.
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.
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)