使用 "cordova-plugin-local-notifications" 插件的本地通知
Local notifications with "cordova-plugin-local-notifications" plugin
我正在尝试将 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:
插件link:https://github.com/katzer/cordova-plugin-local-notifications/
感谢您的帮助。
您没有正确安装插件。根据您的评论,您甚至没有正确安装 Cordova CLI。
如果您是 Cordova 的新手,我强烈建议您尝试 IDE,例如 Visual Studio with the tools for Apache Cordova and set it up following this guide。插件必须正确安装才能在您的应用程序中使用,当然首先需要安装 Cordova。
您需要按照教程中的步骤操作:
https://cordova.apache.org/docs/en/latest/guide/cli/
在这里您可以找到如何安装 Android 如果还没有:
以及如何安装插件。
我正在尝试将 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:
插件link:https://github.com/katzer/cordova-plugin-local-notifications/
感谢您的帮助。
您没有正确安装插件。根据您的评论,您甚至没有正确安装 Cordova CLI。
如果您是 Cordova 的新手,我强烈建议您尝试 IDE,例如 Visual Studio with the tools for Apache Cordova and set it up following this guide。插件必须正确安装才能在您的应用程序中使用,当然首先需要安装 Cordova。
您需要按照教程中的步骤操作:
https://cordova.apache.org/docs/en/latest/guide/cli/
在这里您可以找到如何安装 Android 如果还没有:
以及如何安装插件。