Skip to content

Instantly share code, notes, and snippets.

@csorlandi
Last active June 7, 2018 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save csorlandi/1f2624c4b2c729ce9bd753ce669f9e99 to your computer and use it in GitHub Desktop.
Save csorlandi/1f2624c4b2c729ce9bd753ce669f9e99 to your computer and use it in GitHub Desktop.
buildscript {
repositories {
...
google() // Linha Adicionada
}
dependencies {
// Versão modificada de 2.2.3 para 3.1.0
classpath 'com.android.tools.build:gradle:3.1.0'
}
}
allprojects {
repositories {
...
google() // Linha Adicionada
maven { url "https://jitpack.io" } // Linha Adicionada
maven {
url "$rootDir/../node_modules/react-native/android"
}
}
}
// Adicionar todo o trecho abaixo
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex') ) {
details.useVersion "26.1.0"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment