Fix: An error occurred while preparing SDK package NDK (Side by side): Not in GZIP format
The SDK Manager is re-unpacking a corrupt archive it cached in .downloadIntermediates. Delete that folder and the half-extracted ndk/<version> directory, then re-run the build.