Android Studio 3.3.1编译报错
AAPT2 error: check logs for details
关闭Instant run 和设置android.enableAapt2=false无效
运行assembleDebug,看到报错
error: resource android:attr/dialogCornerRadius not found.
还有一堆v28的ui相关报错。原因是同时使用了26和28版本的库。
解:修改app/build.gradle
修改前
compile 'com.android.support.constraint:constraint-layout:+'
修改后
compile 'com.android.support.constraint:constraint-layout:1.1.3'
参考
解决android studio 3.1报AAPT2 error: check logs for details - 黄孝果的博客 - CSDN博客
https://blog.csdn.net/huangxiaoguo1/article/details/80556984
android - Exception : AAPT2 error: check logs for details - Stack Overflow
https://stackoverflow.com/questions/47589873/exception-aapt2-error-check-logs-for-details