From 4e0749f0ae8d6207c8c9f32e04d4dfd797156d02 Mon Sep 17 00:00:00 2001 From: Philip Rideout Date: Wed, 23 Jan 2019 11:06:48 -0800 Subject: [PATCH] Add another folder to the build's "clean" task. Gradle creates a hidden .externalNativeBuild folder when issuing CMake for the first time. This folder contains cached command line parameters that get passed to CMake, and these can become stale when switching between "normal" Android builds and Vulkan-enabled Android builds, which leads to frustrating build errors. --- build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build.sh b/build.sh index ad0e6b76b9..a07314618f 100755 --- a/build.sh +++ b/build.sh @@ -117,6 +117,7 @@ function build_clean { echo "Cleaning build directories..." rm -Rf out rm -Rf android/filament-android/build + rm -Rf android/filament-android/.externalNativeBuild } function generate_toolchain {