You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Invalid values of $(AndroidDexTool) result in misleading InstallFailedException during deployment instead of an error during the build #4439
FWIW I updated to the latest version (without changing any settings) and got the /base.apk code is missing error. Downgrading Xamarin.Android to 10.1.3.7 from 10.2.0.100 allowed my project to build and run again.
@Johan-dutoit, thanks for the info! That sounds like it would be a different behavior compared to this particular issue. This issue is only about the case where the AndroidDexTool MSBuild property is explicitly set to an invalid value.
If by chance you might have time to update again temporarily to version 10.2.0.100 so that you can collect the diagnostic build output from your build that's giving you the bad results, then if you could attach that build output on a new issue so the team can take a look, that would be perfect. Thanks in advance!
A new Preview version has now been published that includes the fix for this item. The fix is not yet included in a Release version. I will update this again when a Release version is available that includes the fix.
Fix included on macOS in Visual Studio 2019 for Mac version 8.7 Preview 1. To try the Preview version that includes the fix, check for the latest updates on the Previewupdater channel.
Fix included on macOS in Visual Studio 2019 for Mac version 8.7. To get the new version that includes the fix, check for the latest updates on the Stableupdater channel.
ghost locked as resolved and limited conversation to collaborators on Jun 4, 2022
Activity
Johan-dutoit commentedon Mar 27, 2020
FWIW I updated to the latest version (without changing any settings) and got the
/base.apk code is missingerror. Downgrading Xamarin.Android to 10.1.3.7 from 10.2.0.100 allowed my project to build and run again.brendanzagaeski commentedon Mar 27, 2020
@Johan-dutoit, thanks for the info! That sounds like it would be a different behavior compared to this particular issue. This issue is only about the case where the
AndroidDexToolMSBuild property is explicitly set to an invalid value.If by chance you might have time to update again temporarily to version 10.2.0.100 so that you can collect the diagnostic build output from your build that's giving you the bad results, then if you could attach that build output on a new issue so the team can take a look, that would be perfect. Thanks in advance!
ctinnell commentedon Apr 6, 2020
I am getting this error also. Is the recommended solution to downgrade Xamarin.Android?
brendanzagaeski commentedon Apr 6, 2020
@ctinnell, if you're building on macOS, it's likely you're seeing #4478. There's a candidate workaround mentioned there #4478 (comment).
[Xamarin.Android.Build.Tasks] fixup invalid $(AndroidDexTool)
[Xamarin.Android.Build.Tasks] fixup invalid $(AndroidDexTool) (#4543)
[Xamarin.Android.Build.Tasks] fixup invalid $(AndroidDexTool) (#4543)
brendanzagaeski commentedon May 20, 2020
Release status update
A new Preview version has now been published that includes the fix for this item. The fix is not yet included in a Release version. I will update this again when a Release version is available that includes the fix.
Fix included in Xamarin.Android 10.3.99.230.
Fix included on Windows in Visual Studio 2019 version 16.7 Preview 1. To try the Preview version that includes the fix, check for the latest updates in Visual Studio Preview.
Fix included on macOS in Visual Studio 2019 for Mac version 8.7 Preview 1. To try the Preview version that includes the fix, check for the latest updates on the Preview updater channel.
brendanzagaeski commentedon Aug 5, 2020
Release status update
A new Release version of Xamarin.Android has now been published that includes the fix for this item.
Fix included in Xamarin.Android SDK version 11.0.0.3.
Fix included on Windows in Visual Studio 2019 version 16.7. To get the new version that includes the fix, check for the latest updates or install the most recent release from https://visualstudio.microsoft.com/downloads/.
Fix included on macOS in Visual Studio 2019 for Mac version 8.7. To get the new version that includes the fix, check for the latest updates on the Stable updater channel.