Status Update
Comments
tn...@google.com <tn...@google.com>
do...@dolphy.eu <do...@dolphy.eu> #2
It looks like we have more directories
›../../out/androidx/appsearch/appsearch-local-storage/build/../nativeBuildStaging/cmake/debug/arm64-v8a/build.ninja📋
›../../out/androidx/appsearch/appsearch-local-storage/build/../nativeBuildStaging/cmake/debug/arm64-v8a/build.ninja.txt📋
›../../out/androidx/appsearch/appsearch-local-storage/build/../nativeBuildStaging/cmake/debug/armeabi-v7a/build.ninja📋
›../../out/androidx/appsearch/appsearch-local-storage/build/../nativeBuildStaging/cmake/debug/armeabi-v7a/build.ninja.txt📋
›../../out/androidx/appsearch/appsearch-local-storage/build/../nativeBuildStaging/cmake/debug/x86/build.ninja📋
›../../out/androidx/appsearch/appsearch-local-storage/build/../nativeBuildStaging/cmake/debug/x86/build.ninja.txt📋
›../../out/androidx/appsearch/appsearch-local-storage/build/../nativeBuildStaging/cmake/debug/x86_64/build.ninja📋
›../../out/androidx/appsearch/appsearch-local-storage/build/../nativeBuildStaging/cmake/debug/x86_64/build.ninja.txt📋
›../../out/androidx/appsearch/appsearch-local-storage/build/../nativeBuildStaging/cmake/release/arm64-v8a/build.ninja📋
›../../out/androidx/appsearch/appsearch-local-storage/build/../nativeBuildStaging/cmake/release/arm64-v8a/build.ninja.txt📋
›../../out/androidx/appsearch/appsearch-local-storage/build/../nativeBuildStaging/cmake/release/armeabi-v7a/build.ninja📋
›../../out/androidx/appsearch/appsearch-local-storage/build/../nativeBuildStaging/cmake/release/armeabi-v7a/build.ninja.txt📋
›../../out/androidx/appsearch/appsearch-local-storage/build/../nativeBuildStaging/cmake/release/x86/build.ninja📋
›../../out/androidx/appsearch/appsearch-local-storage/build/../nativeBuildStaging/cmake/release/x86/build.ninja.txt📋
›../../out/androidx/appsearch/appsearch-local-storage/build/../nativeBuildStaging/cmake/release/x86_64/build.ninja📋
›../../out/androidx/appsearch/appsearch-local-storage/build/../nativeBuildStaging/cmake/release/x86_64/build.ninja.txt📋
it also considers all of these input to configuration cache
xa...@android.com <xa...@android.com> #3
Prefab feature also seems to cause the following to be added as configuration ache inputs
›../../out/androidx/external/libyuv/build/intermediates/prefab_package_header_only/prefab_publication.json/debug📋
›../../out/androidx/external/libyuv/build/intermediates/prefab_package_header_only/prefab_publication.json/release📋
›../../out/androidx/test/ext/junit-gtest/build/intermediates/prefab_package_header_only/prefab_publication.json/debug📋
›../../out/androidx/test/ext/junit-gtest/build/intermediates/prefab_package_header_only/prefab_publication.json/release📋
ic...@gmail.com <ic...@gmail.com> #4
./gradlew zipTestConfigsWithApks
do...@dolphy.eu <do...@dolphy.eu> #5
./gradlew zipTestConfigsWithApks in the androidx project
Do you mean to run from androidx-main/frameworks/support
? If so, I did a run but it took too long and failed in the end with some 9 errors. Even if it finished successfully, it is too long for debug. Do we have to run that specific task or it can be reproduced with some lightweight task? If would be more helpful if we can even reproduce it in a sample project instead of using the androidx project.
Jomo, do you know where those cxx related files are being created? any pointers?
xa...@android.com <xa...@android.com> #6
The easiest is to probably just look at
in there see file system entry
. all of these files are treated as input to the configuration cache. There should be no entries to ../../out/
once all the plugins are fixed.
mc...@gmail.com <mc...@gmail.com> #7
Sadly, the report doesnt give you traces (I asked rodrigo from gradle to add it in the future version of gradle), so we only see it is coming from plugin 'com.android.internal.library'
xa...@android.com <xa...@android.com> #8
As far as I know, the most effective way to get the traces is to debug a build running with gradle by adding a break point here
re...@gmail.com <re...@gmail.com> #9
The folder path '../../out/androidx/appsearch/appsearch-local-storage/build/intermediates/cxx' originates from ProjectInfo::getIntermediatesDir() which is deprecated with a message that says "Use the version that returns a provider".
The files mentioned in
The files in
A question maybe for Ivan, I thought the tests under com.android.build.gradle.integration.ndk.* would fail if they violated configuration caching (I recall the original push for configuration caching required some of these tests to be temporarily exempted). Is there a new constraint arriving with Gradle 8.1? In other words, are these regressions or have they always existed? It might help narrow down the cause/fix.
re...@gmail.com <re...@gmail.com> #10
Re #8:
if you upgrade androidx to 8.1 and run the following:
./gradlew appsearch:appsearch-local-storage:assembleDebug
you'll get that code path triggered.
There is also the whole gerrit topic you can apply if you want the 8.2-alpha** agp.
Re #9:
Gradle now instruments all file calls (exists(), isDirectory(), etc) and makes them part of configuration cache input if it happens during the configuration. This is a new requirement starting 8.1
ga...@gmail.com <ga...@gmail.com> #11
Gradle now instruments all file calls (exists(), isDirectory(), etc) and makes them part of configuration cache input if it happens during the configuration. This is a new requirement starting 8.1
In that case, we should be able to find the issues directly by running tests under com.android.build.gradle.integration.ndk.* and failing when configuration caching misses now when it didn't before (I have no idea how to do that though).
ja...@gmail.com <ja...@gmail.com> #12
Note, this affects the second run, so you need to make sure the tests call for a second build and validate that there is a cache hit on the second run.
ic...@gmail.com <ic...@gmail.com> #14
Thanks for your input Jomo! Do you have some cycles helping us making cxx compatible with the new constraint of config caching?
Running build twice in a row for cxx integration tests like com.android.build.gradle.integration.ndk.*
and check if we have a config cache hit using
For example, add the following code at
val result = executor.run(":app:build${appBuildSystem.build}Debug[arm64-v8a]")
result.assertConfigurationCacheHit()
The way recommended by Gradle is to fix is to do the file calls inside ValueSource
. AGP has a "helper" class
xa...@android.com <xa...@android.com>
jv...@google.com <jv...@google.com> #15
Add more details on debugging gradle on top of
- download the latest gradle source code from
https://github.com/gradle/gradle/blob/master/CONTRIBUTING.md and open it in intellij - create a remote debugger with port
5005
in the gradle project - build a sample project from command line with
-Dorg.gradle.debug=true --no-daemon
- run the debugger from the gradle project
Description
While with eclipse the build of our multi library project works fine, with ant i get the following error message when running "ant release":
com.android.dx.util.DexException: Multiple dex files define Lcom/my/app/Manifest$permission;
Also see:
OS: Win7
Ant: 1.8.3
STEPS TO REPRODUCE:
1. Create project with multiple libraries and manifests (manifest merger enabled), the Manifest files use the same package name throughout.
2. Build with eclipse -> works
3. Build with ant (tools r20) -> works
4. Build with ant (tolls r21) -> fails
EXPECTED RESULTS:
Also works with ant.
OBSERVED RESULTS:
com.android.dx.util.DexException: Multiple dex files define Lcom/my/app/Manifest$permission;