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

R1ckye picture R1ckye  路  68Comments

thiagoterleski picture thiagoterleski  路  55Comments

rangav picture rangav  路  43Comments

rborn picture rborn  路  75Comments

rborn picture rborn  路  72Comments