Qt移动android构建错误与android ABI级别15,但适用于更高的ABI

时间:2016-08-01 05:12:37

标签: android qt qt-creator

在构建期间出现错误,只有android ABI等级15,但在第4级,在Qt创建者(在x86和ARM android中都有),在android studio工作中为ABI 15构建。

Qt creator 4.0.3

Position 40:36-165 : String types not allowed (at 'configChanges' with value 'orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation').

:processDebugResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/a/android/android-sdk-linux/build-tools/24.0.1/aapt'' finished with non-zero exit value 1

1 个答案:

答案 0 :(得分:1)

根据the documentation,在API级别17中添加了layoutDirection,因此您需要至少为API级别17进行构建,以便指定您的应用程序将处理到期的配置更改布局方向变化本身。