今天從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
}