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

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. If this is happening to you, read more detail, including a workaround at the Fluent Reports Blog by Nathanael Anderson.


Dan Wilson


Comments are disabled in preview mode.
NativeScript is licensed under the Apache 2.0 license
© 2020 All Rights Reserved.