A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$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: ‘com.android.application’ 改为 apply plugin: ‘com.android.library’
就解决了
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)