実現させたいこと
NIFCloudMBプラグインとcordova-plus-admobプラグインをいれてビルドを成功させたいです
開発環境
Cordova : 10.0.0
Androidプラットフォーム(9.0.0)(9.1.0)(10.1.1)※すべて同じビルドエラー
ターゲットSDKバージョン : 30
MonacaのAndroidアプリ設定にあるAndroidXの有効 : チェック済み
導入したプラグイン
NIFCloudMB
admob-plus-cordova
cordova-plugin-androidx
cordova-plugin-androidx-adapter
cordova-plugin-consent
試したこと
app直下にgoogle-services.jsonを挿入してNIFCloudMBプラグインを入れてビルド→成功
↓
その後に
admob-plus-cordova
cordova-plugin-androidx
cordova-plugin-androidx-adapter
cordova-plugin-consent
を入れてビルドすると下記のビルドエラーが起こる。
↓
admob関連のプラグインを削除してビルドをしたところ、再度同じビルドエラーが起こる
ビルドエラー
[18:04:06] npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 [18:04:07] WARN deprecated har-validator@5.1.5: this library is no longer supported [18:04:31] npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 [18:04:32] npm WARN deprecated har-validator@5.1.5: this library is no longer supported [18:04:34] WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents): [18:04:34] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) [18:04:34] WARN com.example.helloworld@2.5.0 No description [18:04:34] npm WARN com.example.helloworld@2.5.0 No repository field. [18:04:34] npm WARN com.example.helloworld@2.5.0 No license field. [18:04:43] Plugin doesn't support this project's cordova-android version. cordova-android: 9.1.0, failed version requirement: <9.0.0 [18:04:49] See https://docs.gradle.org/7.1.1/userguide/command_line_interface.html#sec:command_line_warnings [18:05:24] Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 [18:05:24] Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 [18:05:24] Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 [18:05:24] Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 [18:05:24] Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 [18:05:24] Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 [18:05:24] Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 [18:05:24] Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 [18:05:24] Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 [18:05:24] Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 [18:05:54] FAILURE: Build failed with an exception. [18:05:54] Execution failed for task ':app:checkDebugDuplicateClasses'. [18:05:54] See https://docs.gradle.org/6.5/userguide/command_line_interface.html#sec:command_line_warnings [18:05:55] Command failed with exit code 1: /tmp/download/platforms/android/gradlew cdvBuildDebug -b /tmp/download/platforms/android/build.gradle
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。