oblador / react-native-vector-icons

Customizable Icons for React Native with support for image source and full styling.
https://oblador.github.io/react-native-vector-icons/
MIT License
17.37k stars 2.12k forks source link

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

Open reactnative098 opened 5 years ago

reactnative098 commented 5 years ago

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

Balanced02 commented 5 years ago

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

patthipati commented 5 years ago

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

AliTalebi commented 5 years ago

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

SamiChab commented 4 years ago

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

coolvasanth commented 4 years ago

@SamiChab it did not helped me.

caolong0204 commented 2 years ago

Now is 4- 2022, and i'm still getting error