Export to GitHub

android-lighthouse - issue #75

Deployment doesn't seem to work


Posted on Mar 9, 2011 by Quick Dog

What steps will reproduce the problem? 1. File -> New Project -> QtQuick Project / QtQuick Application 2. Make the adjustments in projects session to run it on the device, in my case I chose android-8 as target sdk. 3. Compile 4. Again at the project session I went to "libraries" and then "Read info from application". 5. Run

What is the expected output? What do you see instead?

The expected output should be a screen with a "Hello World" text in the middle, when the user clicks anywhere in the screen the app closes (default QtQuick project).

Instead I got a blank screen that does nothing.

What version of the product are you using? On what operating system?

Necessitas SDK 1.1 on kubuntu 10.10.

Please provide any additional information below. Application output: D/Qt (13885): paramsString "QtApp -platform android" W/Qt (13885): WARNING: QApplication was not created in the main() thread. D/Qt (13885): QAndroidPlatformIntegrationPlugin::create "android" D/Qt (13885): QFbScreen::setPhysicalSize QSize(140, 238) D/Qt (13885): QFbScreen::setGeometry QRect(0,0 600x986) D/Qt (13885): QAndroidPlatformScreen::QAndroidPlatformScreen():QFbScreen() D/dalvikvm(13885): GC_EXTERNAL_ALLOC freed 1343 objects / 87904 bytes in 41ms W/Qt (13885): file:qml/HelloQuickAndroid/main.qml: File not found D/Qt (13885): createPlatformWindow false D/Qt (13885): setFullScreen false

I think the import line here is: W/Qt (13885): file:qml/HelloQuickAndroid/main.qml: File not found

Compile output: Running build steps for project HelloQuickAndroid... Configuration unchanged, skipping qmake step. Starting: "/usr/bin/make" -w make: Entering directory /home/paulo/workspace/HelloQuickAndroid-build-android' Copying application data... make: Leaving directory/home/paulo/workspace/HelloQuickAndroid-build-android' The process "/usr/bin/make" exited normally. Copy Qt app & libs to Android package ... Stripping libraries, please wait Creating package file ... Package Creation: Running command '/usr/bin/ant debug' Buildfile: /home/paulo/workspace/HelloQuickAndroid/android/build.xml [setup] Android SDK Tools Revision 9

[setup] Project Target: Android 2.2

[setup] API level: 8

[setup] 

[setup] ------------------

[setup] Resolving library dependencies:

[setup] No library dependencies.

[setup] 

[setup] ------------------

[setup] 

[setup] WARNING: No minSdkVersion value set. Application will install on all Android versions.
[setup] 
[setup] Importing rules file: tools/ant/main_rules.xml

-debug-obfuscation-check:

-set-debug-mode:

-compile-tested-if-test:

-dirs: [echo] Creating output directories if needed... [mkdir] Created dir: /home/paulo/workspace/HelloQuickAndroid/android/bin [mkdir] Created dir: /home/paulo/workspace/HelloQuickAndroid/android/gen [mkdir] Created dir: /home/paulo/workspace/HelloQuickAndroid/android/bin/classes

-pre-build:

-resource-src: [echo] Generating R.java / Manifest.java from the resources...

-aidl: [echo] Compiling aidl files into Java classes...

-pre-compile:

compile: [javac] /home/paulo/android-sdk-linux_x86/tools/ant/main_rules.xml:361: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 6 source files to /home/paulo/workspace/HelloQuickAndroid/android/bin/classes

-post-compile:

-obfuscate:

-dex:

 [echo] Converting compiled files and external libraries into /home/paulo/workspace/HelloQuickAndroid/android/bin/classes.dex...

-package-resources: [echo] Packaging resources [aapt] Creating full resource package...

-package-debug-sign: [apkbuilder] Creating HelloQuickAndroid-debug-unaligned.apk and signing it with a debug key...

debug:

 [echo] Running zip align on final apk...

 [echo] Debug Package: /home/paulo/workspace/HelloQuickAndroid/android/bin/HelloQuickAndroid-debug.apk

BUILD SUCCESSFUL Total time: 5 seconds Package created. Please wait, searching for a siutable device for target:android-8. Installing package onto 1000a7a05aff. Package deploy: Running command '/home/paulo/android-sdk-linux_x86/platform-tools/adb -s 1000a7a05aff uninstall eu.licentia.necessitas.industrius.example.HelloQuickAndroid'. Success Package deploy: Running command '/home/paulo/android-sdk-linux_x86/platform-tools/adb -s 1000a7a05aff install "/home/paulo/workspace/HelloQuickAndroid/android/bin/HelloQuickAndroid-debug.apk"'. 1000 KB/s (35886 bytes in 0.035s) pkg: /data/local/tmp/HelloQuickAndroid-debug.apk

Success

Comment #1

Posted on Mar 18, 2011 by Grumpy Lion

Also getting the following error when trying to deploy and run QT App. with QML files

Error: W/Qt 6514): file:qrc:/test/main.qml: File not found

Comment #2

Posted on Oct 29, 2011 by Swift Horse

Fixed, please use Necessitas alpha 3

Comment #3

Posted on Nov 30, 2011 by Massive Lion

I have an up to date vr of Necessitas and i dont believe its fixed. I am getting the same to errors showing

W/Qt (16605): WARNING: QApplication was not created in the main() thread.

W/Qt (16605): file:///qrc:/qml/HelloWorld/main.qml: File not found

I tried adding a qrc resource file similar to "samegame" example but to no success.

Comment #4

Posted on Dec 3, 2011 by Grumpy Lion

Same problem on Necessitas 0.3

W/Qt ( 8585): file:///data/data/org.kde.necessitas.example.QuickMusic/files/qml/FirstFrame.qml: File not found

Comment #5

Posted on Jan 3, 2012 by Happy Elephant

please did anyone find a solution for "file:///data........./files/qml/qmlfile.qml: file not found" ? what is this problem ? can it be fixed manually ? I am using Necessitas 0.3 (latest version)

Comment #6

Posted on Jan 5, 2012 by Quick Giraffe

I think the issue is fixed but not released yet (In 0.4) Until then you can update QmlApplicationViewer with:

void QmlApplicationViewer::setMainQmlFile(const QString &file) { d->view->setSource(QUrl(file)); }

Comment #7

Posted on Jan 11, 2012 by Happy Cat

Hi, I've got the same problem. Editing source won't work, because qml directory with *.qml files aren't packed into .apk file at all (apk is a .zip file in fact, so you can check its content using unzip -l file.apk). I'm not familiar with android package system yet, so I can't check which (probably) .xml file is responsible for extra resources which should land into /data/data/org.(...)/files/.

Comment #8

Posted on Jan 14, 2012 by Quick Bear

I have the same problem! I tried a lot, but still have not solved it!

Comment #9

Posted on Jan 16, 2012 by Happy Kangaroo

Does anyone know when the 0.4 version is hoped to be released. Im doing a cross platform application in college and the app needs to deploy to android.

Comment #10

Posted on Jan 29, 2012 by Grumpy Horse

I have same problem. I'm doing research about cross-platform application. Please help me!!!

Status: Fixed

Labels:
Type-Defect Priority-Medium