標籤:lease error: too next build cloud content step 複製
[提問]windows7下Qt for android運行時出錯 Error: Target id ‘android--1‘ is not valid[複製連結] |
上一主題下一主題 |
離線yijunziran 新手上路
|
只看樓主 倒序閱讀樓主 發表於: 2015-04-11
程式是正確的,在Window環境下運行OK Android模擬器能跑起來。
在Android上運行時出現這種情況
22:19:48: 進程"D:\Qt\Qt5.4.1\Tools\mingw491_32\bin\mingw32-make.exe"正常退出。 22:19:48: Starting: "D:\Qt\Qt5.4.1\5.4\android_armv7\bin\androiddeployqt.exe" --input D:/qt5/qml/qtquickbook/build-touchEvent-Android_for_armeabi_v7a_GCC_4_8_Qt_5_4_1-Release/android-libtouchEvent.so-deployment-settings.json --output D:/qt5/qml/qtquickbook/build-touchEvent-Android_for_armeabi_v7a_GCC_4_8_Qt_5_4_1-Release/android-build --deployment bundled --android-platform android--1 --jdk "D:/Program Files/Java/jdk1.7.0_45" --ant D:/qt5/apache-ant-1.9.4/bin/ant.bat Error: Target id ‘android--1‘ is not valid. Use ‘android.bat list targets‘ to get the target ids. Generating Android Package Input file: D:/qt5/qml/qtquickbook/build-touchEvent-Android_for_armeabi_v7a_GCC_4_8_Qt_5_4_1-Release/android-libtouchEvent.so-deployment-settings.json Output directory: D:/qt5/qml/qtquickbook/build-touchEvent-Android_for_armeabi_v7a_GCC_4_8_Qt_5_4_1-Release/android-build/ Application binary: D:/qt5/qml/qtquickbook/build-touchEvent-Android_for_armeabi_v7a_GCC_4_8_Qt_5_4_1-Release/libtouchEvent.so Android build platform: android--1 Install to device: No Buildfile: build.xml does not exist! Build failed Warning: Android platform ‘android--1‘ does not exist in SDK. Building the android package failed! -- For more information, run this command with --verbose. 22:19:58: 進程"D:\Qt\Qt5.4.1\5.4\android_armv7\bin\androiddeployqt.exe"退出,結束代碼 14 。 Error while building/deploying project touchEvent (kit: Android for armeabi-v7a (GCC 4.8, Qt 5.4.1)) When executing step "Build Android APK" 22:19:58: Elapsed time: 00:13.
|
回複舉報 |
|
分享到淘江湖新浪QQ微博QQ空間開心人人豆瓣網易微博百度鮮果白社會飛信 |
離線fcwr2010 新手上路
|
只看該作者1樓 發表於: 2015-04-11 你應該是沒有設定Android SDK,看圖 |
回複舉報 |
離線xiaoxiangyu 新手上路
|
只看該作者2樓 發表於: 2016-02-17 感謝!!! |
回複 |
Qt for android運行時出錯 Error: Target id 'android--1' is not valid