React-native-maps: cannot find symbol new MapsPackage() in MainApplication

Created on 17 Aug 2016  路  3Comments  路  Source: react-native-maps/react-native-maps

I followed the installation guide but the build fails when I run react-native run-android, and the command line gives me this error:
image

Most helpful comment

You need to add import com.airbnb.android.react.maps.MapsPackage; to your MainApplication.java file. It isn't mentioned in the documentation so the manual installation of the module will fail if this import line isn't present.

All 3 comments

You need to add import com.airbnb.android.react.maps.MapsPackage; to your MainApplication.java file. It isn't mentioned in the documentation so the manual installation of the module will fail if this import line isn't present.

Thank you! it solved the cannot find symbol problem.

Documentation updated in #439.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jackcbrown89 picture jackcbrown89  路  3Comments

iSimar picture iSimar  路  3Comments

Anandks1993 picture Anandks1993  路  3Comments

HiroNonoyama picture HiroNonoyama  路  3Comments

npomfret picture npomfret  路  3Comments