在Fastlane Android中找不到动作,车道或变量“ add_badge”

时间:2019-02-01 11:03:10

标签: android badge fastlane

我已经在项目中安装了徽章插件,但是在执行lane时会出现以下异常。

 Could not find action, lane or variable 'add_badge' in Fastlane android.

+-----------------------+-----------+------------------+
|                     Used plugins                     |
+-----------------------+-----------+------------------+
| Plugin                | Version   | Action           |
+-----------------------+-----------+------------------+
| fastlane-plugin-badge | undefined | No actions found |
+-----------------------+-----------+------------------+

我的代码是

def generateAppIcon(versionCode,versionName,buildType,notes)

  add_badge(
           shield: "Universal-#{versionName}-blue",
           shield_gravity: "Center",
           glob: "./base/src/main/res/mipmap-*/ic_launcher_icon.png",
           no_badge: true,
           dark: true)
end

0 个答案:

没有答案