-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MapsPackage wrong argument #305
Comments
did you fix that? |
got the same error. |
Just delete the |
@DennisMG |
Weird.. It worked for me.. I don't get any null error... I'm using React Native 0.26.3 |
@DennisMG solution worked for me. Thank you. |
I am getting the same error and I use the both And I see the MapsPackage class They handling the both compatibility
|
This is error output from command "react-native run-android":
/MainActivity.java:42: error: constructor MapsPackage in class MapsPackage cannot be applied to given types; new MapsPackage(this) ^ required: no arguments found: MainActivity reason: actual and formal argument lists differ in length 1 error :app:compileDebugJavaWithJavac FAILED
MapsPackage.java file is there along with constructor that receives argument of type Activity. I am not sure if this has something to do with it, but first I installed npm package react-native-maps but realized that it is not updated so I installed from github using npm.
Also, I am using react native version 0.27.
The text was updated successfully, but these errors were encountered: