无法使用带[email protected]的OneSignal插件构建Ionic 5应用程序Android目标:android-29

问题描述

我无法使用Onesignal插件构建Ionic 5应用程序。它适用于[email protected](Android目标:android-28),但不适用于[email protected](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 (将#修改为@)