Gstreamer Android does not compile with Gradle plugin 7.2
Describe your issue
Starting with Android Gradle plugin 7.2.0, GStreamer does not compile and fails with an error:
[CXX1415] .../video/build/.cxx/Debug/1s5v2mh6/arm64-v8a/android_gradle_build.json debug|arm64-v8a : gstreamer_android-debug-gst-build-arm64-v8a.abi 'gst-build-arm64-v8a' is invalid. Valid values are 'armeabi-v7a, arm64-v8a, x86, x86_64'
Expected Behavior
Normal compilation as it happened until AGP 7.1.2
Observed Behavior
The compiled folder names under AGP 7.0 don't accept the prefix "gst-build-"
Setup
- MacOS
- Macbook M1
- Tested with 1.18.4 and 1.20.2
- ./gradlew assembleDebug
Solutions you have tried
There is a easy workaround that is editing Gstreamer files "gstreamer-1.0.mk" (Under for example arm64/share/gst-android/ndk-build) and edit line
GSTREAMER_BUILD_DIR := gst-build-$(TARGET_ARCH_ABI)
removing the prefix so it looks like
GSTREAMER_BUILD_DIR := $(TARGET_ARCH_ABI)
And of course do this for each architecture supported.