React-native-mapbox-gl: Project with path ':mapbox-react-native-mapbox-gl' could not be found in project ':app'.

Created on 5 Mar 2018  路  16Comments  路  Source: nitaliano/react-native-mapbox-gl

hi, i tried install mapbox with android and ios, recently i create a app , with react-native init geroApp, and try install library mapbox, but after executed command "npm install @mapbox/[email protected] --save" and include this lot in Project builder " jcenter()
maven { url "$rootDir/../node_modules/react-native/android" }
maven { url "https://jitpack.io" }
maven { url "https://maven.google.com "
this show this error
when try include add to app:build.gradle
build.gradle compile project(':mapbox-react-native-mapbox-gl') throw this error "Gradle sync failed: Project with path ':mapbox-react-native-mapbox-gl' could not be found in project ':app'.
Consult IDE log for more details (Help | Show Log)"

captura de pantalla 2018-03-04 a la s 10 57 54 p m
captura de pantalla 2018-03-04 a la s 10 58 05 p m

Most helpful comment

All 16 comments

@nitaliano
It's working well. Thanks

Hi,
I have same issue . I am using it from react native.
I have added all necessary options(from Documentation) but still wasnt able to run.
Please Could you help me?
allprojects
dependencies

settigns

Hi,
I have same issue . I am using it from react native.
I have added all necessary options(from Documentation) but still wasnt able to run.
Please Could you help me?
allprojects
dependencies

settigns

I am too. I created a new react-native project, added all and have error when i react-native run-android...

I'm facing exactly the same problem when trying to use this lib inside a react-native project.

I thought I was alone but I am also facing the same issue when trying to install mapbox on android react native...

hey all,
make sure you add this to your projects package.json

    "@mapbox/react-native-mapbox-gl": "nitaliano/react-native-mapbox-gl#master"

The version on npm isn't the latest.
Having this set as the dependency and following the installation guide should do the trick.

mine looks different, ive tried adding like this,
protected List<ReactPackage> getPackages() { List<ReactPackage> packages = new PackageList(this).getPackages(); packages.add(new ModuleRegistryAdapter(mModuleRegistryProvider)); packages.add(new RCTMGLPackage()); return packages; }
from what i read this is how you do it but maybe its a versioning issue?

Hi anyone fix this? I am still getting the error

Kindly share your solution. I have done everything here but I still have the issue.

I followed this the installation guide but still got the error above
Screenshot 2020-09-01 at 14 40 00

@ferdicus. Pls any help would be highly appreciated.

Please read what I posted....

You're using an outdated and deprecated library. Switch to the community-maintained version here: https://github.com/react-native-mapbox-gl/maps

hey all,
make sure you add this to your projects package.json

    "@mapbox/react-native-mapbox-gl": "nitaliano/react-native-mapbox-gl#master"

The version on npm isn't the latest.
Having this set as the dependency and following the installation guide should do the trick.

This one worked! Thank you so much, hours of searching for a tiny bug when it's the wrong version installed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

EwanValentine picture EwanValentine  路  3Comments

lucasbento picture lucasbento  路  3Comments

kristfal picture kristfal  路  3Comments

glennverschooren picture glennverschooren  路  4Comments

vyankat70war picture vyankat70war  路  3Comments