Fixed
Status Update
Comments
je...@google.com <je...@google.com>
im...@google.com <im...@google.com> #2
Can you use the workaround described at
do...@traveloka.com <do...@traveloka.com> #3
Using 8.4.40 or 8.5.26 cannot fix the issue.
8.3.51 is not found.
Using 8.3.37 from
im...@google.com <im...@google.com> #4
From
@Søren: Could you triage this issue?
Description
Gradle version: 5.6.4 to 6.1.0-milestone-1
AGP: 3.5.2 to 4.0.0-alpha05
I created large android project using:
50 android library modules: 500 activity, 500 layout and 500 image on each module
App module depend on that 50 library modules.
It is failed because R class to large on $id method.
> Task :androidAppModule0:compileFlavDebugJavaWithJavac
/Users/doni.winata/gradle-sample/build-perf-test/androidAppModule0/build/generated/not_namespaced_r_class_sources/flavDebug/r/com/androidAppModule0/R.java:27940: error: too many constants
public static final class id {
^
1 error
Then i tried to enable:
android.namespacedRClass=true
on gradle.properties but the result still the same.
The sample project may too large, but our real project having like 13k of R$id now. wondering if R$id have a limit ? does android.namespacedRClass=true working as expected in this case ? i guess it should not merging R from another module.