dotnet / android

.NET for Android provides open-source bindings of the Android SDK for use with .NET managed languages such as C#
MIT License
1.93k stars 530 forks source link

Fast Deploy issue on some Lollipop (5.1.1) devices #8965

Open drasticactions opened 5 months ago

drasticactions commented 5 months ago

Android application type

.NET Android (net7.0-android, net8.0-android, etc.)

Affected platform version

.NET 8.0.300

Description

I obtained two old Android flip phones (Sharp SH-02K and KYOCERA 701KC). Both run Android 5.1.1. When deploying an app to either device, I hit an issue where when deploying, the tooling would throw "XA0010" saying it couldn't retrieve the Android ABI. I tried restarting the devices and the computer but nothing. I tried deploying on another computer but got the same error.

Talking about it with @dellis1972 and @grendello, the issue may be that several expected programs (ex. uniq, sort) are missing so expected commands to parse the props file fail. I've attached all the logs we talked about.

msbuild.binlog.zip output.log packages.txt adbprops.txt

Steps to Reproduce

  1. Create a Xamarin.Android template app
  2. Buy a 2014-era Japanese Flip Phone running Android Lollipop from a basement store in Akihabara.
  3. Try to deploy the app to it.

Did you find any workaround?

Disable Fast Deploy (Ex. dotnet build -t:Install -p:EmbedAssembliesIntoApk=false)

Relevant log output

No response

dellis1972 commented 5 months ago

a better work around would be dotnet build -t:Install -p:EmbedAssembliesIntoApk=false