Unact / yandex_mapkit

Flutter implementation of YandexMapkit
MIT License
132 stars 151 forks source link

Ошибка сборки, Gradle 8.7 #360

Closed VladVKozlov closed 1 month ago

VladVKozlov commented 1 month ago

Ошибка:

Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
Running Gradle task 'assembleDebug'...

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':yandex_mapkit'.
> defaultConfig contains custom BuildConfig fields, but the feature is disabled.
  To enable the feature, add the following to your module-level build.gradle:
  `android.buildFeatures.buildConfig true`

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

2: Task failed with an exception.
-----------
* What went wrong:
Failed to query the value of property 'buildFlowServiceProperty'.
> Could not isolate value org.jetbrains.kotlin.gradle.plugin.statistics.BuildFlowService$Parameters_Decorated@4cdcf1bb of type BuildFlowService.Parameters
   > A problem occurred configuring project ':yandex_mapkit'.
      > defaultConfig contains custom BuildConfig fields, but the feature is disabled.
        To enable the feature, add the following to your module-level build.gradle:
        `android.buildFeatures.buildConfig true`

* 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 2s

Решение: Добавить

    android.buildFeatures {
        buildConfig true
    }

в android/build.gradle библиотечного пакета яндекс карт

DCrow commented 1 month ago

Добрый день!

В мастере исправил, в ближайшее время на pub.dev будет новая версия.

DCrow commented 1 month ago

Выложил 4.0.2