使用"cordova-plugin-local-notifications"插件的本地通知



我正在尝试将cordova-plugin-local-notifications插件添加到我的Android项目中。

我正在将依赖项下的implementation 'com.github.katzer:cordova-plugin-local-notification'添加到我的应用程序 gradle 文件中。但是 Gradle 找不到插件。

错误:Supplied String module notation 'Failed to resolve: com.github.katzer:cordova-plugin-local-notification:

插件链接:https://github.com/katzer/cordova-plugin-local-notifications/

谢谢你的帮助。

您需要按照教程中的步骤操作:

https://cordova.apache.org/docs/en/latest/guide/cli/

在这里,您可能会找到如何安装Android(如果还没有(:

https://cordova.apache.org/docs/en/latest/guide/platforms/android/index.html#requirements-and-support

以及如何安装插件。

您尚未正确安装插件。根据您的评论,您甚至没有正确安装 Cordova CLI。

如果你是Cordova的新手,我强烈建议你尝试像Visual Studio这样的IDE,使用Apache Cordova的工具,并按照本指南进行设置。插件必须先正确安装,然后才能在您的应用程序中使用,当然需要先安装 Cordova。

最新更新