今天从githup上下了一个开源项目material animations,这个项目是非常棒,演示了View的平移、缩放动画、activity进入和退出动画,界面间元素共享。
但是在as中打开后,报了一个databinding的错误,纠结了好一段原来是将grandle版本更改为2.0就可以了,可能是不兼容的问题。
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}