Your project is configured with Android NDK 26.3.11579264, but the following plugin(s) depend on a different Android NDK version:
- path_provider_android requires Android NDK 27.0.12077973
Fix this issue by using the highest Android NDK version (they are backward compatible).
Add the following to D:\New folder (2)\test_flutter\android\app\build.gradle.kts:
android {
ndkVersion = "27.0.12077973"
...
}
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> Multiple task action failures occurred:
> A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
> Resource compilation failed (D:\New folder (2)\test_flutter\build\app\intermediates\incremental\debug\mergeDebugResources\merged.dir\values\values.xml (The system cannot find the path specified). Cause: null). Check logs for more details.
> A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
> Resource compilation failed (D:\New folder (2)\test_flutter\build\app\intermediates\incremental\debug\mergeDebugResources\merged.dir\values-de\values-de.xml (The system cannot find the path specified). Cause: null). Check logs for more details.
> A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
> Resource compilation failed (D:\New folder (2)\test_flutter\build\app\intermediates\incremental\debug\mergeDebugResources\merged.dir\values-hi\values-hi.xml (The system cannot find the path specified). Cause: null). Check logs for more details.
> A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
> Resource compilation failed (D:\New folder (2)\test_flutter\build\app\intermediates\incremental\debug\mergeDebugResources\merged.dir\values-lo\values-lo.xml (The system cannot find the path specified). Cause: null). Check logs 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.
> Get more help at https://help.gradle.org.
BUILD FAILED in 2m 53s
Running Gradle task 'assembleDebug'... 177.2s
Error: Gradle task assembleDebug failed with exit code 1
Подробнее здесь: https://stackoverflow.com/questions/796 ... er-project
Я увидел эту ошибку после добавления зависимости в проекте Flutter ⇐ Android
Форум для тех, кто программирует под Android
-
Anonymous
1750417682
Anonymous
Your project is configured with Android NDK 26.3.11579264, but the following plugin(s) depend on a different Android NDK version:
- path_provider_android requires Android NDK 27.0.12077973
Fix this issue by using the highest Android NDK version (they are backward compatible).
Add the following to D:\New folder (2)\test_flutter\android\app\build.gradle.kts:
android {
ndkVersion = "27.0.12077973"
...
}
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> Multiple task action failures occurred:
> A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
> Resource compilation failed (D:\New folder (2)\test_flutter\build\app\intermediates\incremental\debug\mergeDebugResources\merged.dir\values\values.xml (The system cannot find the path specified). Cause: null). Check logs for more details.
> A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
> Resource compilation failed (D:\New folder (2)\test_flutter\build\app\intermediates\incremental\debug\mergeDebugResources\merged.dir\values-de\values-de.xml (The system cannot find the path specified). Cause: null). Check logs for more details.
> A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
> Resource compilation failed (D:\New folder (2)\test_flutter\build\app\intermediates\incremental\debug\mergeDebugResources\merged.dir\values-hi\values-hi.xml (The system cannot find the path specified). Cause: null). Check logs for more details.
> A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
> Resource compilation failed (D:\New folder (2)\test_flutter\build\app\intermediates\incremental\debug\mergeDebugResources\merged.dir\values-lo\values-lo.xml (The system cannot find the path specified). Cause: null). Check logs 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.
> Get more help at https://help.gradle.org.
BUILD FAILED in 2m 53s
Running Gradle task 'assembleDebug'... 177.2s
Error: Gradle task assembleDebug failed with exit code 1
Подробнее здесь: [url]https://stackoverflow.com/questions/79673271/i-saw-these-error-after-adding-dependency-in-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антехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия