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.

Author

Dan Wilson

Comments


Comments are disabled in preview mode.
Sponsored by progress-logo-min
NativeScript is licensed under the Apache 2.0 license
© 2018 Progress Software Corporation. All Rights Reserved. Privacy Center