【问题标题】:this script must be run from the base directory of your working copy此脚本必须从工作副本的基本目录运行
【发布时间】:2015-01-05 11:27:18
【问题描述】:

我正在尝试执行一个 Android 脚本来生成一个库的 Eclipse 版本。

脚本开启:

/Users/fabiom/Documents/LibrerieANDROID/android-basic-samples-master/scripts/make_eclipse_compat

但是,我有这个错误:

this script must be run from the base directory of your working copy

有人可以帮我吗?

更新:

有人可以为我运行脚本并将 Eclipse 版本传递给我吗? https://github.com/playgameservices/android-basic-samples

【问题讨论】:

    标签: android eclipse macos command-line


    【解决方案1】:

    问题是你所在的目录。您必须从基本目录运行脚本。

    为此,请打开终端并转到基本目录:

    cd /Users/fabiom/Documents/LibrerieANDROID/android-basic-samples-master
    

    然后从那里运行脚本:

    Scripts/make_eclipse_compat
    

    你应该看到 eclipse_compat 中生成的兼容 Eclipse 的文件夹

    Eclipse 版本应该在这个新目录中。

    如果您使用的是 Windows,请运行 Scripts/make_eclipse_compat.cmd 而不是 Scripts/make_eclipse_compat

    【讨论】:

    • 我在尝试命令'Scripts' is not recognized as an internal or external command, operable program or batch file.时收到此错误
    • 我通过将 make_eclipse_compat.cmd 文件复制到一个目录并在那里运行它来解决上述问题
    【解决方案2】:

    据我所知,以下是您需要执行的步骤。

    1) 从这里https://docs.google.com/file/d/0BwANZFc0H24cOWlNRFlaOGtLbnc/edit下载 BaseGameUtils 文件

    2) 提取文件并在eclipse中导入。

    3) GameHelper 类会报错。复制将 GameHelper 类的整个代码替换为此链接中给出的代码https://gist.github.com/EmmanuelVinas/ef09a35bcc805ba6deb3

    4) 最后在 GameHelper 类的顶部包含包名称 com.google.example.games.basegameutils。

    这就是你需要做的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-11-14
      • 1970-01-01
      • 2016-04-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多