Status Update
Comments
hu...@google.com <hu...@google.com>
bi...@google.com <bi...@google.com>
bi...@google.com <bi...@google.com> #2
As I understand it, we need to migrate namespace definitions both from AndroidManifest.xml
and from implicit definitions from applicationId
/ testApplicationId
? Is that right? So an 8.0 project would have a
namespace <n>
testNamespace <tn>
where <n> is taken from AndroidManifest.xml
package
definitions if present, and applicationId
if not, and <tn>
is testApplicationId
if present and <n>.test
if not?
de...@squareup.com <de...@squareup.com> #3
Sorry for the confusion. AGP would change how it computes the namespace for the androidTest variant. All the Upgrade assistant would need to do is update the source code for the import of the R
class.
bi...@google.com <bi...@google.com> #4
OK! And, I think, this should happen at the same time as the namespace
declaration is migrated from AndroidManifest.xml
?
bi...@google.com <bi...@google.com> #5
It's unrelated, but it is possible that we move 8.0 to also only declare the namespace into the DSL. I would make it a separate refactoring because they are not tied at all.
eb...@netflix.com <eb...@netflix.com> #6
I would consider first adding the right new value to models (as a new property) and then, to avoid Studio interpreting manifests and build configurations, just update to whatever the synced value of this new property is.
Description
DESCRIBE THE ISSUE IN DETAIL:
In AGP 7.4+, the this commit ), however it is still marked as an
outputKeepRules
property inDexingFileDependenciesTask
was changed from aRegularFileProperty
to aDirectoryProperty
(inOutputFile
.This causes a configuration error as gradle expects this property to be a file, but finds a directory instead. It should be marked with `OutputDirectory.
Configuration error:
This property appears to have been removed in AGP 8.1, but this issue still affects both AGP 7.4 and 8.0.
IMPORTANT: Please readhttps://developer.android.com/studio/report-bugs.html carefully and supply
all required information.
Studio Build: --
Version of Gradle Plugin: 7.4, 8.0-beta02
Version of Gradle: 7.6
Version of Java: --
OS: --