我安装了QtSDK,Android SDK& NDK在新计算机上。我复制了我的项目并且没有加载我的.pro.user。
我下载了API10 SDK,在Qt Creator中设置它。该应用程序编译但我的apk创建失败。我得到以下日志:
-build-setup:
[getbuildtools] Using latest Build Tools: 22.0.1
[echo] Resolving Build Target for QtApp...
[gettarget] Project Target: Android 2.3.3
[gettarget] API level: 10
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: /home/marcin/proj/touchcatch/build-TouchCatch-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/bin
[mkdir] Created dir: /home/marcin/proj/touchcatch/build-TouchCatch-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/bin/res
[mkdir] Created dir: /home/marcin/proj/touchcatch/build-TouchCatch-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/bin/rsObj
[mkdir] Created dir: /home/marcin/proj/touchcatch/build-TouchCatch-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/bin/rsLibs
[mkdir] Created dir: /home/marcin/proj/touchcatch/build-TouchCatch-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/gen
[mkdir] Created dir: /home/marcin/proj/touchcatch/build-TouchCatch-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/bin/classes
[mkdir] Created dir: /home/marcin/proj/touchcatch/build-TouchCatch-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/bin/dexedLibs
[echo] ----------
[echo] Resolving Dependencies for QtApp...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
[dependency] API<=15: Adding annotations.jar to the classpath.
[echo] ----------
[echo] Building Libraries with 'debug'...
[subant] No sub-builds to iterate on
-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] Found 2 AIDL files.
[aidl] Compiling 2 AIDL files.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Generating resource IDs...
[aapt] /home/marcin/proj/touchcatch/build-TouchCatch-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/bin/AndroidManifest.xml:3: error: No resource identifier found for attribute 'hardwareAccelerated' in package 'android'
[aapt]
[aapt] /home/marcin/proj/touchcatch/build-TouchCatch-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/bin/AndroidManifest.xml:4: error: Error: String types not allowed (at 'configChanges' with value 'orientation|uiMode|screenLayout|screenSize|smallestScreenSize|locale|fontScale|keyboard|keyboardHidden|navigation').
[aapt]
BUILD FAILED
/home/marcin/devel/android-sdk-linux/tools/ant/build.xml:649: The following error occurred while executing this line:
/home/marcin/devel/android-sdk-linux/tools/ant/build.xml:694: null returned: 1
Total time: 0 seconds
Building the android package failed!
-- For more information, run this command with --verbose.
13:14:10: The process "/home/marcin/devel/Qt5.5.0/5.5/android_armv7/bin/androiddeployqt" exited with code 14.
Error while building/deploying project TouchCatch (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.5.0))
我该如何解决?我不能使用更新的API,因为我的设备(GT-S6500D)只有Android 2.3.6