Status Update
Comments
lu...@google.com <lu...@google.com>
je...@google.com <je...@google.com> #2
Upgrade assistant should propose to remove the package name in the source manifest files if not already.
xo...@google.com <xo...@google.com> #3
Hi! Thanks for the report. Can you share a bit more information about what the error you're getting is, and what the state of the project is at that point? If you can reproduce this, having the logs for a session where this happens would probably be helpful.
(The Upgrade Assistant does or should remove the package attribute from AndroidManifest.xml
. The place where I see the error message given, though, is from an action to add a string resource: is that what you were trying to do?)
Thanks again!
xo...@google.com <xo...@google.com> #4
I think I see the problem. I believe this issue is already fixed in Dolphin and later versions of Studio, but the fix did not make it into the Chipmunk release branch. I'll see if we can include a fix for this in a Chipmunk point release.
xo...@google.com <xo...@google.com> #5
I've now submitted a fix for this into our Chipmunk release branch. I'm not sure whether it will make it into Patch 2, or whether it will have to wait for a Patch 3; I'll update this bug further when I know.
xo...@google.com <xo...@google.com> #6
(In the end, there was no Patch 3. It looks like this change didn't go into Chipmunk Patch 2, which is a shame, but I hope that any issues that it caused are long since resolved.)
Description
Removing package name from manifest.xml in favour of namespace "com.example.* in build.gradle file" causing an error. "Package is not specified in the manifest file." while trying to extracting string.
STEPS TO REPRODUCE:
1. Upgrade to Gradle version 7.3.3
2. Upgrade Gradle to recommended, well it's not required but if you do, it will cause an error
"Recommended steps
These steps are not required to perform the upgrade of this project at this time, but will be required when upgrading to a later version of the Android Gradle Plugin. You can choose to do them in this upgrade to prepare for the future, with or without upgrading the Android Gradle Plugin to its new version.
Move package from Android manifest to build files
Declaration of a project's namespace using the package attribute of the Android manifest is deprecated in favour of a namespace declaration in build files."
3.
ATTACH SCREENSHOTS/RECORDINGS OF THE ISSUE
ATTACH LOG FILES (Select Help > Show Log in Files, or Show Log in Finder on a Mac)
------------------
IMPORTANT: Please read
all required information.
------------------
Studio Build:
Version of Gradle Plugin: 7.2.0
Version of Gradle: 7.3.3
Version of Java:1.8
OS:Win 10