Android X86 Emulator doens't start the app
-
hey,
I have some trouble with developing on android with Qt. I have a small test windows (layout, some buttons...) and I tested it with the android arm emulator. It's really slow but working. To increase the speed, I added the android x86 compiler and the aib system image for x86. Now I can compile and the emulator is ready MUCH faster but the app isn't starting.
After the virtual android is loaded successfully, nothing happen, the app doesn't start.I just read sometimes one message at the android startup:
"Unfortunately, Launcher3 has stopped".Here is the log of the compiler (but I can't see any problem):
13:06:02: Führe Schritte für Projekt CrossTest aus... 13:06:02: Unveränderte Konfiguration, qmake-Schritt wird übersprungen. 13:06:02: Starte "C:\Qt\Tools\mingw492_32\bin\mingw32-make.exe" mingw32-make: Nothing to be done for 'first'. 13:06:02: Der Prozess "C:\Qt\Tools\mingw492_32\bin\mingw32-make.exe" wurde normal beendet. 13:06:02: Lösche Verzeichnis C:\Users\deleted\Documents\build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug\android-build 13:06:02: Starte "C:\Qt\Tools\mingw492_32\bin\mingw32-make.exe" "INSTALL_ROOT=C:\Users\deleted\Documents\build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug\android-build" install copy /y libCrossTest.so C:\Users\deleted\Documents\build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug\android-build\libs\x86\libCrossTest.so 1 Datei(en) kopiert. 13:06:03: Der Prozess "C:\Qt\Tools\mingw492_32\bin\mingw32-make.exe" wurde normal beendet. 13:06:03: Starte "C:\Qt\5.6\android_x86\bin\androiddeployqt.exe" --input C:/Users/deleted/Documents/build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug/android-libCrossTest.so-deployment-settings.json --output C:/Users/deleted/Documents/build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug/android-build --deployment bundled --android-platform android-23 --jdk "C:/Program Files/Java/jdk1.7.0_79" --ant C:/Android/apache-ant-1.9.7/bin/ant.bat Generating Android Package Input file: C:/Users/deleted/Documents/build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug/android-libCrossTest.so-deployment-settings.json Output directory: C:/Users/deleted/Documents/build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug/android-build/ Application binary: C:/Users/deleted/Documents/build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug/libCrossTest.so Android build platform: android-23 Install to device: No Buildfile: C:\Users\deleted\Documents\build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug\android-build\build.xml -set-mode-check: -set-debug-files: -check-env: [checkenv] Android SDK Tools Revision 25.1.3 [checkenv] Installed at C:\Android\sdk_studio -setup: [echo] Project Name: QtApp [gettype] Project Type: Application -set-debug-mode: -debug-obfuscation-check: -pre-build: -build-setup: [getbuildtools] Using latest Build Tools: 23.0.3 [echo] Resolving Build Target for QtApp... [gettarget] Project Target: Android 6.0 [gettarget] API level: 23 [echo] ---------- [echo] Creating output directories if needed... [mkdir] Created dir: C:\Users\deleted\Documents\build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug\android-build\bin [mkdir] Created dir: C:\Users\deleted\Documents\build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug\android-build\bin\res [mkdir] Created dir: C:\Users\deleted\Documents\build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug\android-build\bin\rsObj [mkdir] Created dir: C:\Users\deleted\Documents\build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug\android-build\bin\rsLibs [mkdir] Created dir: C:\Users\deleted\Documents\build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug\android-build\gen [mkdir] Created dir: C:\Users\deleted\Documents\build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug\android-build\bin\classes [mkdir] Created dir: C:\Users\deleted\Documents\build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug\android-build\bin\dexedLibs [echo] ---------- [echo] Resolving Dependencies for QtApp... [dependency] Library dependencies: [dependency] No Libraries [dependency] [dependency] ------------------ [echo] ---------- [echo] Building Libraries with 'debug'... [subant] No sub-builds to iterate on -code-gen: [mergemanifest] Merging AndroidManifest files into one. [mergemanifest] Manifest merger disabled. Using project manifest only. [echo] Handling aidl files... [aidl] Found 2 AIDL files. [aidl] Compiling 2 AIDL files. [echo] ---------- [echo] Handling RenderScript files... [echo] ---------- [echo] Handling Resources... [aapt] Generating resource IDs... [echo] ---------- [echo] Handling BuildConfig class... [buildconfig] Generating BuildConfig class. -pre-compile: -compile: [javac] Compiling 6 source files to C:\Users\deleted\Documents\build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug\android-build\bin\classes [javac] Note: C:\Users\deleted\Documents\build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug\android-build\src\org\qtproject\qt5\android\bindings\QtActivity.java uses or overrides a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. -post-compile: -obfuscate: -dex: [dex] input: C:\Users\deleted\Documents\build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug\android-build\bin\classes [dex] input: C:\Users\deleted\Documents\build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug\android-build\libs\QtAndroid-bundled.jar [dex] input: C:\Users\deleted\Documents\build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug\android-build\libs\QtAndroidAccessibility-bundled.jar [dex] Pre-Dexing C:\Users\deleted\Documents\build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug\android-build\libs\QtAndroid-bundled.jar -> QtAndroid-bundled-658b7ae5fd0f4a2fd77eb779431dc86c.jar [dex] Pre-Dexing C:\Users\deleted\Documents\build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug\android-build\libs\QtAndroidAccessibility-bundled.jar -> QtAndroidAccessibility-bundled-95ca16830c1db7cb0f3b3b40cc2be008.jar [dex] Converting compiled files and external libraries into C:\Users\deleted\Documents\build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug\android-build\bin\classes.dex... [dx] Merged dex #1 (23 defs/42,6KiB) [dx] Merged dex #2 (60 defs/120,8KiB) [dx] Merged dex #3 (5 defs/10,4KiB) [dx] Result is 88 defs/203,1KiB. Took 0,1s -crunch: [crunch] Crunching PNG Files in source dir: C:\Users\deleted\Documents\build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug\android-build\res [crunch] To destination dir: C:\Users\deleted\Documents\build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug\android-build\bin\res [crunch] Crunched 0 PNG files to update cache -package-resources: [aapt] Creating full resource package... -package: [apkbuilder] Current build type is different than previous build: forced apkbuilder run. [apkbuilder] Creating QtApp-debug-unaligned.apk and signing it with a debug key... -post-package: -do-debug: [zipalign] Running zip align on final apk... [echo] Debug Package: C:\Users\deleted\Documents\build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug\android-build\bin\QtApp-debug.apk [propertyfile] Creating new property file: C:\Users\deleted\Documents\build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug\android-build\bin\build.prop [propertyfile] Updating property file: C:\Users\deleted\Documents\build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug\android-build\bin\build.prop [propertyfile] Updating property file: C:\Users\deleted\Documents\build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug\android-build\bin\build.prop [propertyfile] Updating property file: C:\Users\deleted\Documents\build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug\android-build\bin\build.prop -post-build: debug: BUILD SUCCESSFUL Total time: 9 seconds Android package built successfully in 12.046 ms. -- File: C:/Users/deleted/Documents/build-CrossTest-Android_f_r_x86_GCC_4_9_Qt_5_6_0-Debug/android-build//bin/QtApp-debug.apk 13:06:15: Der Prozess "C:\Qt\5.6\android_x86\bin\androiddeployqt.exe" wurde normal beendet.
-
Can you check in the emulator whether there is an icon for your app and if so just press on it.
Actually, from the log I can only see that the APK file was generated but not that it was deployed to the emulator. You should check the project settings "Run" where should be a deployment step.
-
Hi,
Out of curiosity, did you also cross-compile Qt for x86 ?
-
@SGaist
Yea seems all correct.@jsulm
There is no app I can launch. If the emulator is up, Qt suck at some point as you can see here:
ImageSome minutes later appear this message:
Fehler beim Erstellen/Deployment des Projekts CrossTest (Kit: Android für x86 (GCC 4.9, Qt 5.6.0))
Bei der Ausführung von Schritt "Deployment auf Android-Gerät"Translated somethined like
Error while Creating/Deployment of the project CrossTest (Kit: Android für x86 (GCC 4.9, Qt 5.6.0))
At the execution of step "Deployment on the Android-Device"Edit//
I still have no solution but working with my S6 and the USB-Debugging working pretty well. I think I use my real device then. Thx anyway^^ -
Is there more detailed error message?