Skip to content

Instantly share code, notes, and snippets.

@matheusnascgomes
Created January 9, 2019 02:09
Show Gist options
  • Select an option

  • Save matheusnascgomes/d09106a119d5ad52da96446256404db2 to your computer and use it in GitHub Desktop.

Select an option

Save matheusnascgomes/d09106a119d5ad52da96446256404db2 to your computer and use it in GitHub Desktop.
Setup da Biblioteca react-native-share
console.log('');
@matheusnascgomes
Copy link
Author

matheusnascgomes commented Jan 9, 2019

AMBIENTE
React Native version: "0.56.0"
React Native platform + platform version: Android 8.0
react-native-share Version: "^1.1.3"

POSSÍVEL ERRO DE DIVERGÊNCIA DE VERSÕES DO GRADLE
Descrição: Project :app declares a dependency from configuration 'compile' to configuration 'default' which is not declared in the descriptor for project :react-native-share

50720132-fb0ae200-1085-11e9-817d-f18513d19eb5

COMO RESOLVER

Atualizar versão do Gradle

yarn add react-native-update-gradle ou npm install react-native-update-gradle
react-native link

Obs.: Esta biblioteca faz com que seja possível atualizar a versão do Gradle para a mais recente.
https://github.com/rhdeck/react-native-update-gradle

VERSÕES DO GRADLE SUPORTADAS COM SUCESSO
Versão do Gradle do Projeto: 3.2.1
Versão do Gradle do react-native-share: 3.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment