运行第一个Android Stdio程序就出现下面这个问题,由于对Android Stdio不熟悉整了三个小时才解决,希望这篇博客能帮助更多的人。
问题:Caused by:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.test.rx/com.test.rx.MainActivity}: java.lang.IllegalStateException: This app has been built with an incorrect configuration. Please configure your build for VectorDrawableCompat.
原因:Android 插件版本不兼容,需要gradle 2.0以上。
解决方法:
(1)将build.gradle中的版本改为2.0.0,如下图红框所示。