Skip to content
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

PlatformException(error, java.lang.IllegalStateException: #57

Open
mz-myfc opened this issue Sep 19, 2022 · 4 comments
Open

PlatformException(error, java.lang.IllegalStateException: #57

mz-myfc opened this issue Sep 19, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@mz-myfc
Copy link

mz-myfc commented Sep 19, 2022

Flutter doesn't work after upgrading to 3.3.1, please update.

Unhandled Exception: PlatformException(error, java.lang.IllegalStateException: Unexpected platform view context. When constructing a platform view in the factory, use the context from PlatformViewFactory

@mz-myfc mz-myfc added the bug Something isn't working label Sep 19, 2022
@manoj-gslab
Copy link

+1

@mz-myfc
Copy link
Author

mz-myfc commented Sep 21, 2022

Solution: After importing Git in the following way, it can be used perfectly. (Flutter 3.3.0 & 3.3.1 & 3.3.2)
Github: https://github.com/xiaoxie/flutter_scan

dependencies:
  flutter:
    sdk: flutter
  flutter_localizations:
    sdk: flutter
  scan:
    git:
      url: https://github.com/xiaoxie/flutter_scan.git
      ref: main

@yinzhiqun
Copy link

Solution:Introducing git, Flutter 3.3.0 & 3.3.1 & 3.3.2 can also be used perfectly. scan: git: url: https://github.com/xiaoxie/flutter_scan.git ref: main

build apk failed, change 'androidx.appcompat:appcompat:1.4.2' to '1.2.0'

@mz-myfc mz-myfc changed the title PlatformException PlatformException(error, java.lang.IllegalStateException: Sep 22, 2022
@yuyaohongzheng
Copy link

compile on • Flutter version 3.3.4 on channel stable , It' work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants