Я увидел эту ошибку после добавления зависимости в проекте FlutterAndroid

Форум для тех, кто программирует под Android
Ответить
Anonymous
 Я увидел эту ошибку после добавления зависимости в проекте Flutter

Сообщение 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


Подробнее здесь: https://stackoverflow.com/questions/796 ... er-project
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Android»