gpt4 book ai didi

android - 从 github 导入 ADT Eclipse 中的 android 项目

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:58:48 26 4
gpt4 key购买 nike

我正在尝试将一个 android 项目从 github 导入到 ADT Eclipse 中,但是当我克隆它时它没有在存储库中找到任何项目。 repo 显然是一个 android 应用程序项目(从查看源代码)但没有找到要导入的项目。我的步骤如下:

  1. 在“Package explorer”中右击并选择“Import”

  2. 从 Git 导入项目。

  3. 输入 uri:https://github.com/moagrius/MapViewDemo

  4. 只需导入 master。

  5. 克隆完成后会出现以下对话框:

enter image description here

  1. 选择“导入现有项目”时,以下对话框显示:

enter image description here

为什么找不到要导入的项目!?如何将项目导入到 Eclipse 中?

感谢您的帮助!

最佳答案

Eclipse 项目文件(.project 和 .classpath)不是 github 存储库的一部分,因此您不能直接将其导入 Eclipse。

解决这个问题的最简单方法可能是自己创建一个新的 Android 项目,然后将 github 存储库中的文件复制到其中。

关于android - 从 github 导入 ADT Eclipse 中的 android 项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17431920/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com