Skip to content

Conversation

@dellis1972
Copy link
Contributor

@dellis1972 dellis1972 commented Jun 12, 2020

Fixes #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.

@dellis1972 dellis1972 added the do-not-merge PR should not be merged. label Jun 12, 2020
@dellis1972 dellis1972 marked this pull request as ready for review June 15, 2020 14:11
Copy link
Member

@jonathanpeppers jonathanpeppers left a 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?

@dellis1972
Copy link
Contributor Author

@jonathanpeppers waiting on a good repo from the custom. The steps they provided did not work

@dellis1972 dellis1972 removed the do-not-merge PR should not be merged. label Jun 22, 2020
@dellis1972 dellis1972 force-pushed the Issue4804 branch 2 times, most recently from 301caff to 21d98c1 Compare June 23, 2020 12:51
@dellis1972 dellis1972 force-pushed the Issue4804 branch 2 times, most recently from 98e21eb to 15e68f1 Compare June 23, 2020 15:14
…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.
Copy link
Member

@jonathanpeppers jonathanpeppers left a 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.

@jonathanpeppers
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jonpryor jonpryor merged commit ba3fd5b into dotnet:master Jun 25, 2020
jonpryor pushed a commit that referenced this pull request Jun 26, 2020
…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.
@github-actions github-actions bot locked and limited conversation to collaborators Jan 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong AndroidManifest.xml packaged to the APK while using binding library

4 participants