android - Why is BUILD FAILED? -


i trying run simplest qt application on android device. there avd , real phone android. both of them error:

build failed /home/user1/dev/android-sdk-linux/tools/ant/build.xml:649: following error occurred while executing line: /home/user1/dev/android-sdk-linux/tools/ant/build.xml:655: execute failed: java.io.ioexception: cannot run program "/home/user1/workspace/build-test11123-android_for_armeabi_v7a_gcc_4_9_qt_5_4_2-debug/android-build/${aidl}": error=2, no such file or directory         @ java.lang.processbuilder.start(processbuilder.java:1047)         @ java.lang.runtime.exec(runtime.java:617)         @ org.apache.tools.ant.taskdefs.launcher.java13commandlauncher.exec(java13commandlauncher.java:58)         @ org.apache.tools.ant.taskdefs.execute.launch(execute.java:428)         @ org.apache.tools.ant.taskdefs.execute.execute(execute.java:442)         @ org.apache.tools.ant.taskdefs.exectask.runexecute(exectask.java:628)         @ org.apache.tools.ant.taskdefs.exectask.runexec(exectask.java:669)         @ org.apache.tools.ant.taskdefs.exectask.execute(exectask.java:495)         @ com.android.ant.aidlexectask$aidlprocessor.process(aidlexectask.java:102)         @ com.android.ant.multifilestask.processfiles(multifilestask.java:131)         @ com.android.ant.aidlexectask.execute(aidlexectask.java:203)         @ org.apache.tools.ant.unknownelement.execute(unknownelement.java:292)         @ sun.reflect.generatedmethodaccessor4.invoke(unknown source)         @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)         @ java.lang.reflect.method.invoke(method.java:606)         @ org.apache.tools.ant.dispatch.dispatchutils.execute(dispatchutils.java:106)         @ org.apache.tools.ant.task.perform(task.java:348)         @ org.apache.tools.ant.taskdefs.sequential.execute(sequential.java:68)         @ com.android.ant.ifelsetask.execute(ifelsetask.java:120)         @ org.apache.tools.ant.unknownelement.execute(unknownelement.java:292)         @ sun.reflect.generatedmethodaccessor4.invoke(unknown source)         @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)         @ java.lang.reflect.method.invoke(method.java:606)         @ org.apache.tools.ant.dispatch.dispatchutils.execute(dispatchutils.java:106)         @ org.apache.tools.ant.task.perform(task.java:348)         @ org.apache.tools.ant.taskdefs.sequential.execute(sequential.java:68)         @ org.apache.tools.ant.unknownelement.execute(unknownelement.java:292)         @ sun.reflect.generatedmethodaccessor4.invoke(unknown source)         @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)         @ java.lang.reflect.method.invoke(method.java:606)         @ org.apache.tools.ant.dispatch.dispatchutils.execute(dispatchutils.java:106)         @ org.apache.tools.ant.task.perform(task.java:348)         @ org.apache.tools.ant.taskdefs.macroinstance.execute(macroinstance.java:396)         @ org.apache.tools.ant.unknownelement.execute(unknownelement.java:292)         @ sun.reflect.generatedmethodaccessor4.invoke(unknown source)         @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)         @ java.lang.reflect.method.invoke(method.java:606)         @ org.apache.tools.ant.dispatch.dispatchutils.execute(dispatchutils.java:106)         @ org.apache.tools.ant.task.perform(task.java:348)         @ org.apache.tools.ant.target.execute(target.java:435)         @ org.apache.tools.ant.target.performtasks(target.java:456)         @ org.apache.tools.ant.project.executesortedtargets(project.java:1393)         @ org.apache.tools.ant.project.executetarget(project.java:1364)         @ org.apache.tools.ant.helper.defaultexecutor.executetargets(defaultexecutor.java:41)         @ org.apache.tools.ant.project.executetargets(project.java:1248)         @ org.apache.tools.ant.main.runbuild(main.java:851)         @ org.apache.tools.ant.main.startant(main.java:235)         @ org.apache.tools.ant.launch.launcher.run(launcher.java:280)         @ org.apache.tools.ant.launch.launcher.main(launcher.java:109) caused by: java.io.ioexception: error=2, no such file or directory         @ java.lang.unixprocess.forkandexec(native method)         @ java.lang.unixprocess.<init>(unixprocess.java:186)         @ java.lang.processimpl.start(processimpl.java:130)         @ java.lang.processbuilder.start(processbuilder.java:1028)         ... 48 more  total time: 0 seconds building android package failed!   -- more information, run command --verbose. 16:30:43: process "/opt/qt/5.4/android_armv7/bin/androiddeployqt" exited code 14. error while building/deploying project test11123 (kit: android armeabi-v7a (gcc 4.9, qt 5.4.2)) when executing step "build android apk" 

building qt android app fails did not me.

qt 5.4.2
qtcreator 3.4.1
galaxy s4 active
avd: api level 22 armeabi-v7a
java-7-openjdk-amd64

i had same problem. adding these lines build.xml file solved it:

<property name="aidl" location="${sdk.dir}/build-tools/22.0.1/aidl${exe}" /> <property name="aapt" location="${sdk.dir}/build-tools/22.0.1/aapt${exe}" /> <property name="dx" location="${sdk.dir}/build-tools/22.0.1/dx${exe}" /> <property name="zipalign" location="${sdk.dir}/build-tools/22.0.1/zipalign${exe}" /> 

Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -