arcore_flutter_plugin
arcore_flutter_plugin copied to clipboard
Issue with plugin
I imported your project from github but when I run the app it gave me errors which i resolved somehow but at the end i got stuck with this error.
e: C:\Users\shera\StudioProjects\arcore_flutter_plugin-master\android\src\main\kotlin\com\difrancescogianmarco\arcore_flutter_plugin\ArCoreViewFactory.kt: (12, 1): Class 'ArCoreViewFactory' is not abstract and does not implement abstract base class member public abstract fun create(p0: Context?, p1: Int, p2: Any?): PlatformView defined in io.flutter.plugin.platform.PlatformViewFactory e: C:\Users\shera\StudioProjects\arcore_flutter_plugin-master\android\src\main\kotlin\com\difrancescogianmarco\arcore_flutter_plugin\ArCoreViewFactory.kt: (14, 5): 'create' overrides nothing e: C:\Users\shera\StudioProjects\arcore_flutter_plugin-master\android\src\main\kotlin\com\difrancescogianmarco\arcore_flutter_plugin\ArcoreFlutterPlugin.kt: (32, 74): Type mismatch: inferred type is Activity? but Activity was expected
Any solution?
same issue
Hi @giandifra Can you address this issue. It's in your example app and if I create a new app it still persists.
try this
line 246
override fun onActivityCreated(activity: Activity? , savedInstanceState: Bundle?)
should become
override fun onActivityCreated(activity: Activity , savedInstanceState: Bundle?)