Я установил Flutter SDK и Android Studio и все настроил. Однако, когда я пытаюсь запустить проект, я сталкиваюсь с этой ошибкой.
Версия Flutter: 3.27.1
Версия Java: 17.0.3
Сообщение об ошибке:
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
Checking the license for package Android SDK Platform 34 in C:\Users\LogithJ\AppData\Local\Android\Sdk\licenses
License for package Android SDK Platform 34 accepted.
Preparing "Install Android SDK Platform 34 (revision: 3)".
"Install Android SDK Platform 34 (revision: 3)" ready.
Installing Android SDK Platform 34 in C:\Users\LogithJ\AppData\Local\Android\Sdk\platforms\android-34
"Install Android SDK Platform 34 (revision: 3)" complete.
"Install Android SDK Platform 34 (revision: 3)" finished.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
> Android resource linking failed
aapt2.exe E 01-13 13:06:02 4124 1996 LoadedArsc.cpp:94] RES_TABLE_TYPE_TYPE entry offsets overlap actual entry data.
aapt2.exe E 01-13 13:06:02 4124 1996 ApkAssets.cpp:149] Failed to load resources table in APK 'C:\Users\LogithJ\AppData\Local\Android\Sdk\platforms\android-35\android.jar'.
error: failed to load include path C:\Users\LogithJ\AppData\Local\Android\Sdk\platforms\android-35\android.jar.
* 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 3m 10s
Running Gradle task 'assembleDebug'... 191.9s
┌─ Flutter Fix ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ [!] Using compileSdk 35 requires Android Gradle Plugin (AGP) 8.1.0 or higher. │
│ Please upgrade to a newer AGP version. The version of AGP that your project uses is likely defined in: │
│ C:\Users\LogithJ\projects\\android\settings.gradle, │
│ in the 'plugins' closure (by the number following "com.android.application"). │
│ Alternatively, if your project was created with an older version of the templates, it is likely │
│ in the buildscript.dependencies closure of the top-level build.gradle: │
│ C:\Users\LogithJ\projects\\android\build.gradle, │
│ as the number following "com.android.tools.build:gradle:". │
│ │
│ Finally, if you have a strong reason to avoid upgrading AGP, you can temporarily lower the compileSdk version in the following file: │
│ C:\Users\LogithJ\projects\\android\app\build.gradle │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Error: Gradle task assembleDebug failed with exit code 1```
Подробнее здесь: https://stackoverflow.com/questions/793 ... er-project
Получаю эту ошибку при попытке запустить проект флаттера ⇐ Android
Форум для тех, кто программирует под Android
-
Anonymous
1736767972
Anonymous
Я установил Flutter SDK и Android Studio и все настроил. Однако, когда я пытаюсь запустить проект, я сталкиваюсь с этой ошибкой.
[b]Версия Flutter:[/b] 3.27.1
[b]Версия Java:[/b] 17.0.3
[b]Сообщение об ошибке:[/b]
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
Checking the license for package Android SDK Platform 34 in C:\Users\LogithJ\AppData\Local\Android\Sdk\licenses
License for package Android SDK Platform 34 accepted.
Preparing "Install Android SDK Platform 34 (revision: 3)".
"Install Android SDK Platform 34 (revision: 3)" ready.
Installing Android SDK Platform 34 in C:\Users\LogithJ\AppData\Local\Android\Sdk\platforms\android-34
"Install Android SDK Platform 34 (revision: 3)" complete.
"Install Android SDK Platform 34 (revision: 3)" finished.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
> Android resource linking failed
aapt2.exe E 01-13 13:06:02 4124 1996 LoadedArsc.cpp:94] RES_TABLE_TYPE_TYPE entry offsets overlap actual entry data.
aapt2.exe E 01-13 13:06:02 4124 1996 ApkAssets.cpp:149] Failed to load resources table in APK 'C:\Users\LogithJ\AppData\Local\Android\Sdk\platforms\android-35\android.jar'.
error: failed to load include path C:\Users\LogithJ\AppData\Local\Android\Sdk\platforms\android-35\android.jar.
* 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 3m 10s
Running Gradle task 'assembleDebug'... 191.9s
┌─ Flutter Fix ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ [!] Using compileSdk 35 requires Android Gradle Plugin (AGP) 8.1.0 or higher. │
│ Please upgrade to a newer AGP version. The version of AGP that your project uses is likely defined in: │
│ C:\Users\LogithJ\projects\\android\settings.gradle, │
│ in the 'plugins' closure (by the number following "com.android.application"). │
│ Alternatively, if your project was created with an older version of the templates, it is likely │
│ in the buildscript.dependencies closure of the top-level build.gradle: │
│ C:\Users\LogithJ\projects\\android\build.gradle, │
│ as the number following "com.android.tools.build:gradle:". │
│ │
│ Finally, if you have a strong reason to avoid upgrading AGP, you can temporarily lower the compileSdk version in the following file: │
│ C:\Users\LogithJ\projects\\android\app\build.gradle │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Error: Gradle task assembleDebug failed with exit code 1```
Подробнее здесь: [url]https://stackoverflow.com/questions/79351538/getting-this-error-while-try-to-run-the-flutter-project[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия