Unsolved The first use of Android emulator
-
Hi guys,
Using Qt Creator 5.8 I created an app named
App1
following the Creating the Project section.
Then created anAVD
like this the ran the app and chose the Virtual Device > OK and waited and waited.No virtual device will be shown to see my app work there!
I created anotherAVD
as follows and did the works above using this one.Again, no result!
I see no errors too.
What is your idea about the problem please? -
@tomy Do you see any warnings/errors in QtCreator "Application Output" and "Compile Output" tabs? Also which Kit do you use (is it ARM v7 and API level 22?)?
-
I used this:
AVD_for_Nexus_4_by_Google API 22 armeabiAnd got the followings in the "
Compile Output
":// ...(Many lines here ended to build successful)
BUILD SUCCESSFULTotal time: 5.413 secs
Android package built successfully in 14.136 ms.
-- File: C:/Users/CS/Documents/Qt/App1/build-App1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0-Debug/android-build//build/outputs/apk/android-build-debug.apk
Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
12:26:30: The process "C:\Qt\Qt5.8.0\5.8\android_armv7\bin\androiddeployqt.exe" exited normally.
Error while building/deploying project App1 (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.8.0))
When executing step "Deploy to Android device"
12:28:35: Elapsed time: 02:20. -
I thought much about it. The problem whatever it is, it belongs to the kit.
I created another project.
Whatever I create I get that error.Error while building/deploying project QApp_1 (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.8.0)) When executing step "Deploy to Android device"
It took about 10 days so that I could have the system images on SDK. Now that it was solved I have this new issue.
Let me ask you a question: how to you use Android Emulator please?
-
@tomy Well, I just use it after configuring (but I use x86 as it is faster).
Is it the only error message you see?
Did you try to assign even less RAM to emulated device, like 1024MB?
Did you try to use emulator from AndroidStudio to make sure it is not a general problem on your machine? -
@jsulm
I also created a new ARM AVD using Android Studio (if you meant this by "use emulator from Android Studio"), with 760MB of RAM but the same problem with some warnings (as posted in above post as the error message of compile output).I thank you for pursuing the problem and dedicating time for it.
I'm now downloading the x86 system images for SDK to use an x86 AVD later.
-
@tomy I suggested to try to create a simple Java Android app in AndroidStudio and try to run it in emulator.
-
@jsulm
I tried this tut and because of some errors when processing related to the packages recommended by Android Studio for installing/updating, I went to do it.I will make that app as soon as packages are installed. (Unfortunately we don't have a good bandwidth here suitable for our needs).
Thanks.