Lottie-react-native: error: package com.airbnb.android.react.lottie does not exist

Created on 10 Sep 2018  路  3Comments  路  Source: lottie-react-native/lottie-react-native

hello i found it difficult to use lottie-react-native.
and i hope anyone help me.

i installed lottie and i linked it.
and when i run 'react-native run-android'
i got this error..

Task :app:compileDebugJavaWithJavac FAILED
C:\Users\JUNHYEOK HEO\dev\react-native-firebase-starter-kit\android\app\src\main\java\com\midnightplan\rnfirebasestarterkit\MainApplication.java:7: error: package com.airbnb.android.react.lottie does not exist
import com.airbnb.android.react.lottie.LottiePackage;
^
C:\Users\JUNHYEOK HEO\dev\react-native-firebase-starter-kit\android\app\src\main\java\com\midnightplan\rnfirebasestarterkit\MainApplication.java:48: error: cannot find symbol
new LottiePackage(),
^
symbol: class LottiePackage
2 errors

Versions

"fbjs": "^0.8.17",
"lottie-react-native": "^2.5.8",
"react": "^16.3.2",
"react-native": "^0.55.3",
"react-native-firebase": "^4.3.6"

Most helpful comment

i got this. it missed 'compile' in app/build.gradle

image

All 3 comments

i got this. it missed 'compile' in app/build.gradle

image

i got this. it missed 'compile' in app/build.gradle

image

Hi there.
What might be the modern equivalent of this in 2020? "implementation" or "api" since compile is deprecated.

@devpascoe I think it's implementation

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nthegedus picture nthegedus  路  5Comments

AWrightIV picture AWrightIV  路  3Comments

duringg picture duringg  路  5Comments

willedanielsson picture willedanielsson  路  5Comments

AlirezaAkbarix picture AlirezaAkbarix  路  3Comments