Qt Creator unable to see my Android device!



  • Howdy,

    I want to deploy my Qt application directly to Android device instead of AVD so I read the "documentation":http://qt-project.org/doc/qtcreator-2.7/creator-developing-android.html but unfortunately it doesn't mention anything about this issue.

    How can I connect my Android device to Qt Creator?

    I'm using:

    • Mint KDE 15 x64
    • Android API 18
    • Qt 5.1.1
    • Qt Creator 2.8.1


  • Try with the command adb in the command prompt to show connected devices:

    @adb devices@



  • [code]mbnoimi@mbnoimi-pc:~/android-sdk-linux/platform-tools > ./adb devices
    List of devices attached
    ???????????? no permissions[/code]



  • I think it is not only a Qt Creator problem, but also from the detection of the device.

    Have you set the device in debbug mode?



  • [quote]Have you set the device in debbug mode?[/quote]
    Yes, in addition to that I tried to use different types of mobiles (Samsung Galaxy S3 and Samsung Galaxy Note II)



  • mbnoimi,

    Do you install and set Android NDK, SDK , JDK and apache ant paths?
    you should set these parameters in Android section in Qt Creator options.
    also you should download qt for android with suitable compiler(android for arm or android for x86).

    also in android device you should mark Developers Debugging option in settings.
    Finally check usb driver.



  • There is an updated version of the documentation available at:

    http://qt-project.org/doc/qtcreator-2.8/creator-developing-android.html

    Version 2.8 documentation also includes a tutorial:

    http://qt-project.org/doc/qtcreator-2.8/creator-android-app-tutorial.html



  • [quote]There is an updated version of the documentation[/quote]
    The updated documentation doesn’t mention anything may fix this issue!



  • [quote]Do you install and set Android NDK, SDK , JDK and apache ant paths?
    you should set these parameters in Android section in Qt Creator options.
    also you should download qt for android with suitable compiler(android for arm or android for x86).

    also in android device you should mark Developers Debugging option in settings.[/quote]
    Sure I did all of that :\

    [quote] Finally check usb driver.[/quote]
    What do you mean?! My pc able to see the memory card of the mobile.



  • I have just installed Qt 5.1.1 and QtCreator 4.8.1 does not find my Android devices. DDMS however does. QtCreator 4.7.2 from Qt 5.1.0 finds the phone too., even when I use a Qt5.1.1 toolkit. So this really seems to be a bug in QtCreator 2.8.1.



  • Needs some help from Qt Android gurus to be sure what if this is a real bug or it just configurations issue.



  • [quote author="mbnoimi" date="1378814184"][code]mbnoimi@mbnoimi-pc:~/android-sdk-linux/platform-tools > ./adb devices
    List of devices attached
    ???????????? no permissions[/code][/quote]

    You can try to fix the problem the next way:

    1. Execute "lsusb" to find out your device vendor ID (to me it was: "Bus 003 Device 003: ID 0fce:5194 Sony Ericsson Mobile Communications AB")
    2. Create a file /etc/udev/rules.d/51-android.rules with such a content:
      SUBSYSTEMS=="usb", ATTRS{idVendor}=="0fce", ATTRS{idProduct} =="5194",
      MODE="0666", OWNER="your_user_name"
    3. execute "/etc/init.d/udev reload"
    4. Unplug/plug the device
    5. execute "adb devices" (It should answer something like:
      "List of devices attached
      CB5Axxxxxx device"
    6. If the answer still has "?????", execute:
      sudo ./adb kill-server
      sudo ./adb start-server
      sudo ./adb devices

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.