Недавно я обновил свою версию Flutter до 3.35.6. Я обновил файлы .gradle до файлов .gradle.kts. Теперь, если я хочу создать свое приложение на физическом устройстве Android с помощью Flutter Run, я получаю следующую ошибку.
Мои версии:
- Версия Flutter: 3.35.6
- Версия Kotlin: 1.9.24
- com.android.application в android/settings.gradle: 8.6.1
- URL-адрес распределения Gradle в gradle-wrapper.properties: 8.7
Код: Выделить всё
Launching lib/main.dart on Pixel 5 in debug mode...
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/jonaslangbehn/Desktop/dev/parkbestapp_20230924/android/build.gradle.kts' line: 3
* What went wrong:
An exception occurred applying plugin request [id: 'dev.flutter.flutter-gradle-plugin']
> Failed to apply plugin 'dev.flutter.flutter-gradle-plugin'.
> Could not create plugin of type 'FlutterPlugin'.
> Could not generate a decorated class for type FlutterPlugin.
> com/android/builder/model/BuildType
* 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 706ms
Кто-нибудь сталкивался с подобным или знает решение этой проблемы?
Подробнее здесь: https://stackoverflow.com/questions/797 ... dle-plugin