【问题标题】:Ballerina wso2/gmail package : unable to importBallerina wso2/gmail 包:无法导入
【发布时间】:2018-09-28 08:43:21
【问题描述】:

我想将 wso2/gmail 包导入我的芭蕾舞演员项目。

import wso2/gmail;

但是当我尝试将包导入到 my 时,出现以下错误。

ballerina pull wso2/gmail

your ballerina version does not support for package: wso2/gmail:*. following versions are supported: 0.9.6

我的芭蕾舞演员版本是 0.981.1 但是根据 https://central.ballerina.io/wso2/gmailhttps://github.com/wso2-ballerina/package-gmail 芭蕾舞演员 0.982.0 也受支持。有没有办法导入与芭蕾舞演员 0.981.0 兼容的最新 wso2/gmail 0.9.7。

p.s:我的要求是使用 gmail-connector 并发送电子邮件通知。随意建议是否有更好的方法。

【问题讨论】:

    标签: ballerina wso2bi


    【解决方案1】:

    ballerina pull wso2/gmail 尝试从中心拉取最新的包。 wso2/gmail 0.9.7 版本仅兼容 0.982.0 ballerina 发行版。

    由于你有 0.981.0 ballerina 版本,你可以使用 ballerina pull wso2/gmail:0.9.6 拉取 0.9.6 版本。

    其他选择是升级到 ballerina 0.982.0 版本,目前是 RC 版本 - https://ballerina.io/downloads/ (https://product-dist.ballerina.io/dev/0.982.0-rc1/ballerina-platform-0.982.0-rc1.zip)

    您不能将 wso2/gmail 0.9.7 与 ballerina 0.981.0 一起使用。

    【讨论】:

    • 谢谢,我错误地尝试拉 wso2/gmail 0.9.7,认为 ballerina 0.981.0 是最新的。当我拉 wso2/gmail 0.9.6 时它起作用了 :)
    猜你喜欢
    • 2021-10-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-08-14
    • 2019-05-07
    相关资源
    最近更新 更多