React-native-vector-icons: resolve error could not resolve all artifacts for configuration ':react-native-vector-icons: classpath'.

Created on 18 May 2019  路  5Comments  路  Source: oblador/react-native-vector-icons

i'm want react-native run on mobile width wifi but get this error later run (react-native run-android) for install app into mobile
and i install react-native-vector-icons but not work
Thanks for your help

error  react-native run android1

error  react-native run android2

Most helpful comment

In android/build.gradle, I changed:

allprojects {
    repositories {
        // ...
        jcenter()
        maven { url 'https://jitpack.io' }
    }
}

to

allprojects {
    repositories {
        // ...
        maven { url 'https://jitpack.io' }
        jcenter()
    }
}

And it worked...

All 5 comments

I had this error when I upgraded to react-native 0.59.4

Fixed this for android by adding:
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
to android/app/build.gradle

I had this error when I upgraded to react-native 0.59.4

Fixed this for android by adding:
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
to android/app/build.gradle

Im also getting same error and i added apply from: "../../node_modules/react-native-vector-icons/fonts.gradle" this to android/app/build.gradle but same isssue

I solved this by changing // classpath 'com.android.tools.build:gradle:3.1.4' in react-native-vector-icons/android/build.gralde to classpath 'com.android.tools.build:gradle:3.3.1', it works for me

In android/build.gradle, I changed:

allprojects {
    repositories {
        // ...
        jcenter()
        maven { url 'https://jitpack.io' }
    }
}

to

allprojects {
    repositories {
        // ...
        maven { url 'https://jitpack.io' }
        jcenter()
    }
}

And it worked...

@SamiChab it did not helped me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

peacechen picture peacechen  路  3Comments

AbhayVarshney picture AbhayVarshney  路  3Comments

alihesari picture alihesari  路  3Comments

lossen picture lossen  路  4Comments

jakewtaylor picture jakewtaylor  路  4Comments