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.

Unable to build on Android after upgrading lottie version 3.5.0 to 4.1.3

See original GitHub issue

After changing from gradle distributionUrl=https://services.gradle.org/distributions/gradle-6.3-bin.zip to distributionUrl=https://services.gradle.org/distributions/gradle-7.1.1-all.zip and upgrade lottie library version in react native from 3.5.0 to 4.1.3 the app was unable to build and prompt the following exception:-

`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.1.1/userguide/command_line_interface.html#sec:command_line_warnings

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • Where: Build file ‘/Users/inphosoftmalaysia/nacli-mobile/node_modules/react-native-reanimated/android/build.gradle’ line: 21

  • What went wrong: A problem occurred evaluating project ‘:react-native-reanimated’.

Plugin with id ‘maven’ not found.

  • 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. ==============================================================================

2: Task failed with an exception.

  • What went wrong: A problem occurred configuring project ‘:react-native-reanimated’.

compileSdkVersion is not specified. Please add it to build.gradle

  • 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 6s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details. Error: Command failed: ./gradlew app:installDevdebug -PreactNativeDevServerPort=8081`

Steps to Reproduce Basically I just upgraded to latest versions:

  1. yarn add lottie-react-native from 3.5.0 to 4.1.3
  2. yarn add lottie-ios from 3.1.8 to 3.2.3
  3. react-native run-android

Expected behavior: To compile Android successfully.

Actual behavior: After step 3, I got the build exception.

Package versions "lottie-ios": "3.2.3", "lottie-react-native": "^4.1.3", "react-native": "0.63.2",

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
comanncommented, Mar 25, 2022

Here is a work-around solution that is working for me.

Add this into the root build.gradle, and it will add a blank ‘compile’ configurations to avoid the crash during configuration evaluation of the Javadocs task.

subprojects { subproject ->
        if(project['name'] == 'react-native-reanimated'){
            project.configurations { compile { } }
        }
}
1reaction
radko93commented, Oct 6, 2021

Seems like it might be a problem with gradle plugin version. Can you try using 6.9 instead of 7.1.1? Also, your React Native version is quite old so it might be an issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to build on Android after upgrading lottie version 3.5.0 to 4.1 ...
Issue has some activity - removing close-when-stale label. Show more. Show less ...
Read more >
lottie-react-native - npm
Lottie is an ecosystem of libraries for parsing Adobe After Effects animations exported as JSON with bodymovin and rendering them natively! For ...
Read more >
New answers tagged build.gradle - Stack Overflow
The project is using an incompatible version (AGP 7.3.0-alpha07) of the Android Gradle plugin. Update your Android Studio to the latest Android Studio...
Read more >
lottie : 3.5.0 - com.airbnb.android - Maven Central
Lottie - Lottie is an animation library that renders Adobe After Effects animations natively in realtime.
Read more >
import of module 'glog.glog.log_severity' appears within namespace ...
I know this is duplicated, since the answered solution doesn't work for me, ... Getting pod error after upgrading lottie-ios to version 3.2.3#808....
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