Hi, currently I'm writing a project which hope use arcore with flutter. But when I try to run the example in my local, I got an error message like this:
Could you please tell me why the error occured?
Error message
Launching lib/main.dart on Pixel 6a in debug mode...
e: /Users/xiaogeamadeus/.pub-cache/hosted/pub.dev/arcore_flutter_plugin-0.0.11/android/src/main/kotlin/com/difrancescogianmarco/arcore_flutter_plugin/ArcoreFlutterPlugin.kt: (32, 74): Type mismatch: inferred type is Activity? but Activity was expected
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':arcore_flutter_plugin:compileDebugKotlin'.
A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
Compilation error. See log for more details
Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Check Plugin Documentation of the arcore_flutter_plugin package to see if there are any specific setup instructions that you might have missed.
Check Code at Line 32 Open the ArcoreFlutterPlugin.kt file located at the specified path on line 32. Look for any type-related issues, especially related to the Activity type.
Try cleaning and rebuilding your project:
flutter clean
flutter pub get
flutter run
7.Run flutter doctor to check if there are any issues with your Flutter installation or configuration.
Hi, currently I'm writing a project which hope use arcore with flutter. But when I try to run the example in my local, I got an error message like this: Could you please tell me why the error occured?
Error message
Launching lib/main.dart on Pixel 6a in debug mode... e: /Users/xiaogeamadeus/.pub-cache/hosted/pub.dev/arcore_flutter_plugin-0.0.11/android/src/main/kotlin/com/difrancescogianmarco/arcore_flutter_plugin/ArcoreFlutterPlugin.kt: (32, 74): Type mismatch: inferred type is Activity? but Activity was expected
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':arcore_flutter_plugin:compileDebugKotlin'.
Try:
Get more help at https://help.gradle.org
BUILD FAILED in 12s Running Gradle task 'assembleDebug'... 13.6s Exception: Gradle task assembleDebug failed with exit code 1