lottie-react-native: Build failed after update
After update to 2.5.0 version (from 2.3.2) build is failing.
I followed the suggestions in #204, but it did not help
unlink lottie-ios unlink lottie-react-native clean the build clean the build folder close XCode remove node modules reinstall node modules relink the 2 lotties
Here is my error:
:app:transformClassesWithDexForDebug FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.io.IOException: Unable to create parent directories of C:\MY-PATH\MY-App\android\app\build\intermediates\pre-dexed\debug\debug_880a1d403a26662e8fd01c1b2464619f21568126.jar
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Any ideas?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 3
- Comments: 24 (4 by maintainers)
In
app/build.gradleadd this π
Works fine
It should be inside android {β¦}, Thanks man ππ»ππ»ππ»
@alexsmartens Can you try adding either one of the below to your
android/app/build.gradleinside theandroid { ... }block and check if it worksor
I had recently updated the library from 2.3.2 to the latest version 2.5.0 but didnβt face this issue. But i have the
dexOptionsin my gradle file.This problem should be solved using these two lines only at least for me π
android/app/build.gradle@alexsmartens check your
android/settings.gradleto make sure you donβt have duplicated entries forlottie-react-native, you should only have these two lines(for lottie):