Status Update
Comments
ri...@google.com <ri...@google.com>
ju...@google.com <ju...@google.com>
sp...@google.com <sp...@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
.
ys...@google.com <ys...@google.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.
sp...@google.com <sp...@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.
an...@google.com <an...@google.com>
ac...@google.com <ac...@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?
Description
STEPS TO REPRODUCE:
1. Import WearTilesKotlin from
2. Launch the Fitness Tiles surface launcher
ATTACH SCREENSHOTS/RECORDINGS OF THE ISSUE
ATTACH LOG FILES (Select Help > Show Log in Files, or Show Log in Finder on a Mac)
Logs have
```
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
```
This turned out to be the problem, a mismatch between build.gradle applicationId and AndroidManifest.xml package
But no obvious error explaining this.
------------------
IMPORTANT: Please read
all required information.
------------------
Android Studio Electric Eel | 2022.1.1 Canary 2
Build #AI-213.7172.25.2211.8571212, built on May 11, 2022
Runtime version: 11.0.13+0-b1751.21-8125866 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.3.1
GC: G1 Young Generation, G1 Old Generation
Memory: 1800M
Cores: 8
Registry:
external.system.auto.import.disabled=true
ide.text.editor.with.preview.show.floating.toolbar=false
Non-Bundled Plugins:
idea.plugin.protoeditor (213.6461.28)
com.developerphil.adbidea (1.6.6)
com.jetbrains.kmm (0.3.2(213-1.6.10-release-970-IJ)-152)
Version of Gradle Plugin: 7.2.1
Version of Gradle: 7.4.2
Version of Java: 11
OS: OSX