【问题标题】:import project from git is missing manifest file从 git 导入项目缺少清单文件
【发布时间】:2015-08-02 04:18:57
【问题描述】:

我有一个从 git 导入的 bitbucket 项目。但我收到以下错误,表明我的清单文件未找到:

但这很令人费解,因为清单文件就在res 目录下。

谁能解释一下这里出了什么问题?

更新:

当我导入投影时,它说它无法加载 app.iml 模块和 c4k.iml 模块。这有什么重要性吗?

【问题讨论】:

  • 我总是尝试来使用 IDE。简单的git clone repo 然后import project -> select the build.gradle
  • 我如何/在哪里简单git clone repo?
  • Manifest 不应该放在 res/ 目录中,而应该放在项目的根目录中。
  • 感谢@JaredBurrows 成功了

标签: android git bitbucket


【解决方案1】:

我总是尽量不使用 IDE。所以尝试使用命令行。

  1. 只需 git clone <repo> 回购
  2. 然后,在 Intellij/Android Studio 中,File -> Import Project -> Select the build.gradle

【讨论】:

  • 真的吗?否决票?至少解释原因或给出更好的答案。
【解决方案2】:
  1. Alt + F12 在 android studio 中打开控制台。
    或者打开控制台应用程序(Windows 上的 cmd,OS X 上的终端,Linux 上的 shell)
  2. git clone <here paste the repo URL from the GitHub page >
  3. 通过其他答案中的指令导入。

【讨论】:

    猜你喜欢
    • 2022-07-25
    • 1970-01-01
    • 2021-12-04
    • 2014-03-26
    • 2020-11-26
    • 1970-01-01
    • 2020-11-18
    • 2020-11-19
    • 2017-10-24
    相关资源
    最近更新 更多