A failure occurred while executing $TaskAction
AAPT2 aapt2-4.2.1-7147631-linux Daemon #0: Unexpected error during link, attempting to stop daemon.
This should not happen under normal circumstances, please file an issue if it does.
报这个错误是因为:主工程依赖的子工程不是一个library导致的
apply plugin: ‘’ 改为 apply plugin: ‘’
就解决了