0

I'm quite sure I've done it in the past, but creating an enum with the specific name "center", like this:

<declare-styleable name="Line">
    <attr name="foo">
        <enum name="center" value="0"/>
    </attr>
</declare-styleable>

Makes aapt throw the following error:

Error:Execution failed for task ':TestApp:processDebugResources'.

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

/Applications/Android Studio.app/sdk/build-tools/19.0.3/aapt package -f --no-crunch -I /Applications/Android Studio.app/sdk/platforms/android-19/android.jar -M /Users/eugeniomarletti/Dropbox/Projects/Test/build/manifests/debug/AndroidManifest.xml -S /Users/eugeniomarletti/Dropbox/Projects/Test/build/res/all/debug -A /Users/eugeniomarletti/Dropbox/Projects/Test/build/assets/debug -m -J /Users/eugeniomarletti/Dropbox/Projects/Test/build/source/r/debug -F /Users/eugeniomarletti/Dropbox/Projects/Test/build/libs/TestApp-debug.ap_ --debug-mode --custom-package com.test --output-text-symbols /Users/eugeniomarletti/Dropbox/Projects/Test/build/symbols/debug

Error Code: 138

Anyone knows a solution to this?

Community
  • 1
  • 1
Takhion
  • 2,706
  • 24
  • 30

0 Answers0