Giter Club home page Giter Club logo

Comments (4)

pictos avatar pictos commented on June 9, 2024 2

Hey Jerome,

So, looks like something is not correct, I'm debugging on my MacBook, that has these specs:
Screen Shot 2022-09-29 at 18 22 20

And during the debug the Util.IsArm64 is false, saying that I'm in a x64 machine.
Screen Shot 2022-09-29 at 18 22 05

I believe that issue is with .net, right?

from uno.check.

jeromelaban avatar jeromelaban commented on June 9, 2024 1

We may want to install just the one appropriate for the architecture, if possible, otherwise, let's modify the tool for that to be possible.

from uno.check.

jeromelaban avatar jeromelaban commented on June 9, 2024

Thanks for the report!

Indeed that's possible. This would have to be changed here:

var installer = new AndroidSDKInstaller(new Helper(), AndroidManifestType.GoogleV2);
installer.Discover();
var sdkInstance = installer.FindInstance(null);
var installedPackages = sdkInstance.Components.AllInstalled(true);
var sdkPackage = installedPackages.FirstOrDefault(p => p.Path.Equals(me.SdkId, StringComparison.OrdinalIgnoreCase));
if (sdkPackage == null && (me.AlternateSdkIds?.Any() ?? false))
sdkPackage = installedPackages.FirstOrDefault(p => me.AlternateSdkIds.Any(a => a.Equals(p.Path, StringComparison.OrdinalIgnoreCase)));
var sdkId = sdkPackage?.Path ?? me.SdkId;
avdManager.Create($"Android_Emulator_{me.ApiLevel}", sdkId, device: preferredDevice?.Id, tag: "google_apis", force: true, interactive: true);
return Task.CompletedTask;
}

We already have the information about the host architecture.

from uno.check.

pictos avatar pictos commented on June 9, 2024

@jeromelaban should we add the arm emulator here in the manifest?
I saw that the tooling uses the manifest information to suggest an emulator

Just saw the alternativies property, that points to arm, let me try with that

from uno.check.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.