Unsolved Errors when running by an x86 emulator
-
@tomy I don't have my Android development environment at hand here, but you should check the configuration of your emulator: is there something related to graphics (especially acceleration) you can activate?
-
I also tried this example. The same result!
What configuration of the emulator should I check? Do you mean the config.ini file of that AVD? If so, it is this way:
avd.ini.encoding=UTF-8
abi.type=x86
disk.dataPartition.size=200M
hw.accelerometer=yes
hw.audioInput=yes
hw.battery=yes
hw.camera.front=none
hw.cpu.arch=x86
hw.dPad=no
hw.device.hash2=MD5:d3c9ed02af441ec949711439b9a48b85
hw.device.manufacturer=Google
hw.device.name=Nexus 7
hw.gps=yes
hw.keyboard=yes
hw.lcd.density=213
hw.mainKeys=no
hw.ramSize=1024MB
hw.sdCard=no
hw.sensors.orientation=yes
hw.sensors.proximity=no
hw.trackBall=no
image.sysdir.1=system-images\android-24\default\x86
skin.dynamic=yes
skin.name=800x1280
skin.path=800x1280
tag.display=Default
tag.id=default
vm.heapSize=32I removed the previous AVD and created this one with the same configurations, but this one is very slow!
-
@tomy See if https://forum.qt.io/topic/75374/qml-import-could-not-be-resolved-any-of-the-import-paths-qtquick-controls-material-impl/4 and https://forum.qt.io/topic/72424/blank-screen-with-android-emulator-win10-android-x86-image/3 and https://forum.qt.io/topic/72071/qt5-7-android-stopped-working-after-a-studio-updates/6 help.
-
Using a command prompt I went to the Tools folder of SDK. Then click on the Run on Qt Creator (with the project opened) but didn't choose the AVD, rather I typed this command:
emulator -avd Nexus_7_x86 -gpu swiftshader
on the command line and hit enter. This was the result: -
mmh,
I'm not very familiar with QML, but if I remember correctly, one of its requierements is the use of openGL on the target device.In the screenshot it says for the x86 device, openGL disabled .
Might be the problem !?
-
OK, how to enable it?
Maybe "is not linked" means it's disabled. -
like I said, i have used the emulator like 3 and it never worked for me like i wanted it to, but
SGaist wrote here in a very old topic about, it maybe he can help you more :)
@SGaist said in How to enable OpenGL:
Hi,
IIRC (might be old so…) there was somewhere a configuration option for the emulator to activate OpenGL. It might be only available for the x86 emulator though.
Hope it helps
-
@tomy Are you sure you have the x86 version active in Qt Creator? It looks like you're trying to run arm binary in x86 emu.
Also, I have had several problems with the Android SDK emulator. Sometimes I had to recreate the configurations from scratch. Also had some problems with certain Android OS versions (or maybe Android OS version/emulator version incompatibilities) so that some error message keeps appearing in the Android screen and I had to skip some Android OS versions. A painful experience, this emulator. It's easier to get some old used devices instead. Or to use a commercial emulator as someone suggested.
-
@J.Hilk
I agree with you that the emulator never worked for me well and never will, too. If I collect all the money paid for the traffic I buy for downloading the SDK, I likely can buy a real Samsung device for real testing :-)there was somewhere a configuration option for the emulator to activate OpenGL.
It's very vague for me.
-
@Eeli-K
Yes, I think buying a real android device (for example a second-hand Samsung Galaxy) that is bale to be updated for each new version, is the best solution.