Assigned
Status Update
Comments
lu...@google.com <lu...@google.com>
gi...@google.com <gi...@google.com>
go...@gmail.com <go...@gmail.com> #2
You need to temporarily add following to your build.gradle
:
tasks.withType(KotlinCompile).configureEach {
kotlinOptions {
freeCompilerArgs += [
"-Xjvm-default=all",
]
}
}
Note that in certain circumstances you may want to use all-compatibility
instead of all
, learn more about that in
Starting with kotlin 1.6.20 you won't need touch build.gradle
for more information see
an...@vizor-games.com <an...@vizor-games.com> #3
Which of the build.gradle files am I to add the code above as there are 2 build.gradle files
an...@vizor-games.com <an...@vizor-games.com> #4
en el Module.
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)