View Single Post
  #37  
Old November 5th 18, 11:43 PM posted to comp.mobile.android,alt.comp.freeware,microsoft.public.windowsxp.general
Arlen_Holder
external usenet poster
 
Posts: 96
Default Report: My first "hello world" using Android Studio freeware on Windows worked just fine (in about an hour)

On Mon, 5 Nov 2018 20:47:48 -0000 (UTC), Arlen_Holder wrote:

So I may have to give up getting Android emulation to work on my AMD CPU,
but there's one more test I can run, I think, which is to use an ARM CPU:
https://youtu.be/OjD9t1bfYsY?t=193
Where the guy says we can "just click on the ARM processor"



Solved ... sort of.

I'm not sure exactly how I solved it since I tried many things,
but here's the current status (which has a few glitches remaining)
and where I'm not sure which "trick" is what made it finally work.
o I think it was the "Windows Hypervisor Platform" checkbox
FROM: http://www.bild.me/bild.php?file=9981202androidstudio18.jpg
TO: http://www.bild.me/bild.php?file=9740339androidstudio19.jpg
o Also changing the Google emulator to run on ARM instead of X86
http://www.bild.me/bild.php?file=2999468androidstudio24.jpg

These are the three devices I currently tried to emulate:
http://www.bild.me/bild.php?file=7607398androidstudio31.jpg
o Rounded corners: Nexus S API 25 ARM (Android 7.1.1, API 25)
o Squarish corners: Nexus 5X API 25 ARM (Android 7.1.1, API 25)
o Bottom Right: MS Android Emulator x86 (Android 5.1.1, API 22)
http://www.bild.me/bild.php?file=3093498androidstudio30.jpg

One issue with ARM over X86 emulation is that ARM is 10x slower:
http://www.bild.me/bild.php?file=2999468androidstudio24.jpg

The Microsoft emulator (right) was, by far, _faster than Google_:
http://www.bild.me/bild.php?file=4854975androidstudio25.jpg

But, eventually, all three emulators (Google, ARM, & MS) came up:
http://www.bild.me/bild.php?file=6567987androidstudio26.jpg

All 3 had some issues with Android OS apps pre-installed on them.
http://www.bild.me/bild.php?file=8587828androidstudio27.jpg

But all three were invoked by the IDE; where only 1 ran the app:
http://www.bild.me/bild.php?file=1405186androidstudio28.jpg

It's preliminary to confirm that it's working, but my tentative
recommendation is to run the Microsoft Emulator choosing x86
instead of running the Google emulators on x86 or ARM.
http://www.bild.me/bild.php?file=7301488androidstudio29.jpg

Since this problem is extremely common on AMD Windows machines,
I found a lot of "guesses", many of which I tried, where I
"think" the two that finally worked, sort of, we
1. Running the Google emulators as ARM (not x86) enabled
the Android Studio IDE to invoke them and for them to
populate their operating system - but - the Android IDE
"adb" command did not send the APK to run on the emulated
Nexus devices.

2. Running the Microsoft emulator as x86 worked almost
perfectly, in that it was more than 10 times faster
than the Google emulations running as ARM, and better
yet, the Android Studio IDE "adb" was able to send the
"Hello World" APK to the Microsoft emulator, where the
only minor glitch was that there were apps that had
to be stopped in the background for some reason.

My tentative recommendation for AMD Windows users is:
o You can run the Google emulators as ARM (but not x86)
o But it's better to run the Microsoft emulator & as x86.
Ads