Fixed
Status Update
Comments
ec...@gmail.com <ec...@gmail.com> #2
AGP 4.0.0-alpha09 too.
ec...@gmail.com <ec...@gmail.com> #3
fyi, downgraded Studio to 4.0.0-alpha05 and kept AGP at alpha09 and build passed.
je...@google.com <je...@google.com>
ga...@google.com <ga...@google.com>
ga...@google.com <ga...@google.com> #4
The regression is caused with fix for https://issuetracker.google.com/146298132 . This is because task that generates DataBindingInfo.java is cacheable, but the package name is not part of the cache keys. This results in tasks sharing output of this task, and all of them getting it from the first one that populates the cache (which is the "app" one in this case). I'll upload a fix shortly.
As a temporary fix, you can disable Gradle caching (org.gradle.caching=false).
As a temporary fix, you can disable Gradle caching (org.gradle.caching=false).
ga...@google.com <ga...@google.com> #5
This is now fixed in master (4.1) and cherry-picked for 4.0.
ag/If0c25f6ab07f5b08bef0ef7171805f43856d97ea
ag/If0c25f6ab07f5b08bef0ef7171805f43856d97ea
ch...@gmail.com <ch...@gmail.com> #6
Thanks for the quick fix!
Description
Android Plugin Version: AGP 4.0.0-alpha08
Module Compile Sdk Version: 29
Module Build Tools Version:
Android SDK Tools version: 26.1.1
Since upgrading to 4.0.0-alpha08 (from alpha06), my release builds are now failing due to an R8 error:
```
/home/runner/work/tivi/tivi/ui-discover/build/intermediates/runtime_library_classes/release/classes.jar: R8: Type app.tivi.DataBindingInfo is defined multiple times: /home/runner/work/tivi/tivi/ui-discover/build/intermediates/runtime_library_classes/release/classes.jar:app/tivi/DataBindingInfo.class, /home/runner/work/tivi/tivi/ui-showdetails/build/intermediates/runtime_library_classes/release/classes.jar:app/tivi/DataBindingInfo.class
```
It seems like DataBindingInfo.class is now being generated in the same package across all modules. Each module has a different `package` set in their manifests.
Repro:
```
git clone -b cb/agp-4.0.0-alpha08
cd tivi ; ./gradlew app:assembleRelease
```