[Android-development] debug build failing with manifest error

Harri Pasanen harri at mpaja.com
Wed Feb 11 08:52:14 CET 2015


I'm somewhat puzzled by the following I get when building for debug:

FAILURE: Build failed with an exception.


* What went wrong:

Execution failed for task ':processDebugResources'.

>  com.android.ide.common.internal.LoggedErrorException: Failed to run 
command:

/home/harri/android-sdk-linux/build-tools/21.1.2/aapt package -f 
--no-crunch -I 
/home/harri/android-sdk-linux/platforms/android-11/android.jar -M 
/home/harri/projects/mbraille-qt/build-MBraille-qt5_4_hp-Debug/android-build/build/intermediates/manifests/full/debug/AndroidManifest.xml 
-S 
/home/harri/projects/mbraille-qt/build-MBraille-qt5_4_hp-Debug/android-build/build/intermediates/res/debug 
-A 
/home/harri/projects/mbraille-qt/build-MBraille-qt5_4_hp-Debug/android-build/build/intermediates/assets/debug 
-m -J 
/home/harri/projects/mbraille-qt/build-MBraille-qt5_4_hp-Debug/android-build/build/generated/source/r/debug 
-F 
/home/harri/projects/mbraille-qt/build-MBraille-qt5_4_hp-Debug/android-build/build/intermediates/res/resources-debug.ap_ 
--debug-mode --custom-package com.mpaja.mbraille2 -0 apk

Error Code:

1

Output:

/home/harri/projects/mbraille-qt/build-MBraille-qt5_4_hp-Debug/android-build/build/intermediates/manifests/full/debug/AndroidManifest.xml:51: 
error: Error: String types not allowed (at 'configChanges' with value 
'orientation|uiMode|screenLayout|screenSize|smallestScreenSize|locale|fontScale|keyboard|keyboardHidden|navigation').


The culprit is apparently this line:

android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|locale|fontScale|keyboard|keyboardHidden|navigation"


which gets added by the build process at some point, it is not in the 
original AndroidManifest.xml


I'm using Gradle (no particular reason, I just did not have Ant 
installed in this machine and I figured I'll try it).


Does this ring a bell?


Thanks,


Harri





More information about the Android-development mailing list