为什么我不能在 google 上在模拟器中执行列表点击事件

Why can't I do list click event in simulator in action on google

我正在制作一个列表示例并测试点击时屏幕的变化。但这意味着它在模拟器中不起作用是什么意思?

是不是测试模拟器不好?


[基本列表示例]

conv.session.typeOverrides = [{
    name: 'prompt_option',
    mode: 'TYPE_REPLACE',
    synonym: {
      entries: [
        {
          name: 'ITEM_1',
          synonyms: ['Item 1', 'First item'],
          display: {
             title: 'Item #1',
             description: 'Description of Item #1',
             image: ASSISTANT_LOGO_IMAGE,
                }
        },
        {
          name: 'ITEM_2',
          synonyms: ['Item 2', 'Second item'],
          display: {
             title: 'Item #2',
             description: 'Description of Item #2',
             image: ASSISTANT_LOGO_IMAGE,
                }
        },
        {
          name: 'ITEM_3',
          synonyms: ['Item 3', 'Third item'],
          display: {
             title: 'Item #3',
             description: 'Description of Item #3',
             image: ASSISTANT_LOGO_IMAGE,
                }
        },
        {
          name: 'ITEM_4',
          synonyms: ['Item 4', 'Fourth item'],
          display: {
             title: 'Item #4',
             description: 'Description of Item #4',
             image: ASSISTANT_LOGO_IMAGE,
                }
        },
        ]
    }
  }];

  // Define prompt content using keys
  conv.add(new List({
    title: 'List title',
    subtitle: 'List subtitle',
    items: [
      {
        key: 'ITEM_1'
      },
      {
        key: 'ITEM_2'
      },
      {
        key: 'ITEM_3'
      },
      {
        key: 'ITEM_4'
      }
    ],
  }));




[点击第一项#1]




[错误]

请告诉我为什么在模拟器中不可行,是否有通过链接到手机进行测试的示例phone。

正如错误状态和在其他情况下一样,错误似乎是可访问的 - indeed, this seems to be due to the fact that the simulator doesn't have all the same features that the normal Assistant has and this case cause errors or even misleading messages. You can get more details on how to test in a device, by following the steps here

但是,除此之外,您可以尝试检查您的测试帐户的权限 - 如您帐户的 - due to the fact that sometimes it might be an issue there. Just go to the Activity Controls 所述并确认:Web & App Activity;已为其启用设备信息和语音和音频 Activity。如果不是这个,确实是模拟器缺少功能。