Mutable CMake build directory after migrate on AGP 7

Viewed 147

After migrate project on: Version of Android Gradle Plugin: 7.0.2 Version of Gradle: 7.2

Cmake generate random path for "cxxBuildFolder" "project_path/.cxx/Debug/503l185r/x86_64" Path contains "503l185r", this is a dynamic piece.

For build type "release": "project_path/.cxx/RelWithDebInfo/323p2u6p/x86_64"

if switch to AGP=4.1.1 path is immutable "project_path/.cxx/cmake/debug/x86_64"

This is AGP bug or feature for gradle configuration cache? How to make path immutable on AGP=7.x.x?

Environment Details AGP Version: 7.0.2 Gradle Version: 7.2 NDK Version: 23.1.7779620 CMake Version: 3.18.1 Build system: CMake Host OS: Windows, Linux ABI: "armeabi-v7a", "arm64-v8a", "x86_64"

You can take a test project for experiments in the description of the problem on google issue track: https://issuetracker.google.com/issues/214408190

build with AGP 7 build with AGP 4

1 Answers
Related