简体   繁体   中英

Publish G Suite Add-on: Deployment contains an empty host list

I want to publish a Google Docs add-on and follow the instructions at https://developers.google.com/gsuite/add-ons/how-tos/publishing-gsuite-addons .

I see an error: "G Suite Add-ons Extension Deployment contains an empty host list."

My appsscript.json looks as follows:

{
  "timeZone": "America/New_York",
  "dependencies": {},
  "exceptionLogging": "STACKDRIVER",
  "runtimeVersion": "V8",
  "oauthScopes": [
    "https://www.googleapis.com/auth/documents.currentonly",
    "https://www.googleapis.com/auth/script.container.ui"
  ],
  "addOns": {
    "common": {
      "name": "Markua Support",
      "logoUrl": "https://drive.google.com/file/d/17jUOuZuoQzFBPXkIFkAF_iH0Ck32dUD3/view"
    }
  }
}

Here's a screenshot with the error(s) I see.

在此处输入图片说明

Does anyone know how to resolve that?

Even though it's possible to check both the "G Suite Add-ons Extension" AND a checkbox under the "Editor Add-on Extensions" that will cause an error. Both shouldn't be checked. You need to use either one or the other. If this is a Docs Add-on, then it's not an Extension.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM