PictureSelector导入后无法编译
并且定位到Project\ucrop\src\main\java\com\yalantis\ucrop\UCropActivity.java 第36行
import androidx.appcompat.app.AppCompatDelegate;
并且报错内容乱码
乱码解决方案:(https://blog.csdn.net/jankingmeaning/article/details/104772104/)
双击 Shift
,输入vmoption
,,选择Edit Custom CM Options
输入
-Dfile.encoding=UTF-8 并重启即可
PictureSelector导入后无法编译
参考(https://github.com/LuckSiege/PictureSelector/issues/1499)
是BuildConfig.APPLICATION_ID已经废弃了,需要改成BuildConfig.LIBRARY_PACKAGE_NAME
Project\ucrop\src\main\java\com\yalantis\ucrop\UCrop.java 中的
private static final String EXTRA_PREFIX = BuildConfig.APPLICATION_ID;
改为
private static final String EXTRA_PREFIX = BuildConfig.LIBRARY_PACKAGE_NAME;
即可