Solved Qt error when attempting to compile android APK
-
Hi,
I try to do that but I have this error :
* What went wrong: Execution failed for task ':compileDebugAidl'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/me/Documents/Android/sdk/build-tools/23.0.2/aidl'' finished with non-zero exit value 139
Do you have any idea of solutions ?
-
Did you do a full rebuild of your project ? i.e. nuke the shadow build before compiling.
-
Yes of course, to be sure, I deleted the whole folder which came after building.
But the error is the same as the error with ant, it's always about aidl inside of sdk/tools/ant/build.xml.
-
-
@Pablo-J.-Rogina Hum yeah, I read that but it's an old topic, maybe it's because API 23 has problems ?
EDIT : I tried to build with API-10 and API-18 but there is this error, again and again :
[mergemanifest] Manifest merger disabled. Using project manifest only. [echo] Handling aidl files... [aidl] Found 2 AIDL files. [aidl] Compiling 2 AIDL files. BUILD FAILED /Users/me/Documents/Android/sdk/tools/ant/build.xml:658: The following error occurred while executing this line: /Users/me/Documents/Android/sdk/tools/ant/build.xml:664: null returned: 139
-
@Lordful mmm it looks definitely connected to Ant... Could you please describe your environment (OS, tools version, installation paths)?
Also, have you taken a look at build.xml:664, the line with the error?
In addition, this bug report may be applicable to you
-
@Pablo-J.-Rogina Here is the informations :
OS : OS X 10.7.5
JDK : 1.8.0_73
path : /Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/HomeSDK : 24.4.1 - Latest on official website
path : /Users/me/Documents/Android/sdkNDK : r11b-darwin-x86_64 - Latest on official website
path : /Users/me/Documents/Android/ndkAnt : 1.9.6
path : /usr/local/Cellar/ant/1.9.6/bin/antEDIT : Build Tools: 23.0.2
Available version of Android : API 18, 10.
Here is the error on line of build.xml :
<aidl executable="${aidl}" framework="${project.target.framework.aidl}" libraryBinAidlFolderPathRefid="project.library.bin.aidl.folder.path" genFolder="${gen.absolute.dir}" aidlOutFolder="${out.aidl.absolute.dir}"> <source path="${source.absolute.dir}"/> </aidl>
I test each value of this and there are all good, except project.library.bin... which isn't a value.
-
Solved by using an other sdk build-tools, I installed sdk build-tools 19.1 and I can build now.
Next step : Launch emulator and my application on this old mac with 2 GB ram, actually, 1.80GB are used. It will be funny :D
-
Glad you solved it, please don't forget to change the post status accordingly. On the emulator side... be patient!
-
@Pablo-J.-Rogina As I said ... it was to simple to be true :D
First, I can't launch an emulator, I guess that It's because I don't have a lot of RAM.
Second, I tried to use a smartphone ... one more time, Android have a problem because Qt can't find my device even after installing a specific driver.
I found a solution, it's to add manually the smartphone to adb and then, kill-server and restart the adb server. That's where is the problem because I can't do anything with adb without receive :
Illegal Instruction : 4
So, I change the version of plateform-tools but this time, the problem is still present ...
I didn't like Android and I'm still not starting to like it right now ... :D
SOLUTION : Download an older platform-tools and replace the folder by the download folder.