- Что пошло не так:
Не удалось выполнить задачу ':sqflite_android:compileDebugJavaWithJavac'.
Не удалось преобразовать ядро для системы -modules.jar для соответствия атрибутам {artifactType=_internal_android_jdk_image, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
> Не удалось выполнить JdkImageTransform: C:\Users\hhh25\AppData\ Local\Android\Sdk\platforms\android-34\core-for-system-modules.jar.
> Ошибка при выполнении процесса C:\Program Files\Android\Android Studio\jbr\bin\jlink.exe с помощью аргументы {--module-path C:\Users\hhh25.gradle\caches\transforms-3\4a46fc89ed5f9adfe3afebf74eb8bfeb\transformed\output\temp\jmod --add-modules java.base --output C:\Users\hhh25.gradle \caches\transforms-3\4a46fc89ed5f9adfe3afebf74eb8bfeb\transformed\output\jdkImage --disable-plugin system-modules
- Попробуйте :
Запустите с --info или - -debug, чтобы получить больше результатов журнала.
Запустите с помощью --scan, чтобы получить полную информацию.
Дополнительную помощь можно получить на https://help.gradle.org.
< /blockquote>
ОШИБКА СБОРКИ через 13 с
Выполнение задачи Gradle 'assembleDebug'... 15,0 с
Ошибка: сбой задачи Gradle assembleDebug с кодом завершения 1
Я пробовал следующее:
- Установка старых версий по-прежнему не помогает. не работает
- удаление зависимости sqflite, работает
[√] Flutter (Channel stable, 3.24.4, on Microsoft Windows [Version 10.0.19045.5011], locale en-US)
• Flutter version 3.24.4 on channel stable at C:\fluterdev\flutter_windows_3.24.3-stable\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 603104015d (12 days ago), 2024-10-24 08:01:25 -0700
• Engine revision db49896cf2
• Dart version 3.5.4
• DevTools version 2.37.3
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
• Android SDK at C:\Users\hhh25\AppData\Local\Android\Sdk
• Platform android-35, build-tools 35.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 21.0.3+-12282718-b509.11)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[X] Visual Studio - develop Windows apps
X Visual Studio not installed; this is necessary to develop Windows apps.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2024.2)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.3+-12282718-b509.11)
[√] VS Code (version 1.95.1)
• VS Code at C:\Users\hhh25\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.100.0
[√] Connected device (4 available)
• SM M215G (mobile) • RZ8R80P4K2W • android-arm64 • Android 13 (API 33)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.5011]
• Chrome (web) • chrome • web-javascript • Google Chrome 130.0.6723.92
• Edge (web) • edge • web-javascript • Microsoft Edge 130.0.2849.68
[√] Network resources
• All expected network resources are available.
Вот мой файл зависимостей:
name: mabi3ati
description: "A new Flutter project."
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment:
sdk: ^3.5.3
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.8
sqflite: ^2.2.0
intl: ^0.19.0
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^4.0.0
flutter:
uses-material-design: true
Подробнее здесь: https://stackoverflow.com/questions/791 ... t-run-time
Мобильная версия