简体   繁体   English

离子电容器 Android 构建问题 - 任务 ':capacitor-cordova-android-plugins:fabricGenerateResourcesDebug' 执行失败

[英]Ionic Capacitor Android build issue - Execution failed for task ':capacitor-cordova-android-plugins:fabricGenerateResourcesDebug'

I had an old Ionic 3 project (with Cordova) and I started writing and developing it from scratch in Ionic 5 (With capacitor).我有一个旧的 Ionic 3 项目(使用 Cordova),我开始在 Ionic 5(使用电容器)中从头开始编写和开发它。

I have the following plugins:我有以下插件:

cordova-plugin-androidx (1.0.2)
cordova-plugin-androidx-adapter (1.1.0)
cordova-plugin-camera (4.1.0)
cordova-plugin-device (2.0.3)
cordova-plugin-firebasex (9.0.1)
cordova-plugin-printer (0.8.0)

I successfully followed the full workaround that Capacitor has in the documentation, running the necessary commands in order to create the Android project.我成功地遵循了 Capacitor 在文档中提供的完整解决方法,运行了必要的命令以创建 Android 项目。 I opened the project with Android studio.我用 Android Studio 打开了这个项目。 Here's a brief of the modules (they are all updated with the latest):以下是模块的简介(它们都已更新为最新版本):

在此处输入图片说明

The issue appears when I'm trying to build the signed APK file.当我尝试构建已签名的 APK 文件时会出现此问题。 The error I get is the following:我得到的错误如下:

Execution failed for task ' :capacitor-cordova-android-plugins:fabricGenerateResourcesDebug '.任务“ :capacitor-cordova-android-plugins:fabricGenerateResourcesDebug ”的执行失败。 Crashlytics Developer Tools error. Crashlytics 开发人员工具错误。

Additional message is saying:附加信息是这样说的:

Crashlytics could not find the manifest. Crashlytics 找不到清单。 Not found at ...\\android\\capacitor-cordova-android-plugins\\build\\intermediates\\merged_manifests\\debug\\AndroidManifest.xml...\\android\\capacitor-cordova-android-plugins\\build\\intermediates\\merged_manifests\\debug\\AndroidManifest.xml 中找不到

I mention that I have the Firebase Crashlytics turned on in the Firebase Console.我提到我在 Firebase 控制台中打开了 Firebase Crashlytics。

Any help with these?这些有什么帮助吗?

If you don't need Crashlytics in your project then you will have to comment out the apply plugin: com.crashlytics.tools.gradle.CrashlyticsPlugin and crashlytics { enableNdk true } from cordova-plugin-firebasex android build.gradle file如果您的项目中不需要 Crashlytics,则必须注释掉apply plugin: com.crashlytics.tools.gradle.CrashlyticsPlugincrashlytics { enableNdk true }来自cordova-plugin-firebasex firebasex android build.gradle 文件在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 执行失败任务“:capacitor-cordova-android-plugins:processDebugGoogleServices”。 找不到匹配的客户端 package 'capacitor.android.plugins' - Execution fail task ':capacitor-cordova-android-plugins:processDebugGoogleServices'. No matching client found for package 'capacitor.android.plugins' 添加属性到电容器-cordova-android-plugins ShareChooserPendingIntent 接收器 - add attribute to capacitor-cordova-android-plugins ShareChooserPendingIntent receiver 离子电容器-cordoca-android-plugins 问题 - Ionic capacitor-cordoca-android-plugins issue 错误:无法找到带有 Gradle 路径“:capacitor-cordova-android-plugins”的模块 - ERROR: Unable to find module with Gradle path ':capacitor-cordova-android-plugins' 离子电容器运行android失败 - ionic capacitor run android failed 在 IONIC 项目中升级到电容器 3 后,Android Studio 构建失败 - Android Studio build failed after upgrading to capacitor 3 in an IONIC project Capacitor v3 插件不适用于 android 版本 - Capacitor v3 plugins not working on android build Android味离子电容 - Ionic Capacitor with Android flavor 安卓实时设备上离子和电容器的 CORS 问题 - CORS Issue with Ionic & Capacitor on android live device 离子电容器构建 android 失败 processDebugGoogleServices 丢失 - ionic capacitor build android fail processDebugGoogleServices missing
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM