Qt 6.3 unable to deploy to device (windows 10)
-
Hi! I get this errors(compile) when I deploy to device.
"Skipping createRCC
adb.exe: device 'DVKS100I21060300956' not found
Warning: QML import could not be resolved in any of the import paths: Shapes
Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Windows
Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.macOS
Installing to device failed!
Installing Android package to device.
Running command "C:/Users/o/AppData/Local/Android/Sdk/platform-tools/adb.exe -s DVKS100I21060300956 install -r C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/android-build//build/outputs/apk/debug/android-build-debug.apk"
09:59:35: The process "C:\Qt\6.3.0\mingw_64\bin\androiddeployqt.exe" exited with code 16.
09:59:35: Installing the app failed with an unknown error.
09:59:35: Pulling files necessary for debugging.
09:59:35: Package deploy: Running command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/bin/app_process C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/app_process".
09:59:35: The command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/bin/app_process C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/app_process" terminated with exit code 1.
09:59:35: Package deploy: Failed to pull "/system/bin/app_process" to "C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/app_process".
09:59:35: Package deploy: Running command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/bin/app_process32 C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/app_process".
09:59:35: The command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/bin/app_process32 C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/app_process" terminated with exit code 1.
09:59:35: Package deploy: Failed to pull "/system/bin/app_process32" to "C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/app_process".
09:59:35: Package deploy: Running command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/bin/linker C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/linker".
09:59:35: The command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/bin/linker C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/linker" terminated with exit code 1.
09:59:35: Package deploy: Failed to pull "/system/bin/linker" to "C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/linker".
09:59:35: Package deploy: Running command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/lib/libc.so C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/libc.so".
09:59:35: The command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/lib/libc.so C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/libc.so" terminated with exit code 1.
09:59:35: Package deploy: Failed to pull "/system/lib/libc.so" to "C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/libc.so".
Error while building/deploying project TrackGate (kit: Android Qt 6.3.0 Clang arm64-v8a)
When executing step "Deploy to Android device"
09:59:35: Elapsed time: 03:02."I also get " Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details
Warning: This version only understands SDK XML versions up to 2 but an SDK XML file of version 3 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.
Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level> "" Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
"Please assist with deployment to device.
Thanks in advance -
Hi! I get this errors(compile) when I deploy to device.
"Skipping createRCC
adb.exe: device 'DVKS100I21060300956' not found
Warning: QML import could not be resolved in any of the import paths: Shapes
Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Windows
Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.macOS
Installing to device failed!
Installing Android package to device.
Running command "C:/Users/o/AppData/Local/Android/Sdk/platform-tools/adb.exe -s DVKS100I21060300956 install -r C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/android-build//build/outputs/apk/debug/android-build-debug.apk"
09:59:35: The process "C:\Qt\6.3.0\mingw_64\bin\androiddeployqt.exe" exited with code 16.
09:59:35: Installing the app failed with an unknown error.
09:59:35: Pulling files necessary for debugging.
09:59:35: Package deploy: Running command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/bin/app_process C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/app_process".
09:59:35: The command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/bin/app_process C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/app_process" terminated with exit code 1.
09:59:35: Package deploy: Failed to pull "/system/bin/app_process" to "C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/app_process".
09:59:35: Package deploy: Running command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/bin/app_process32 C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/app_process".
09:59:35: The command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/bin/app_process32 C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/app_process" terminated with exit code 1.
09:59:35: Package deploy: Failed to pull "/system/bin/app_process32" to "C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/app_process".
09:59:35: Package deploy: Running command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/bin/linker C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/linker".
09:59:35: The command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/bin/linker C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/linker" terminated with exit code 1.
09:59:35: Package deploy: Failed to pull "/system/bin/linker" to "C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/linker".
09:59:35: Package deploy: Running command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/lib/libc.so C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/libc.so".
09:59:35: The command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/lib/libc.so C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/libc.so" terminated with exit code 1.
09:59:35: Package deploy: Failed to pull "/system/lib/libc.so" to "C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/libc.so".
Error while building/deploying project TrackGate (kit: Android Qt 6.3.0 Clang arm64-v8a)
When executing step "Deploy to Android device"
09:59:35: Elapsed time: 03:02."I also get " Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details
Warning: This version only understands SDK XML versions up to 2 but an SDK XML file of version 3 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.
Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level> "" Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
"Please assist with deployment to device.
Thanks in advance@Ulaspag said in Qt 6.3 unable to deploy to device (windows 10):
adb.exe: device 'DVKS100I21060300956' not found
For the first question adb.exe: device 'DVKS100I21060300956' not found
Does adb found the device from command prompt? Run C:/Users/o/AppData/Local/Android/Sdk/platform-tools/adb.exe devices
Above should return device identity (like below) (likely ID for the DVKS100I21060300956 is not exactly that, but something else)
List of devices attached
DVKS100I21060300956 deviceDoes the target device have Developer mode enabled? Does the target device have Developer options - USB debugging enabled (you may enable also Stay awake if problem occurs when target dimm the display or even sleep)? If not enable those.
Does the connecting bus (e.g. USB cable or WLAN) that it works between the host and the your target device? If not try another one e.g. replace the USB cable or try another WLAN network (SSID)
-
@Ulaspag said in Qt 6.3 unable to deploy to device (windows 10):
adb.exe: device 'DVKS100I21060300956' not found
For the first question adb.exe: device 'DVKS100I21060300956' not found
Does adb found the device from command prompt? Run C:/Users/o/AppData/Local/Android/Sdk/platform-tools/adb.exe devices
Above should return device identity (like below) (likely ID for the DVKS100I21060300956 is not exactly that, but something else)
List of devices attached
DVKS100I21060300956 deviceDoes the target device have Developer mode enabled? Does the target device have Developer options - USB debugging enabled (you may enable also Stay awake if problem occurs when target dimm the display or even sleep)? If not enable those.
Does the connecting bus (e.g. USB cable or WLAN) that it works between the host and the your target device? If not try another one e.g. replace the USB cable or try another WLAN network (SSID)
@Rampe said in Qt 6.3 unable to deploy to device (windows 10):
C:/Users/o/AppData/Local/Android/Sdk/platform-tools/adb.exe devices
When i run the above command i get
"
C:\Users\o\AppData\Local\Android\Sdk\platform-tools>start adb.exeC:\Users\o\AppData\Local\Android\Sdk\platform-tools>adb devices
List of devices attached
320195927566 device
R58M75VB4TH deviceC:\Users\o\AppData\Local\Android\Sdk\platform-tools>adb.exe devices
List of devices attached
320195927566 device
R58M75VB4TH deviceC:\Users\o\AppData\Local\Android\Sdk\platform-tools>"
All other things are fine.There are incompatibilities I guess with command line tools and installed Sdk. Everything related to Android was installed by QT creator(no Android Studio installation)
There is also this warnings :
"Warning: This version only understands SDK XML versions up to 2 but an SDK XML file of version 3 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.
"
"Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>
" -
@Rampe said in Qt 6.3 unable to deploy to device (windows 10):
C:/Users/o/AppData/Local/Android/Sdk/platform-tools/adb.exe devices
When i run the above command i get
"
C:\Users\o\AppData\Local\Android\Sdk\platform-tools>start adb.exeC:\Users\o\AppData\Local\Android\Sdk\platform-tools>adb devices
List of devices attached
320195927566 device
R58M75VB4TH deviceC:\Users\o\AppData\Local\Android\Sdk\platform-tools>adb.exe devices
List of devices attached
320195927566 device
R58M75VB4TH deviceC:\Users\o\AppData\Local\Android\Sdk\platform-tools>"
All other things are fine.There are incompatibilities I guess with command line tools and installed Sdk. Everything related to Android was installed by QT creator(no Android Studio installation)
There is also this warnings :
"Warning: This version only understands SDK XML versions up to 2 but an SDK XML file of version 3 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.
"
"Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>
"@Ulaspag Sorry I can't reproduce your problem. But I do not have Android Studio installed, just Qt Creator 7.0.2 and it's Android setup with JDK 16.0.2.7, NDK 22.1.17171670 and platform-tools with adb.exe version Android Debug Bridge version 1.0.41 Version 33.0.2-8557947
Attached second target device and while it first shows like "with longer code"...
...later when USB debugging from the device is enabled the Qt Creator detects the device for it's model name the project for both arm ABI's armeabi-v7a arm64-v8a where possible be deployed successfully
-
I finally got it to deploy to device by uninstalling everything related to Qt, Java and and Android Studio. I reinstalled Qt 6.3.1 and used Qt to install Java and Android Studio .I made sure that the Arm64 v8 system image for API 30 is available in Android Studio. This video link "https://www.youtube.com/watch?v=XrQ_j6VOnzo" helps with Qt 6 installation . This video link "https://www.youtube.com/watch?v=WafdjRhyDRc" helps with Android Studio installation