Old version of gradle has missing dependencies
Could not find com.android.tools:common:25.3.3.
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/common/25.3.3/common-25.3.3.pom
https://jcenter.bintray.com/com/android/tools/common/25.3.3/common-25.3.3.jar
Required by:
project :react-native-vector-icons > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3
project :react-native-vector-icons > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3 > com.android.tools.build:manifest-merger:25.3.3
project :react-native-vector-icons > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3 > com.android.tools.ddms:ddmlib:25.3.3
project :react-native-vector-icons > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3 > com.android.tools.analytics-library:shared:25.3.3
project :react-native-vector-icons > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3 > com.android.tools.analytics-library:tracker:25.3.3
project :react-native-vector-icons > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3 > com.android.tools:sdklib:25.3.3 > com.android.tools.layoutlib:layoutlib-api:25.3.3
project :react-native-vector-icons > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3 > com.android.tools:sdklib:25.3.3 > com.android.tools:dvlib:25.3.3
project :react-native-vector-icons > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3 > com.android.tools:sdklib:25.3.3 > com.android.tools:repository:25.3.3
FIX:
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.4'
}
}
@solonifer Which version are you using? I don't find this issue after upgrading to 6.1.0
@solonifer I fixed the error by adding the following to
node_modules/react-native-vector-icons/android/build.gradle
This is only a temporary fix to allow you to build. I would check if upgrading does the job first.
google() and updated build tools to com.android.tools.build:gradle:3.2.1
```
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
}
}
apply plugin: 'com.android.library'
android {
compileSdkVersion 26
buildToolsVersion "26.0.1"
defaultConfig {
minSdkVersion 16
targetSdkVersion 26
versionCode 1
versionName "1.0"
}
lintOptions {
abortOnError false
}
}
repositories {
mavenCentral()
}
dependencies {
compile "com.facebook.react:react-native:+"
}
``
I had face this issue and wast my time more than 3hr , finally found the solution just update with newer version 6.1.0
Can verify upgrading react-native-vector-icons to 6.1.0 fixes the build issue!
how to upgrade the react-native-vector-icons to 6.1.0 ?
how to upgrade the react-native-vector-icons to 6.1.0 ?
STEP 1. go package.json edit 4.1.0 => 6.1.0
STEP 2. and run npm i or yarn on terminal
STEP 3: run react-native run-android
Hope this help for you
What do we do for libs dependent on older versions? Like the issue I just posted
@vongohren You can do it by you hand.
subprojects {project ->
if (project.name.contains('react-native-vector-icons')) {
buildscript {
repositories {
maven { url "https://dl.bintray.com/android/android-tools/" }
}
}
}
}
You need to add the following section to you _android/build.gradle_ file. It will solve your problem
Can someone explain what's broken here? Is it he repo?
Can someone explain what's broken here? Is it he repo?
Not yet, these packages are (i think) deleted from the jcenter repository :/
Can someone explain what's broken here? Is it he repo?
Not yet, these packages are (i think) deleted from the jcenter repository :/
I hope this is something unexpected and temporary.
@vongohren You can do it by you hand.
subprojects {project -> if (project.name.contains('react-native-vector-icons')) { buildscript { repositories { maven { url "https://dl.bintray.com/android/android-tools/" } } } } }You need to add the following section to you _android/build.gradle_ file. It will solve your problem
Ah I tried that but it failed, but I did not target the particular project.
I did it by upgrading yarn lock file in the depedent library to the version mentioned here
Some packages were mistakenly removed by Google., and they are currently working on putting them back: https://issuetracker.google.com/issues/120759347.
Some packages were mistakenly removed by Google., and they are currently working on putting them back: https://issuetracker.google.com/issues/120759347.
then there is no solution at the moment?
Most helpful comment
I had face this issue and wast my time more than 3hr , finally found the solution just update with newer version 6.1.0