homeeondemand / react-native-mapbox-navigation

A navigation UI ready to drop into your React Native application
MIT License
162 stars 123 forks source link

compileSdkVersion is not specified. Please add it to build.gradle #67

Open Arnab2021 opened 2 years ago

Arnab2021 commented 2 years ago

I have created a fresh project. with the mapbox navigation pavkage. my package.json- image

I have followed all the installation instruction... but while building im getting the following error. image

Please help me....

adoniscoder commented 2 years ago

It seems that this library doesn't build with latest version of react-native it is working on version 0.66.1 but it fails in build when I update my react-native version to 0.67.1

C0dekid commented 2 years ago

I have the same issue. I tried to put in the sdkMinVersion myself, but then I got bombed with more errors, anyone got a solution for RN 0.67.1? Downgrading is not an option for me.

Arnab2021 commented 2 years ago

It seems that this library doesn't build with latest version of react-native it is working on version 0.66.1 but it fails in build when I update my react-native version to 0.67.1

Yes it worked ! thanks.... But downgrading it not the solution so if you have another idea please provide...

gciluffo commented 2 years ago

This is because starting with react-native version 0.67.0 they are using Gradle 7

In Gradle 7 they remove support for maven plugin (which is used now) and instead require you to use maven-publish plugin. So changes will have to be made to jive with the newest version of Gradle.

nassery318 commented 2 years ago

This is because starting with react-native version 0.67.0 they are using Gradle 7

In Gradle 7 they remove support for maven plugin (which is used now) and instead require you to use maven-publish plugin. So changes will have to be made to jive with the newest version of Gradle.

Hi @gciluffo @Arnab2021 @C0dekid @adoniscoder , sorry for troubling you guys. I was wondering if you guys have figured out a way to avoid tolls (paid highways) while navigating using this library? I have difficulty doing that, any help will be appreciated.

C0dekid commented 2 years ago

Hi @gciluffo @Arnab2021 @C0dekid @adoniscoder , sorry for troubling you guys. I was wondering if you guys have figured out a way to avoid tolls (paid highways) while navigating using this library? I have difficulty doing that, any help will be appreciated.

No problem. But I stopped using this library as I couldn't get it to work. I have no idea how to avoid paid highways / tolls. Not sure if that's supported in this library or you have to change some settings in MapBox.

walvekarnikhil commented 2 years ago

Is there a fix for this for latest React native version?