Что я установил для обновления: < /p>
java jdk 17.0.14 < /li>
java jdk 17.0.14 < /li> 7.6.5 < /li>
nodejs 22.16.0 < /li>
Cordova-cli v12.0 < /li>
Cordova-android v13.0 < /li>
< /ul>
Однако мое приложение не удается с помощью следующей (конфликту
Код: Выделить всё
> Configure project :app
strippedNativeLibsDir is deprecated and no longer used. Please remove it from your build configuration.
> Task :app:mapDebugSourceSetPaths FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mapDebugSourceSetPaths'.
> Error while evaluating property 'extraGeneratedResDir' of task ':app:mapDebugSourceSetPaths'.
> Failed to calculate the value of task ':app:mapDebugSourceSetPaths' property 'extraGeneratedResDir'.
> Querying the mapped value of provider(java.util.Set) before task ':app:processDebugGoogleServices' has completed is not supported
* 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.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 26s
10 actionable tasks: 5 executed, 5 up-to-date
Command failed with exit code 1: c:\Users\rolin\dev\myApp\platforms\android\tools\gradlew.bat cdvBuildDebug
[ERROR] An error occurred while running subprocess cordova.
cordova.cmd build android exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
< /code>
Может ли кто -нибудь помочь мне расшифровать это? Кроме того, я в замешательстве, потому что у меня установлен Gradle 7.6.5 . Пытается ли он использовать 7.6.5, 8.7 или v9? > Ошибка при оценке свойства 'extrageneratedresdir' of task
, что привело меня к/myapp/platforms/android/build files
в cdv-gradle-config.json, он перечисляет:
Код: Выделить всё
{"MIN_SDK_VERSION":24,
"SDK_VERSION":34,
"COMPILE_SDK_VERSION":34,
**"GRADLE_VERSION":"8.7",**
"MIN_BUILD_TOOLS_VERSION":"34.0.0",
"AGP_VERSION":"8.3.0",
"KOTLIN_VERSION":"1.9.24",
"ANDROIDX_APP_COMPAT_VERSION":"1.6.1",
"ANDROIDX_WEBKIT_VERSION":"1.6.0",
"ANDROIDX_CORE_SPLASHSCREEN_VERSION":"1.0.0",
"GRADLE_PLUGIN_GOOGLE_SERVICES_VERSION":"4.3.15",
"IS_GRADLE_PLUGIN_GOOGLE_SERVICES_ENABLED":false,
"IS_GRADLE_PLUGIN_KOTLIN_ENABLED":false,
"PACKAGE_NAMESPACE":"com.myapp",
"JAVA_SOURCE_COMPATIBILITY":8,
"JAVA_TARGET_COMPATIBILITY":8,
"KOTLIN_JVM_TARGET":null}
Код: Выделить всё
>gradle --version
------------------------------------------------------------
Gradle 7.6.5
------------------------------------------------------------
Build time: 2025-06-04 13:02:22 UTC
Revision: 13a09d0cc61025596acd4acf05d1980a79838906
Kotlin: 1.7.10
Groovy: 3.0.13
Ant: Apache Ant(TM) version 1.10.13 compiled on January 4 2023
JVM: 17.0.14 (Oracle Corporation 17.0.14+8-LTS-191)
OS: Windows 10 10.0 amd64
Подробнее здесь: https://stackoverflow.com/questions/796 ... adle-error
Мобильная версия