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
[google_maps_flutter] Trying to create an already created platform view #45695
Comments
Hi @Pebsie |
I switched from stable to master and this issue is no longer occurring. |
Hi @iapicca! Same here. I upgraded to the master channel and the error remained. flutter doctor -v:
|
Hi,@thiagotalma! Same here.Have you did this problem? |
same here, didnt found any solution for this |
|
I have the same issue |
i have the same issu here ? How to solve it ? |
I have the same issue |
Same here from long time, but i'm trying to solve it now ... |
I have the same issue |
i have the same issue |
1 similar comment
i have the same issue |
I have the same issue, anyone got solution for this one? |
Hi all, |
@iapicca hi! [√] Android toolchain - develop for Android devices (Android SDK version 29.0.2) [√] Android Studio (version 3.5) [√] IntelliJ IDEA Ultimate Edition (version 2019.3) [√] Connected device (1 available) • No issues found! E/flutter (31354): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: PlatformException(error, java.lang.IllegalStateException: Trying to create an already created platform view, view id: 0 |
I have the same issue |
flutter run --verbose
|
I have the same problem too. |
This is the project I am working with, The main file just calls this Homepage,dart file in the home parameter. The code is not clean as of now but this does give me
|
@szepetry What should I do to see the exception? Also, could you try to reduce code to some simpler version if possible? |
This is the exception I see and I've edited the code to make it shorter above.
|
@cyanglaz Minimal reproducible example from my earlier comment still works. You can use the
|
Interesting. @zacps I don't see any exceptions running your example code. I used flutter run to run the app and shift+r to hot restart. I am not using any tools to run the app, just did a My
|
Mac.... |
Scratch that, after updating again I can no longer reproduce it. Not sure what happened 🤷♂. |
I just upgraded again and it started to work. What |
It seems the issue is resolved after update flutter to master. Closing the issue. |
I have the same problem too. |
1 similar comment
I have the same problem too. |
Could everyone who still has this problem please file a new issue with the exact descriptions what happens, logs and the output of 'flutter doctor -v' please. |
[ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: PlatformException(error, java.lang.IllegalStateException: Trying to create an already created platform view, view id: 0 Flutter Doctor [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2) [✓] Xcode - develop for iOS and macOS (Xcode 11.3.1) [✓] Android Studio (version 3.5) [✓] Connected device (2 available) • No issues found! |
I think this issue can be reproduced when you are using hot reload. |
me too had the same issue and flutter clean don't solve the issue for me (flutter version 1.12.13+hotfix 8) Adding a key (unique one) to the widget (not it's state) solved the issue for me. |
Can you show a code snippet how you used the key to remove the error? |
this the minimum i could use to demonstrate.
|
I have had this same exception What I have noticed is, if I do a hot re-load (Shift+R), I always get this exception but doing a restart of the app from the terminal My 2cents... |
This needs to be reopened |
Hi @AbbasKMoussa @flutter2k20 |
Faced the same problem on linux after upgraded Flutter & Dart to the latest versions. |
I am getting the same error . On hot restart |
I am also getting this error in the emulator by hot reloading the app and on some older android devices when i restart the app after some time. This wont happen after switching to the master branch but as this is the most unstable branch and you shouldnt use it in production this is not really a fix. EDIT: It also now works when you switch to the beta channel, so this might be fixed soon. |
their not problem after build apk??? |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Hi,
When using the google_maps_flutter plugin I'm encountering some weirdness.
When running the app in debug first time everything is fine, but attempts to load the map after a rebuild (just hitting Play on AndroidStudio) the following error is being thrown and the map is blacked out:
If I hit the Stop button then rebuild it after a few moments the error is displayed again but the app loads and works just fine. It seems weird that an error is occurring during runtime then reoccurring during a build. Any advice on this? Sorry that I'm not more technically versed with this sort of thing.
The text was updated successfully, but these errors were encountered: