Status Update
Comments
da...@google.com <da...@google.com> #2
2022-06-01 20:24:17,074 [ 881624] WARN - .idea.model.MergedManifestInfo - getMergedManifestSupplier failed Manifest merger failed : Overlay manifest:package attribute declared at AndroidManifest.xml:16:66-110 value=(com.example.android.wearable.tiles)
does not match the module's namespace (com.example.wear.tiles).
Suggestion: remove the overlay declaration at AndroidManifest.xml.
If you want to customize the applicationId for a buildType or productFlavor, consider setting applicationIdSuffix or using the Variant API.
For more information, see https://developer.android.com/studio/build/build-variants
This message needs to be improved. The suggestion is to remove package="com.example.android.wearable.tiles"
from the offending AndroidManifest.xml
, but that's not clear, and it's not giving you the full path of the offending AndroidManifest.xml
.
da...@google.com <da...@google.com>
ku...@gmail.com <ku...@gmail.com> #3
I don't think the message is the main problem, it's that it's hidden in the AS logs, where users shouldn't have to look. While it manifests as a confusing error above.
da...@google.com <da...@google.com> #4
Re: #3, ok, yes, I agree it still seems like a bug in the IDE.
If building with Gradle from the command line, this is an error, and the message is displayed more prominently.
I improved the message with Change-Id: I257cda06790933ee03f3096b679aa1a51390848f, but leaving this bug open and sending it back to the IDE.
hu...@google.com <hu...@google.com> #5
I suspect it would be a little late for Deployment to check. Sounds like it should be part of a lint check?
hu...@google.com <hu...@google.com> #6
This issue will be fixed in AGP 4.1.0-alpha09 (Change-Id: I718b614222e5447503417b51d53486686c391273)
Description
Repro: