The system cannot find the file specified, Gradle project sync failed

1.9k Views Asked by At

Error:(20, 0) CreateProcess error=2, The system cannot find the file specified

enter image description here

Gradle is not syncing the project "GnuCash" form "github"

any help would be appreciated.

1

There are 1 best solutions below

4
Sachin Chauhan On

If you are trying to get github dependency in you project. First you have to specify the repository in build.gradle and then add that dependency in you project.

What you can do for git repository

Step 1. Add the JitPack repository to your build file Add it in your build.gradle at the end of repositories:

https://jitpack.io

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

Step 2. Add the dependency in the form

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