Skip to content
This repository was archived by the owner on Sep 4, 2021. It is now read-only.
This repository was archived by the owner on Sep 4, 2021. It is now read-only.

Error : Native Module RNGeocoder tried to override RNGeocoderModule  #96

@NgesBrian

Description

@NgesBrian

I need to get the location of a Particular area using react-native-geocoder package that is Street Address, City and Country.

When I follow the tutorial and edit my MainApplication.java, setting.gradle and build.gradle, I get the following error on emulator screen;

native module RNGeocoder tried to override RNGeocoderModule. Check the getPackages() method in MainApplication.java, it might be that module is being created twice . if this was your intention set canoverrideExistingModule=true

MainApplication.java looks like;

import com.devfd.RNGeocoder.RNGeocoderPackage;
......
@OverRide
protected List getPackages() {
@SuppressWarnings("UnnecessaryLocalVariable")
List packages = new PackageList(this).getPackages();
packages.add(new RNGeocoderPackage());
return packages;
}

I am using ;
"react-native": "0.60.4",
"react": "16.8.6",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions