有人可以帮我指导我为 android SDK 33 设置堆栈吗?

问题描述 投票:0回答:1

就上下文而言,我使用科尔多瓦。我已经从 android studio 安装了构建工具 33.0.0、gradle 版本 7.6 并更改了我的环境变量。我的 gradle 位于 C:\gradle,我已进入 7.6/bin 文件夹并运行 gradle.bat,在命令提示符下运行命令“gradle -v”以确保其正确,将我的 config.xml 文件更改为说“”不带引号,创建一个将提拉米苏作为系统映像的模拟器,然后重新启动我的物理机。当我运行: cordova platform add [email protected] 时,它可以使用 Android Target SKD: android-33 和 Android Compile SDK:33 正常构建,这是我的插件列表,以防万一: at.modal.cordova.plugin.cache 1.1.0“缓存” cordova-plugin-advanced-http 3.3.1 “高级 HTTP 插件” cordova-plugin-camera 6.0.0“相机” cordova-plugin-device 2.1.0“设备” cordova-plugin-dialogs 2.0.2“通知” cordova-plugin-file 7.0.0“文件” cordova-plugin-firebasex 16.0.0“Google Firebase 插件” cordova-plugin-native-settings 1.0.0“NativeSettings” cordova-plugin-statusbar 3.0.0“状态栏” cordova-plugin-x-socialsharing 6.0.4“社交共享” es6-promise-plugin 4.2.2 “承诺” ionic-plugin-keyboard 2.2.1 “键盘”

我尝试运行:cordova run android

我明白了

C:\Users\*****an\APP_DEV\******_APP\APP>cordova run android
cordova-plugin-firebasex: Preparing Firebase on Android
Checking Java JDK and Android SDK versions
ANDROID_HOME=C:\Users\*****an\AppData\Local\Android\Sdk (recommended setting)
ANDROID_SDK_ROOT=C:\Users\*****an\AppData\Local\Android\Sdk (DEPRECATED)
Using Android SDK: C:\Users\*****an\AppData\Local\Android\Sdk

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.6/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 990ms
1 actionable task: 1 executed
Subproject Path: CordovaLib
Subproject Path: app

> Configure project :app
strippedNativeLibsDir is deprecated and no longer used. Please remove it from your build configuration.

> Task :CordovaLib:compileDebugRenderscript
The RenderScript APIs are deprecated. They will be removed in Android Gradle plugin 9.0. See the following link for a guide to migrate from RenderScript: https://developer.android.com/guide/topics/renderscript/migrate

> 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 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.6/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 3s
11 actionable tasks: 11 executed
Command failed with exit code 1: C:\Users\*****an\APP_DEV\******_APP\APP\platforms\android\gradlew -b C:\Users\*****an\APP_DEV\******_APP\APP\platforms\android\build.gradle cdvBuildDebug

是的,我已经尝试过: gradle --stacktrace 但没有尝试做它“建议”的事情

android cordova gradle build-tools
1个回答
0
投票

我已经全部弄清楚了。 构建工具 32.0.0,gradle 7.6,android-minSdkVersion =24,android-targetSdkVersion =33,android studio 版本 Giraffe 2022.3.1 Patch 1,cordova-plugin-firebasex 16.1.0,使用 Android 13.0 Google Play 制作的模拟器

以防万一其他人需要帮助并使用科尔多瓦。

© www.soinside.com 2019 - 2024. All rights reserved.