React-native-vector-icons: error: package com.oblador.vectoricons does not exist import com.oblador.vectoricons.VectorIconsPackage;

Created on 8 Nov 2016  路  4Comments  路  Source: oblador/react-native-vector-icons

I get this error when trying to release the app on Android:

error: package com.oblador.vectoricons does not exist
import com.oblador.vectoricons.VectorIconsPackage;

I am using React Native v0.33. And the latest version of this package (v3.0.0).

Is there something I can do or is this a bug?

Thanks!

Most helpful comment

@EvNaverniouk Check your build.gradle file on /android/app. I forgot to put
compile project(':react-native-vector-icons')
and got the same error like this one.

All 4 comments

I am also having this issue after upgrading to v3.0.0. @afilp How did you fix it?

@EvNaverniouk Check your build.gradle file on /android/app. I forgot to put
compile project(':react-native-vector-icons')
and got the same error like this one.

thanks answer of yray ,but doc is just show to us that add "apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"

@yray <3
I am adding some latest info 馃憤
In the android/app in dependencies

dependencies{
implementation project(':react-native-vector-icons')
}

as compile is considered obsolete . 馃憤

Was this page helpful?
0 / 5 - 0 ratings