Однако, вероятно, из-за зависимостиagora_rtc_engine от iris_method_channel я не могу собрать или запустить приложение, что приводит к ошибке:
Код: Выделить всё
A problem occurred configuring project ':iris_method_channel'.
> com.android.builder.errors.EvalIssueException: [CXX1110] Platform version 16 is unsupported
by this NDK. Please change minSdk to at least 21 to avoid undefined behavior. To suppress this error,
add android.ndk.suppressMinSdkVersionError=21 to the project's
gradle.properties or set android.experimentalProperties["android.ndk.suppressMinSdkVersionError"]=21 in the Gradle build file.
Код: Выделить всё
android.ndk.suppressMinSdkVersionError=21Код: Выделить всё
ERROR: Missing classes detected while running R8. Please add the missing classes or apply additional keep rules
that are generated in /Users/../flutter/build/app/outputs/mapping/release/missing_rules.txt.
ERROR: R8: Missing class com.google.devtools.build.android.desugar.runtime.ThrowableExtension
(referenced from: java.lang.String io.agora.base.internal.Logging.getStackTraceString(java.lang.Throwable) and 23 other contexts)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:minifyReleaseWithR8'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.R8Task$R8Runnable
> Compilation failed to complete
Код: Выделить всё
Flutter version: 3.24.3
JDK version: 23
Gradle version: 8.10.2
AGP version: 8.7.0
Kotlin version: 1.9.24
minSdkVersion: 21
targetSdkVersion: 35
compileSdkVersion: 35
ndkVersion: 28.0.12433566
Также пробовал:
[*]Недействительный кеш и перезапуск
[*]./gradlew clean //некоторые другие команды для удаления кэша Gradle
< /ul>
Пожалуйста, помогите мне здесь.
Подробнее здесь: https://stackoverflow.com/questions/790 ... roject-iri
Мобильная версия