Skip to content

Instantly share code, notes, and snippets.

@danieldogeanu
Created July 4, 2018 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danieldogeanu/ce4a479ee1be8fb7ded61bdc987f535a to your computer and use it in GitHub Desktop.
Save danieldogeanu/ce4a479ee1be8fb7ded61bdc987f535a to your computer and use it in GitHub Desktop.
How to fix Gradle "file path too long" error on Windows 10.
// In the build.gradle file, at the project root, add the `buildDir` with the path to a directory on the root of the drive you are using. For example `D:/Builds/`.
allprojects {
buildDir = "D:/Builds/${rootProject.name}/${project.name}" // Fix for PATH TOO LONG error.
repositories {
jcenter()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment