I've just upgraded my Android environment to:
- macOS 10.13.5
- Andorid Studio 3.1.4
- gradle 4.6
- gradle plugin 'com.android.tools.build:gradle:3.1.4'
- Android SDK 28
- Build tool 28.0.2
However, when I was going to build my project it always fails at the task processXXXDebugResources
with such error:
AAPT err(Facade for 111853366) : No Delegate set : lost message:error: unknown command '--output-text-symbols'.
AAPT err(Facade for 111853366) : No Delegate set : lost message:Error
Failed to execute aapt
I have no idea where does the --output-text-symbols
come from. It looks like the --output-text-symbols
was a parameter for the program aapt
but the latest gradle plugin uses another new aapt2
.
The android.enableAapt2=false
could make this issue disappear but a warning tells this option will be deprecated.
The option 'android.enableAapt2' is deprecated and should not be used anymore.
Use 'android.enableAapt2=true' to remove this warning.
It will be removed at the end of 2018..