无法使用带cordova-android@10.0.0的OneSignal插件构建Ionic 5应用程序Android目标:android-29

问题描述

我无法使用OneSignal插件构建Ionic 5应用程序。它适用于cordova-android@8.1.0(Android目标:android-28),但不适用于cordova-android@9.0.0(Android目标:android-29)。

Environment
OneSignal: 2.11.0
Cordova platform: android 9.0.0
Android target: android-29

构建时出现以下错误:

> Task :app:mergeDebugResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not find com.android.support:support-annotations:28.
     Searched in the following locations:
     Required by:
         project :app
   > Could not find com.android.support:support-v4:28.
     Searched in the following locations:
     Required by:
         project :app
   > Could not find com.android.support:support-v4:28.
     Searched in the following locations:
     Required by:
         project :app
   > Could not find com.android.support:support-v4:28.
     Searched in the following locations:
     Required by:
         project :app
   > Could not find com.android.support:appcompat-v7:28.
     Searched in the following locations:
     Required by:
         project :app
   > Could not find com.android.support:appcompat-v7:28.
     Searched in the following locations:
     Required by:
         project :app
   > Could not find com.android.support:support-v4:28.
     Searched in the following locations:
     Required by:
         project :app
   > Could not find com.android.support:cardview-v7:28.
     Searched in the following locations:
     Required by:
         project :app > com.onesignal:OneSignal:3.15.3
   > Could not find com.android.support:support-fragment:28.
     Searched in the following locations:
     Required by:
         project :app > com.onesignal:OneSignal:3.15.3
   > Could not find com.android.support:customtabs:28.
     Searched in the following locations:
     Required by:
         project :app > com.onesignal:OneSignal:3.15.3
   > Could not find com.android.support:support-v4:28.
     Searched in the following locations:
     Required by:
         project :app > com.google.android.gms:play-services-location:16.0.0 > com.google.android.gms:play-services-basement:16.0.1

* 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

BUILD FAILED in 49s

任何人都可以提供任何建议来解决此问题吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...