Gradle error in an React application

Asked

Viewed 508 times

1

I am creating an application for study with React Native and this error appeared below. Does anyone know how to solve? I’m starting now with React and React Native and I have no idea how to fix it

Could not run phased build action using Gradle Distribution 'https://services.gradle.org/distributions/gradle-5.5-all.zip'. Build file 'c: Users Design Pictures Arq node_modules React-Native-maps lib android build.Gradle' line: 20 A problem occurred evaluating project ':React-Native-maps'. Could not get Unknown Property 'supportLibVersion' for Object of type org.gradle.api.internal.artifacts.dsl.dependencies.Defaultdependencyhandler.

  • Check the installation settings for Android that appear on this link: https://github.com/react-native-community/react-native-maps/blob/master/docs/installation.md

  • I looked and checked. It’s all right. Now another error has arisen as well: https://user-images.githubusercontent.com/31310379/31490178-9cb0a3c6-af32-11e7-9a5b-cfb0ee44d8ee.png

  • It looks like something related to exporting your component. See if this link helps you https://github.com/facebook/react-native/issues/16332

1 answer

0

In your project add this line of code to the android/build.Gradle file supportLibVersion = "28.0.0".

Example:

ext{ //... supportLibVersion = "28.0.0" }

Browser other questions tagged

You are not signed in. Login or sign up in order to post.