has different version for the compile (26.1.0) and runtime (27.1.1) classpath
在使用 fluttertoast 的时候遇到的
处理方式:
build.gradle
中最后面添加:
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex') ) {
details.useVersion "27.1.1"
}
}
}
}
参考:github
A RenderBox object must have an explicit size before
在使用 chart_flutter 的时候遇到的:
//before
- Column
- Container
- ChartWidget
- ListView
// After
- Column
- Container
- ChartWidget
- Expanded // 加上这个控件,让 ListView 能够获取到大小
- ListView
网友评论