Assigned
Status Update
Comments
lu...@google.com <lu...@google.com>
gi...@google.com <gi...@google.com>
go...@gmail.com <go...@gmail.com> #2
A project I contribute to also hits this problem.
In our case, the
CXX1409 ... expected buildFiles file ... to exist
message occurs when our continuous integration (running buildbot) switches between git commits and the switched-to commit is missing cmake files (e.g. .cmake or .txt) which existed on the previously-built checkout. The error persists and causes a build failure until the builder intermediate files are manually deleted. As a workaround we are downgrading AGP.
Just wanted to point out that it causes persistent build failure, as "does not build ... incrementally" wasn't really clear to me. (Thanks a lot for filing this issue, though!)
In our case, the
CXX1409 ... expected buildFiles file ... to exist
message occurs when our continuous integration (running buildbot) switches between git commits and the switched-to commit is missing cmake files (e.g. .cmake or .txt) which existed on the previously-built checkout. The error persists and causes a build failure until the builder intermediate files are manually deleted. As a workaround we are downgrading AGP.
Just wanted to point out that it causes persistent build failure, as "does not build ... incrementally" wasn't really clear to me. (Thanks a lot for filing this issue, though!)
an...@vizor-games.com <an...@vizor-games.com> #3
Please let me know if the problem has already been solved or not. Thanks!
an...@vizor-games.com <an...@vizor-games.com> #4
Just want to notify that the issue is still reproducible in AGP 8 and higher. Please pay attention to the issue because it prevents from upgrading AGP to newer versions. Thanks a lot!
Description
DESCRIBE THE ISSUE IN DETAIL: The issue is only reproducible when AGP 7.1 or higher is used
An example project has been created to demonstrate the issue and it contains two branches,
branch-with-spng-lib
andbranch-without-spng-lib
.The
:nativelib:src/main/cpp/CMakeLists.txt
in thebranch-with-spng-lib
containsadd_subdirectory(spng spng)
line,branch-without-spng-lib
does not. When we checkout frombranch-with-spng-lib
tobranch-without-spng-lib
and build the project Gradle fails with an exceptionRemoving the
.cxx
directory helps but it is not a solution for us.STEPS TO REPRODUCE:
branch-with-spng-lib
branchbranch-without-spng-lib
branchStudio Build: Android Studio Chipmunk | 2021.2.1 Build #AI-212.5712.43.2112.8512546, built on April 28, 2022
Version of Gradle Plugin: 7.2
Version of Gradle: 7.3.3
Version of Java: Oracle JDK 11.0.14
OS: macOS Monterey 12.2 (Apple M1 Pro)