(一)问题:
AndroidStudio编译出错:从内部类中访问本地变量xxx;需要被声明为最终类型。
(二)解决方法:
在build.gradle中加入
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
AndroidStudio编译出错:从内部类中访问本地变量xxx;需要被声明为最终类型。
在build.gradle中加入
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}