Could not find com.android.tools.build:aapt2
解决办法:加入googl()
buildscript { repositories { jcenter() google() } dependencies { classpath 'com.android.tools.build:gradle:3.3.2' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { jcenter() google() } }