CMAKE_ANDROID_ARM_MODE is set but is valid only for 'armeabi' architectures

Having downloaded the very latest Android Studio (Android Studio Electric Eel | 2022.1.1 Patch 1) I got the error above.
To get my build to work I removed “-DANDROID_ARM_MODE=arm”
from $MY_PROJECT/Builds/Android/app/build.gradle
I have yet to work out what I could do from the Projucer (v7.0.5) )to avoid this.
A little research seems to suggest the problem is in CMake 3.22.1 but not CMake 3.18.1 but I could see how to get Android Studio to choose that version (which I also have).

Seems to be in JUCE/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Android.h : cmakeArgs.add (“"-DANDROID_ARM_MODE=arm"”);

Looks like this issue is caused by using NDK 23 or lower with CMake 3.22.1. I’m going to push a change shortly to make CMake 3.22 the default, and we can explicitly request a newer NDK as part of that change.

1 Like