[Qt-creator] Android debugging in Qt Creator 4.10.2

Assam Boudjelthia assam.boudjelthia at qt.io
Thu Jan 16 15:42:46 CET 2020


Hi Francesc,

I couldn't reproduce this crash on three different devices (OnePlus 7, Galaxy 9, Pixel C) with the mentioned versions.
Please list details of your environment at https://bugreports.qt.io/browse/QTCREATORBUG-23104 listing additionally build-tools & platform-tools and phone type.

This will be investigated more.

Best regards,
Assam
________________________________
From: Francesc Martinez <francescmm at gmail.com>
Sent: Thursday, January 16, 2020 4:00 PM
To: Fabrice Mousset | GEOCEPT GmbH <fabrice.mousset at geocept.com>
Cc: Assam Boudjelthia <assam.boudjelthia at qt.io>; qt-creator at qt-project.org <qt-creator at qt-project.org>
Subject: Re: [Qt-creator] Android debugging in Qt Creator 4.10.2

Hi,

Sorry I forgot that! I'm using NDK 21.0.6113669, SDK 26.1.1. In the Android Manifest I've set the minimum API to 24 and the target is 28.

Best,
Francesc.

El jue., 16 ene. 2020 a las 14:57, Fabrice Mousset | GEOCEPT GmbH (<fabrice.mousset at geocept.com<mailto:fabrice.mousset at geocept.com>>) escribió:

Hi Francesc,



maybe a silly question, but which NDK version are you using?

As far as I know, NDK r20 is required for Qt 5.14.



My 2cts.



Fabrice



Von: Qt-creator <qt-creator-bounces at qt-project.org<mailto:qt-creator-bounces at qt-project.org>> Im Auftrag von Francesc Martinez
Gesendet: Donnerstag, 16. Januar 2020 14:49
An: Assam Boudjelthia <assam.boudjelthia at qt.io<mailto:assam.boudjelthia at qt.io>>
Cc: qt-creator at qt-project.org<mailto:qt-creator at qt-project.org>
Betreff: Re: [Qt-creator] Android debugging in Qt Creator 4.10.2



Hi again!



If upgraded and downloaded Qt 5.14 and it keeps failing. Here is the message I get in Qt Creator and the specs of my environment.



The command "/home/<user>/Android/Sdk/platform-tools/adb" terminated with exit code 1.
The command "/home/<user>/Android/Sdk/platform-tools/adb" terminated with exit code 1.
adb: error: listener 'tcp:5039' not found
14:45:09: Unable to create a debugging engine.
I art : Late-enabling -Xcheck:jni
W ActivityThread: Application com.me.myapp is waiting for the debugger on port 8100...
The command "/home/<user>/Android/Sdk/platform-tools/adb" terminated with exit code 1.
/system/bin/sh: kill: 21391: No such process
The command "/home/<user>/Android/Sdk/platform-tools/adb" terminated with exit code 1.
kill: unknown pid '21391'
The command "/home/<user>/Android/Sdk/platform-tools/adb" terminated with exit code 1.
adb: error: listener 'tcp:5038' not found
I System.out: Sending WAIT chunk


"com.me.myapp" died.



I'm running Qt Creator 4.11 with Qt 5.14. Using CMake as project file and Android as platform.



Let me know if you need any debug traces or anything else :)



Cheers,

Francesc.





El jue., 16 ene. 2020 a las 14:10, Assam Boudjelthia (<assam.boudjelthia at qt.io<mailto:assam.boudjelthia at qt.io>>) escribió:

Hi Francesc,



I just found out about this JSON issue also. However, if you could use Qt 5.14.0 it works with Qt Creator 11.0 and CMake.



In Qt 5.14.0 all ABIs are installed as one package, and most likely the JSON bug is related to that change.



Best regards,

Assam



________________________________

From: Francesc Martinez <francescmm at gmail.com<mailto:francescmm at gmail.com>>
Sent: Thursday, January 16, 2020 3:00 PM
To: Assam Boudjelthia <assam.boudjelthia at qt.io<mailto:assam.boudjelthia at qt.io>>
Cc: Robert Loehning <Robert.Loehning at qt.io<mailto:Robert.Loehning at qt.io>>; qt-creator at qt-project.org<mailto:qt-creator at qt-project.org> <qt-creator at qt-project.org<mailto:qt-creator at qt-project.org>>
Subject: Re: [Qt-creator] Android debugging in Qt Creator 4.10.2



Hi Assam,



The problem of Qt Creator 4.11 is that apparently it has been introduced some breaking changes in the JSON file that is generated as is stated in here: https://bugreports.qt.io/browse/QTCREATORBUG-23306. Since my project is CMake I'm forced to remain at Qt Creator 4.10. If I manage to fix the issues in Qt Creator 4.11 and CMake, I will try that, definitely.



Cheers,

Francesc.



El jue., 16 ene. 2020 a las 13:44, Assam Boudjelthia (<assam.boudjelthia at qt.io<mailto:assam.boudjelthia at qt.io>>) escribió:

Hi Francesc,



Could you please check the tickets Robert pointed to first. I just tested Qt Creator 11.0 with Qt 5.14.0 and the debugger is not crashing (even though that logcat message is thrown). Could you try and test those versions?



> I'm sad to say that nobody is maintaining Creator's Android integration currently, so a fix might take a while.



I'm currently taking care of Android support, but mostly working on a few improvements to the Android support https://bugreports.qt.io/browse/QTBUG-79664, so this will be looked into in a while.



Best regards,

Assam

________________________________

From: Qt-creator <qt-creator-bounces at qt-project.org<mailto:qt-creator-bounces at qt-project.org>> on behalf of Robert Loehning <Robert.Loehning at qt.io<mailto:Robert.Loehning at qt.io>>
Sent: Thursday, January 16, 2020 11:56 AM
To: qt-creator at qt-project.org<mailto:qt-creator at qt-project.org> <qt-creator at qt-project.org<mailto:qt-creator at qt-project.org>>
Subject: Re: [Qt-creator] Android debugging in Qt Creator 4.10.2



Am 16.01.20 um 10:01 schrieb Francesc Martinez:
> Hi all,
>
> I'm running a CMake project and I'm struggling to debug Android build with
> Qt Creator 4.10.2 and Qt 5.13.1. Everything works fine during building and
> deploying. But if I try to debug the build it just crashes with the message:
>
> LOGCAT: The command "/home/<user>/Android/Sdk/platform-tools/adb"
> terminated with exit code 1.
>
> adb: error: listener 'tcp:5039' not found
>
>
> I tried with API 21, 24 and 29. All of them fail.
>
> I tried with different Android devices: Nexus 5, Nexus 6, Samsung Galaxy
> 10e, etc.
>
>
> Does anybody have the same issue?
>
>
> PS: I didn't update to 4.11 because there are several things broken with
> CMake and AndroidDeployQt.

Hi Francesc,

what you write sounds like those report which might be duplicating each
other:

https://bugreports.qt.io/browse/QTCREATORBUG-22098
https://bugreports.qt.io/browse/QTCREATORBUG-23104

I'm sad to say that nobody is maintaining Creator's Android integration
currently, so a fix might take a while.

Cheers,
Robert
_______________________________________________
Qt-creator mailing list
Qt-creator at qt-project.org<mailto:Qt-creator at qt-project.org>
https://lists.qt-project.org/listinfo/qt-creator
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20200116/d54a54b6/attachment-0001.html>


More information about the Qt-creator mailing list