【问题标题】:The system cannot find the file specified, Gradle project sync failed系统找不到指定的文件,Gradle 项目同步失败
【发布时间】:2017-05-22 00:11:09
【问题描述】:

Error:(20, 0) CreateProcess error=2, 系统找不到指定的文件

Image is showing error on import.apache

Gradle 没有从“github”同步项目“GnuCash”

任何帮助将不胜感激。

【问题讨论】:

    标签: android android-studio android-studio-import gnucash


    【解决方案1】:

    如果你想在你的项目中获得 github 依赖。首先,您必须在 build.gradle 中指定存储库,然后在您的项目中添加该依赖项。

    你可以为 git 仓库做什么

    步骤 1. 将 JitPack 存储库添加到您的构建文件中将其添加到您的 build.gradle 中的存储库末尾:

    https://jitpack.io

    repositories {
        // ...
        maven { url "https://jitpack.io" }
    }
    

    第二步,在表单中添加依赖

    dependencies {
        compile 'com.github.User:Repo:Tag'
    } 
    

    【讨论】:

    • 仍然是同样的错误,我没有在我的项目中获得 github 依赖项。我刚刚从 gihub 下载了一个 zip 文件,并想在 android studio 中打开它。但 gradle 没有同步。你应该看看我附加的图片链接
    • 这里是 GnuCash 应用程序的链接和我的 android studio 日志中的错误 i.stack.imgur.com/GQKbY.png github.com/codinguser/gnucash-android
    • @YousufAwan 对不起,我误解了你的问题。看起来您无法构建 github 项目 GnuCash。如果我错了,请纠正我。我建议您首先使用命令行,按照github.com/codinguser/gnucash-android#building 中提供的步骤构建您的项目。
    • bro 那是 Mac 的,我正在使用 windows...我想用 android studio 打开它,这通常很简单,但今天不工作不知道为什么
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-06-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多