【问题标题】:youtube Api key is the same with Developer key?youtube Api 密钥与开发者密钥相同吗?
【发布时间】:2013-12-27 14:26:51
【问题描述】:

我只是尝试将我的 youtube api 密钥复制并粘贴到 eclipse 中的 YouTubeAndroidPlayerApi-1.0.0 示例,但它只给出错误并且不接受代码 我该怎么办?
那么绝对键呢?我也试过了,但也报错。


DeveloperKey.java 的代码页

// 版权所有 2012 Google Inc. 保留所有权利。

包 com.examples.youtubeapidemo;

/** * 静态容器类,用于保存对您的 YouTube 开发者密钥的引用。 */ 公共类 DeveloperKey {

/** * 请将其替换为启用的有效 API 密钥 * YouTube 数据 API v3 服务。前往 * Google APIs Console 到 * 注册一个新的开发者密钥。 */ public static final String DEVELOPER_KEY = AIxxxxxxxxxxxxxxxxxxxxxxxxxxYo-WQxxxxs78;

}

错误日志
AIxxxxxxxxxxxxxxxxxxxxxxxxZ8Yo 无法解析为变量 DeveloperKey.java /YouTubeAndroidAPIDemo/src/com/examples/youtubeapidemo 第 16 行 Java 问题

WQPxxx78 无法解析为变量 DeveloperKey.java /YouTubeAndroidAPIDemo/src/com/examples/youtubeapidemo 第 16 行 Java 问题

我认为它有问题因为 - 在 Yo 和 WQ 之间?
有什么帮助吗?

【问题讨论】:

    标签: android eclipse api youtube key


    【解决方案1】:

    尝试将 api 密钥放在双引号中。 public static final String DEVELOPER_KEY = "AIxxxxxxxxxxxxxxxxxxxxxxxxxxYo-WQxxxxs78";

    【讨论】:

      猜你喜欢
      • 2019-09-29
      • 1970-01-01
      • 1970-01-01
      • 2017-01-25
      • 1970-01-01
      • 2012-04-09
      • 1970-01-01
      • 2018-03-04
      • 1970-01-01
      相关资源
      最近更新 更多