Start a new topic
Solved

[Error] Trying to create a platform view of unregistered type: architectwidget

 

 

 

 

 

 

 


I got error message like below.
Anyone has any idea?
Thank you.

 


===============================


Launching lib\main.dart on Android SDK built for x86 in debug mode...
√ Built build\app\outputs\flutter-apk\app-debug.apk.
Connecting to VM Service at ws://127.0.0.1:24173/93R86LK0Llk=/ws
D/EGL_emulation( 9213): eglMakeCurrent: 0xe8dab040: ver 2 0 (tinfo 0xe0d0fbf0)
D/eglCodecCommon( 9213): setVertexArrayObject: set vao to 0 (0) 1 0
E/flutter ( 9213): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: PlatformException(error, java.lang.IllegalStateException: Trying to create a platform view of unregistered type: architectwidget
E/flutter ( 9213): at io.flutter.plugin.platform.PlatformViewsController$1.createVirtualDisplayForPlatformView(PlatformViewsController.java:192)
E/flutter ( 9213): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(PlatformViewsChannel.java:104)
E/flutter ( 9213): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:59)
E/flutter ( 9213): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
E/flutter ( 9213): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/flutter ( 9213): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:818)
E/flutter ( 9213): at android.os.MessageQueue.nativePollOnce(Native Method)
E/flutter ( 9213): at android.os.MessageQueue.next(MessageQueue.java:336)
E/flutter ( 9213): at android.os.Looper.loop(Looper.java:174)
E/flutter ( 9213): at android.app.ActivityThread.main(ActivityThread.java:7356)
E/flutter ( 9213): at java.lang.reflect.Method.invoke(Native Method)
E/flutter ( 9213): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
E/flutter ( 9213): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
E/flutter ( 9213): , null, null)
E/flutter ( 9213): #0 StandardMethodCodec.decodeEnvelope
E/flutter ( 9213): #1 MethodChannel._invokeMethod
E/flutter ( 9213): <asynchronous suspension>
E/flutter ( 9213): #2 TextureAndroidViewController._sendCreateMessage
E/flutter ( 9213): <asynchronous suspension>
E/flutter ( 9213): #3 AndroidViewController.create
E/flutter ( 9213): <asynchronous suspension>
E/flutter ( 9213): #4 RenderAndroidView._sizePlatformView
E/flutter ( 9213): <asynchronous suspension>
E/flutter ( 9213):
I/Choreographer( 9213): Skipped 31 frames! The application may be doing too much work on its main thread.


Hello,


Could you please provide further details on the issue:

  • Which version of the SDK are you using?
  • Are you using the JS API?
  • Are you using any of our Extensions (Titanium, Cordova, Xamarin, Unity)? If yes, which version are you using?
  • What device does this happen with (os Version and model)?
  • Does this happen also with our sample code or with your own app?


Thanks,

Eva

Which version of the SDK are you using?

: I am using Wikitude SDK 9.9


Are you using the JS API?

 : No I'm not


Are you using any of our Extensions (Titanium, Cordova, Xamarin, Unity)? If yes, which version are you using?

What device does this happen with (os Version and model)?

 [√] Flutter (Channel stable, 2.2.3, on Microsoft Windows [Version 10.0.19043.1110], locale ko-KR)

     • Flutter version 2.2.3

     • Dart version 2.13.4

 [√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)

 [√] Android Studio (version 4.1.0)

     • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

 [√] VS Code (version 1.58.2)

     • Flutter extension version 3.25.0

 [√] Connected device (4 available)

     • Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)


Does this happen also with our sample code or with your own app?

: I used sample source from https://support.wikitude.com/support/discussions/topics/5000092712



Thank you.

 

 

 

 

 

 

 

 

Recently I have been the same error, 

how I can solve it, this issue was marker as a solved issue, but I haven't seen any solution here ! 

  This issue I've touched in recently ....
how I can solve it ? 

Performing hot restart...
Syncing files to device Android SDK built for x86 64...
Restarted application in 1,188ms.
E/flutter (29650): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: PlatformException(error, java.lang.IllegalStateException: Trying to create a platform view of unregistered type: architectwidget
E/flutter (29650): 	at io.flutter.plugin.platform.PlatformViewsController$1.createVirtualDisplayForPlatformView(PlatformViewsController.java:192)
E/flutter (29650): 	at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(PlatformViewsChannel.java:104)
E/flutter (29650): 	at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:59)
E/flutter (29650): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
E/flutter (29650): 	at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/flutter (29650): 	at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:818)
E/flutter (29650): 	at android.os.MessageQueue.nativePollOnce(Native Method)
E/flutter (29650): 	at android.os.MessageQueue.next(MessageQueue.java:336)
E/flutter (29650): 	at android.os.Looper.loop(Looper.java:174)
E/flutter (29650): 	at android.app.ActivityThread.main(ActivityThread.java:7356)
E/flutter (29650): 	at java.lang.reflect.Method.invoke(Native Method)
E/flutter (29650): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
E/flutter (29650): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
E/flutter (29650): , null, null)
E/flutter (29650): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:597:7)
E/flutter (29650): #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:158:18)
E/flutter (29650): <asynchronous suspension>
E/flutter (29650): #2      TextureAndroidViewController._sendCreateMessage (package:flutter/src/services/platform_views.dart:1043:18)
E/flutter (29650): <asynchronous suspension>
E/flutter (29650): #3      AndroidViewController.create (package:flutter/src/services/platform_views.dart:748:5)
E/flutter (29650): <asynchronous suspension>
E/flutter (29650): #4      RenderAndroidView._sizePlatformView (package:flutter/src/rendering/platform_view.dart:193:7)
E/flutter (29650): <asynchronous suspension>
E/flutter (29650):  

  

Which version of the SDK are you using?

: I am using Wikitude SDK 9.9


Are you using the JS API?

 : No I'm not


Are you using any of our Extensions (Titanium, Cordova, Xamarin, Unity)? If yes, which version are you using?

What device does this happen with (os Version and model)?

 [√] Flutter (Channel stable, 2.2.3, on Microsoft Windows [Version 10.0.19043.1110], locale ko-KR)

     • Flutter version 2.2.3

     • Dart version 2.13.4

 [√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)

 [√] Android Studio (version 4.1.0)

     • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

 [√] VS Code (version 1.58.2)

     • Flutter extension version 3.25.0

 [√] Connected device (4 available)

     • Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)


Does this happen also with our sample code or with your own app?

: I used sample source from https://support.wikitude.com/support/discussions/topics/5000092712cookie clicker


Thank you.

I found a workaround thanks to your suggestion here. Thanks for this helpful share.

Login or Signup to post a comment