Fuse Community

Errors building for android if directory path is too long

Fuse: 1.9.0
Android SDK: 26

Attempting to build for android often results in errors starting with Error: com.android.builder.internal.aapt.AaptException: Failed to crunch file... if the directory path to the project is too deep.

“Too deep” in this instance proved to be 61 characters, including drive letter (so not that long).

The reason for the short limit is that it attempts to append paths such as the following during “crunching” - “\build\Android\Preview\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\9.2.0\res\drawable-xxhdpi-v4\common_google_signin_btn_icon_light_focused.9.png”, which apparently exceeds some max path limit.

Moving the project to a shorter path allowed me to compile.

Unsure if this is a prob with fuse or the Android SDK, but either way, better feedback about these circumstances would be better.