mapbox / mapbox-maps-flutter

Interactive, thoroughly customizable maps for Flutter powered by Mapbox Maps SDK
https://www.mapbox.com/mobile-maps-sdk
Other
288 stars 119 forks source link

Version 0.4.5 causes for Android the build error "Unresolved reference: MapboxMapController" #263

Closed Xennis closed 1 year ago

Xennis commented 1 year ago

Thanks for releasing the new version 0.4.5 (#262) :rocket: .

The version 0.4.4 worked just fine for me. After updating to the new version I got the following when running the app:

Launching lib/main.dart on Pixel 4a in debug mode...
e: file:///home/name/.pub-cache/hosted/pub.dev/mapbox_maps_flutter-0.4.5/android/src/main/kotlin/com/mapbox/maps/mapbox_maps/MapboxMapFactory.kt:131:12 Unresolved reference: MapboxMapController

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':mapbox_maps_flutter: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.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)

* 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.
==============================================================================

* Get more help at https://help.gradle.org

BUILD FAILED in 27s
Exception: Gradle task assembleDebug failed with exit code 1

Exited (1).
Xennis commented 1 year ago

Somehow running this Gradle tasks manually (./gradlew :mapbox_maps_flutter:compileDebugKotlin) just worked. Mo issues afterwards anymore.