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

Error: Tried to create Platform View of Unregistered type #129

Open
evandrmb opened this issue Mar 3, 2021 · 7 comments
Open

Error: Tried to create Platform View of Unregistered type #129

evandrmb opened this issue Mar 3, 2021 · 7 comments

Comments

@evandrmb
Copy link

evandrmb commented Mar 3, 2021

I followed the example code from here
and I'm getting this eror:

Unhandled Exception: PlatformException(error, java.lang.IllegalStateException: Trying to create a platform view of unregistered type: plugins.endigo.io/pdfview

StackTrace

E/flutter ( 2418): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
E/flutter ( 2418): , null, null)
E/flutter ( 2418): #0      StandardMethodCodec.decodeEnvelope
package:flutter/…/services/message_codecs.dart:581
E/flutter ( 2418): #1      MethodChannel._invokeMethod
package:flutter/…/services/platform_channel.dart:158
E/flutter ( 2418): <asynchronous suspension>
E/flutter ( 2418): #2      TextureAndroidViewController._sendCreateMessage
package:flutter/…/services/platform_views.dart:1036
E/flutter ( 2418): <asynchronous suspension>
E/flutter ( 2418): #3      AndroidViewController.create
package:flutter/…/services/platform_views.dart:742
E/flutter ( 2418): <asynchronous suspension>
E/flutter ( 2418): #4      RenderAndroidView._sizePlatformView
package:flutter/…/rendering/platform_view.dart:195
E/flutter ( 2418): <asynchronous suspension>
E/flutter ( 2418):
@evandrmb
Copy link
Author

evandrmb commented Mar 3, 2021

This was solved with a flutter clean and a flutter pub get. Unfortunately I still got error:

D/com.shockwave.pdfium.PdfiumCore( 4089): Starting PdfiumAndroid 1.9.0
W/Gralloc4( 4089): allocator 3.x is not supported
W/ilidade_client( 4089): Accessing hidden field Ljava/io/FileDescriptor;->descriptor:I (greylist, reflection, allowed)
D/jniPdfium( 4089): Init FPDF library
D/jniPdfium( 4089): Destroy FPDF library

@Mukhammad1999
Copy link

I followed the example code from here
and I'm getting this eror:

Unhandled Exception: PlatformException(error, java.lang.IllegalStateException: Trying to create a platform view of unregistered type: plugins.endigo.io/pdfview

StackTrace

E/flutter ( 2418): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
E/flutter ( 2418): , null, null)
E/flutter ( 2418): #0      StandardMethodCodec.decodeEnvelope
package:flutter/…/services/message_codecs.dart:581
E/flutter ( 2418): #1      MethodChannel._invokeMethod
package:flutter/…/services/platform_channel.dart:158
E/flutter ( 2418): <asynchronous suspension>
E/flutter ( 2418): #2      TextureAndroidViewController._sendCreateMessage
package:flutter/…/services/platform_views.dart:1036
E/flutter ( 2418): <asynchronous suspension>
E/flutter ( 2418): #3      AndroidViewController.create
package:flutter/…/services/platform_views.dart:742
E/flutter ( 2418): <asynchronous suspension>
E/flutter ( 2418): #4      RenderAndroidView._sizePlatformView
package:flutter/…/rendering/platform_view.dart:195
E/flutter ( 2418): <asynchronous suspension>
E/flutter ( 2418):

Have the same issue.Followed the same tutorial

@opsquid
Copy link

opsquid commented Sep 18, 2022

I'm having the same problem, any solutions?

@hajirmujib
Copy link

uninstall app dan run again

@lat1996vn
Copy link

uninstall app dan run again
it works in my case

@DeraDream
Copy link

I'm having the same problem, any solutions?

@lat1996vn
Copy link

I'm having the same problem, any solutions?

uninstall app and run again. Have you try it yet ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants