-
-
Notifications
You must be signed in to change notification settings - Fork 38
Type mismatch: inferred type is (Mutable)List<Address!>? but MutableList<Address> was expected #41
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
Comments
It happened to me while trying to compile with SDK 33. The error comes from GeocoderModule.kt:45
However, no problems when using SDK 32. That's because the "Geocoder.getFromLocationName" method has been deprecated in API 33 : Geocoder.getFromLocationName (old) and has been replaced with this one Geocoder.getFromLocationName (new) |
I think it would be great to make a PR for this? |
I made a fork including a quick-fix for API 33 only until I make something cleaner for a pull-request
|
Just passing by to thank you @gaelhuot , that was really helpful! |
I was able to solve with SDK 33 in this way: File: GeocoderModule.tk line 46 - line 48 - |
I'm using this library to fetch locations names, but while building on Android side it is giving me this error:
was expectedType mismatch: inferred type is (Mutable)List<Address!>? but MutableList
Here is my environment
"react-native": "0.69.1"
"@timwangdev/react-native-geocoder": "^1.0.0-alpha.7"
The text was updated successfully, but these errors were encountered: