Skip to content

[Xamarin.Android.Build.Tasks] fixup invalid $(AndroidDexTool) - #4543

Merged
dellis1972 merged 1 commit into
dotnet:masterfrom
jonathanpeppers:fix-invalid-dextool
Apr 9, 2020
Merged

dellis1972 merged 1 commit into
dotnet:masterfrom
jonathanpeppers:fix-invalid-dextool

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

Fixes: #4439

If you build a project with AndroidDexTool=invalid, you end up with
an APK file that is missing a classes.dex. We don't emit an error,
and you won't actually know anything is wrong until going to install
the APK.

If someone did this on accident, I think we can just default
AndroidDexTool=d8 unless it is set to dx.

I updated a test for this.

Fixes: dotnet#4439

If you build a project with `AndroidDexTool=invalid`, you end up with
an APK file that is missing a `classes.dex`. We don't emit an error,
and you won't actually know anything is wrong until going to install
the APK.

If someone did this on accident, I think we can just default
`AndroidDexTool=d8` *unless* it is set to `dx`.

I updated a test for this.
@dellis1972
dellis1972 merged commit 2d25ea6 into dotnet:master Apr 9, 2020
jonpryor pushed a commit that referenced this pull request Apr 17, 2020
Fixes: #4439

If you build a project with `AndroidDexTool=invalid`, you end up with
an APK file that is missing a `classes.dex`. We don't emit an error,
and you won't actually know anything is wrong until going to install
the APK.

If someone did this on accident, I think we can just default
`AndroidDexTool=d8` *unless* it is set to `dx`.

I updated a test for this.
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 27, 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.

Invalid values of $(AndroidDexTool) result in misleading InstallFailedException during deployment instead of an error during the build

3 participants