Skip to content
This repository has been archived by the owner on Mar 27, 2022. It is now read-only.

The new embedding does not support the old FlutterView. #19

Open
tzachov opened this issue Oct 1, 2020 · 0 comments
Open

The new embedding does not support the old FlutterView. #19

tzachov opened this issue Oct 1, 2020 · 0 comments

Comments

@tzachov
Copy link

tzachov commented Oct 1, 2020

Plugin Version: play_games 0.5.5

Calling await PlayGames.setPopupOptions() after successful signin throws an exception:

Looks like #12 that was resolved.

E/MethodChannel#play_games(19979): java.lang.UnsupportedOperationException: The new embedding does not support the old FlutterView.
E/MethodChannel#play_games(19979): 	at io.flutter.embedding.engine.plugins.shim.ShimRegistrar.view(ShimRegistrar.java:82)
E/MethodChannel#play_games(19979): 	at xyz.luan.games.play.playgames.Request.setPopupOptions(Request.java:192)
E/MethodChannel#play_games(19979): 	at xyz.luan.games.play.playgames.Request.handle(Request.java:95)
E/MethodChannel#play_games(19979): 	at xyz.luan.games.play.playgames.PlayGamesPlugin.onMethodCall(PlayGamesPlugin.java:142)
E/MethodChannel#play_games(19979): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:230)
E/MethodChannel#play_games(19979): 	at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/MethodChannel#play_games(19979): 	at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:692)
E/MethodChannel#play_games(19979): 	at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#play_games(19979): 	at android.os.MessageQueue.next(MessageQueue.java:335)
E/MethodChannel#play_games(19979): 	at android.os.Looper.loop(Looper.java:183)
E/MethodChannel#play_games(19979): 	at android.app.ActivityThread.main(ActivityThread.java:7656)
E/MethodChannel#play_games(19979): 	at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#play_games(19979): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
E/MethodChannel#play_games(19979): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
E/flutter (19979): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: PlatformException(error, The new embedding does not support the old FlutterView., null)
E/flutter (19979): #0      StandardMethodCodec.decodeEnvelope 
package:flutter/…/services/message_codecs.dart:572
E/flutter (19979): #1      MethodChannel._invokeMethod 
package:flutter/…/services/platform_channel.dart:161
E/flutter (19979): <asynchronous suspension>
E/flutter (19979): #2      MethodChannel.invokeMethod 
package:flutter/…/services/platform_channel.dart:334
E/flutter (19979): #3      PlayGames.setPopupOptions 
package:play_games/play_games.dart:148
E/flutter (19979): #4      UserService.loadUser 
package:in_common/services/user-service.dart:23
flutter doctor -v output
[√] Flutter (Channel stable, 1.20.4, on Microsoft Windows [Version 10.0.18363.1082], locale en-IL)
    • Flutter version 1.20.4 at C:\bin\flutter
    • Framework revision fba99f6cf9 (2 weeks ago), 2020-09-14 15:32:52 -0700
    • Engine revision d1bc06f032
    • Dart version 2.9.2

 
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at C:\Users\tzachov\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.1
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Android Studio (version 4.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 47.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] VS Code, 64-bit edition (version 1.49.2)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.15.0

[√] Connected device (1 available)
    • sdk gphone x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)

• No issues found!
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant