[Android-development] Can't deploy with Qt 5.5 RC

Stromme Christian Christian.Stromme at theqtcompany.com
Wed Jun 24 14:19:51 CEST 2015


> On 24 Jun 2015, at 13:53 , Andrej Repiský <ondrejandrej at seznam.cz> wrote:
> 
> 
> Hello,
> 
> today I downloaded Qt 5.5 RC and tried to build and run my Android application. I get the output below. The project used to build perfectly fine with 5.4.2. I did not create my Android manifest yet, so it's apparently using some generated one.
> 
> Cheers,
> Andrej
> 
> --------------------------------------------------------------------------------------------------------------------------------------------
> Generating Android Package
>   Input file: /home/andrej/programovanie/build-trance-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Release/android-libtrance.so-deployment-settings.json
>   Output directory: /home/andrej/programovanie/build-trance-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Release/android-build/
>   Application binary: /home/andrej/programovanie/build-trance-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Release/libtrance.so
>   Android build platform: android-15
>   Install to device: No
> Warning: QML import could not be resolved in any of the import paths: custom
> Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private
> Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
> Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
> Warning: QML import could not be resolved in any of the import paths: HelperWidgets
> :preBuild UP-TO-DATE
> :preDebugBuild UP-TO-DATE
> :compileDebugNdk UP-TO-DATE
> :checkDebugManifest
> :prepareDebugDependencies
> :compileDebugAidl
> :compileDebugRenderscript
> :generateDebugBuildConfig
> :generateDebugAssets UP-TO-DATE
> :mergeDebugAssets
> :generateDebugResValues
> :generateDebugResources
> :mergeDebugResources
> :processDebugManifest
>  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/andrej/programovanie/z_SDKs/android/android-sdk-linux/build-tools/22.0.1/aapt'' finished with non-zero exit value 1
> 
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
> 
> BUILD FAILED
> 
> _______________________________________________
> Android-development mailing list
> Android-development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/android-development

Hi,


Are you building against API level 16 or lower, and if you are, do you need to? The flag “layoutDirection” was added to the default manifest and it requires that you build against API level 17 or higher (>= android-17).  If you for some special reason need to build against a lower version, you’ll need to create your own manifests and remove the layoutDirection flag.

—
Christian.


More information about the Android-development mailing list