Error:Cause: buildToolsVersion is not specified.

今天项目中用到了AndroidPicker的效果:然后在github上搜到一个写的很好的代码(包括时间的选择    三级联动,地址选择,生肖选择,。。。);我就把git项目中的library当做一个modle导入到AndroidStudio中,但是发现包错了Error:Cause: buildToolsVersion is not specified.纠结一天的问题,晚上才解决

解决方案:

Error:Cause: buildToolsVersion is not specified._第1张图片
然后我们从我们自己项目app下的gradle中复制android {

compileSdkVersion25

buildToolsVersion"25.0.1"

}

复制以后是这样的:

Error:Cause: buildToolsVersion is not specified._第2张图片

这样这个问题就决绝了

但是当你运行的时候又会发现一个错误:deimport android.support.annotation.CallSuper;

import android.support.annotation.StyleRes;百度出来的解决那个library报错就在对应的的dependencies {

compile'com.android.support:support-annotations:22.2.0'//复制这一行代码即可

}

你可能感兴趣的:(Error:Cause: buildToolsVersion is not specified.)