-
Notifications
You must be signed in to change notification settings - Fork 564
[Xamarin.Android.Build.Tasks] Wrong AndroidManifest.xml packaged to the APK while using binding library #4812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
jonathanpeppers
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add a test in InstallTests.cs that was showing the issue? Was it as simple as using the support library and it wouldn't install successfully?
|
@jonathanpeppers waiting on a good repo from the custom. The steps they provided did not work |
301caff to
21d98c1
Compare
98e21eb to
15e68f1
Compare
…he APK while using binding library Fixes dotnet#4804 We were overwriting the AndroidManifest.xml file in the apk with ones from Support Libraries. This manifests itself with the following error ``` Failed to parse APK info: failed to parse AndroidManifest.xml, error: %!s() deploy failed, error: failed to get apk infos, output: W/ResourceType( 5266): Bad XML block: ``` This commit fixes this issue by ignoring files from .jar files which already exist in the apk. This stops things from being overwritten. A test has also been added.
jonathanpeppers
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll restart the build once, the hang should be fixed now.
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
…4812) Fixes: #4804 We were overwriting the `AndroidManifest.xml` file in the `.apk` with ones from Support Libraries. This manifests itself with the following runtime error: Failed to parse APK info: failed to parse AndroidManifest.xml, error: %!s() deploy failed, error: failed to get apk infos, output: W/ResourceType( 5266): Bad XML block: This commit fixes this issue by ignoring files from `.jar` files which already exist in the `.apk`. This stops things from being overwritten. A test has also been added.
Fixes #4804
We were overwriting the AndroidManifest.xml file in the apk with
ones from Support Libraries. This manifests itself with the following error
This commit fixes this issue by ignoring files from .jar files
which already exist in the apk. This stops things from being
overwritten. A test has also been added.