linjiang
linjiang
 CameraActivity.java `ArrayList sysPhotos = FileUtils.getInst().findPicsInDir( FileUtils.getInst().getSystemPhotoPath());`
## 版本说明 `androidx`是Android官方推出的用于取代 `android-support` 的依赖库,相对support包,除了包名不同,其余完全一致。目前有些项目已经迁移到了x,但是也有部分项目由于历史原因无法适配,因此为防止引入Pandora导致重复依赖,提供了以下两种版本: - AndroidX ``` implementation 'com.github.whataa:pandora:androidx_v${RELEASE}' ``` - Support ``` implementation 'com.github.whataa:pandora:v${RELEASE}' ``` 具体区别就是版本号前面是否包含 `androix_` 前缀。对于 `no-op`,由于没有引入对于的依赖库,因此不用区分。 ## 依赖问题 ### 1. support冲突 Pandora使用的`findViewById` 方法为 **非强转类型** 版本,需要compile-sdk至少为...
编译时如果出现该错误,请检查是否因为你在gradle.properties中启用了: ``` android.databinding.enableV2 ``` 这是Android Gradle plugin在`3.1.+`版本新增的一个实验性的特性,并且不向后兼容;该特性在`3.2.`版本开始才默认启用,并且向后兼容。 具体的可以查看关于DataBinding V2的官方文档:[New data binding compiler for binding classes](https://developer.android.com/topic/libraries/data-binding/start) **也就是说,如果你的项目的Android Gradle plugin是3.1.+,就请不要开启该特性,即移除上述的配置语句。** 由于`com.android.tools.build:gradle:3.2.0` 还未发布,所以我建议大家暂时不要开启DataBinding V2。 参考issues: 1. [DataBinderMapperImpl() is not generated ](https://github.com/braintree/braintree-android-drop-in/issues/72) 2. [Data...