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@
-
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?
-
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]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. -
[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:
- 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")
- 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" - execute "/etc/init.d/udev reload"
- Unplug/plug the device
- execute "adb devices" (It should answer something like:
"List of devices attached
CB5Axxxxxx device" - If the answer still has "?????", execute:
sudo ./adb kill-server
sudo ./adb start-server
sudo ./adb devices