CariusLars / ar_flutter_plugin

Flutter Plugin for AR (Augmented Reality) - Supports ARKit on iOS and ARCore on Android devices
MIT License
322 stars 233 forks source link

error in kottlin version 1.6.21 and compileSdk 31 #107

Closed Astramo closed 2 years ago

Astramo commented 2 years ago

Flutter forced me to upgrade compileSdk and kotlin version after upgrade I got these errors :

AndroidARView.kt: (124, 54): Null can not be a value of a non-null type String

AndroidARViewFactory.kt: (10, 1): Class 'AndroidARViewFactory' 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

AndroidARViewFactory.kt: (12, 5): 'create' overrides nothing

How can I fix ? please help me