Back to Blog Home
← all posts

Workaround: Windows: File path too long - keep below 240 characters

March 9, 2016 — by Dan Wilson

Recently, NativeScript users who develop on the Windows platform have been getting an error to the effect of "File path too long - keep below 240 characters" or even "Command D:\some\path\projectname\platforms\android\gradlew.bat failed with exit code 1".

This error is caused by how Gradle (used in Android Builds) handles builds. In short, gradle makes a unique build file name by including the names of all plugins in your application that have a platform/android component.

It's easy to run over the file path character count limit in windows.