QT wont detecte my new Tablet
-
@Kris-Revi can you access it via windows directly? as in, is it shown as a device? What permission did you set to the USB connection (on android)
also be aware, that Samsung devices are notorious for not working well with QtCreator, from my experience.
Especially live debugging(Debugger attached from QtCreator) may very well not be possible at all -
@J-Hilk it shows up fine in windows! the settings on the tablet are
USB Controlled By :
- Connected Device
- This Device (this is selected)
Use USB For :
- Transferring Files (this is selected)
- USB Tethering
- MIDI
- Transferring Images
- Charging Phone Only
-
@Kris-Revi ok, so far so good.
Just to make sure, in developer options, USB-Debugging is enabled ?
Have you selected the correct (fitting) kit in QtCreator?
What android version is running on your tablet?
Do you have something else open, that good hook the connection to the device ? Like Android Studio
try a different USB-Cable and/or port (I'm stretching it here, but it was the case for me recently)
-
- USB-Debugging is enabled!
- kit used is (Android Qt 6.2.0 Clang x86)
- Tablet running Knox 3.7
- i only have Qt Open! i opted to only install the The Android Command-line SDK Tools and install everything needed!
- i've only tested the 1 free USB i have xD
-
- kit used is (Android Qt 6.2.0 Clang x86)
this could be the problem, I think its armv7 what you need to install and use, but using Multi-Abi should work no matter what
- Tablet running Knox 3.7
Correct me, if I'm wrong here, but Knox is a layer on top of android, designed by Samsung for "Company Security" stuff, right ? maybe it doesn't allow usb developing ?
I have no idea :(
-
@Kris-Revi try compiling anyway,
for what every reason my code model is also completely messed up when I compile for android, with errors and warnings etcbut it still compiles fine 🤷♂️
-
@J-Hilk erh i got an annoying error
so i re-installed windows and qt and now my code wont compile
im using this -> https://github.com/romixlab/qmsgpack
and in my
.pro
file i have thiswin32: LIBS += -LC:/QMsgPack/build/src/Release/ -lqmsgpack INCLUDEPATH += C:/QMsgPack/build/src/Release DEPENDPATH += C:/QMsgPack/build/src/Release
i get this error
other then that it seems to work, i see my tablet in Qt now and can select it! but this error is unknown to me :S
-
@Kris-Revi Hey congratulations!
Do you mind, telling us, what the problem was, so that other users that have similar problems can also solve it :D
-
@J-Hilk i removed everything from "Android Studio" and followed this tutorial -> https://doc.qt.io/qt-5/android-getting-started.html
and it worked like a charm!
currently using
Qt Creator 5.0.0 Beta1
and using kitAndroid 6.2.0 Clang arm64-v8a
EDIT:
i also followed a tip from another tutorial where they stated that DONT install the android SDK in the default location in the installer! move it to somwhere Qt can find it! so i installed it atC:\AndroidSDK
and i also haveC:\Qt