react-native-cn-quill图片插入功能失效及Android编译版本冲突问题求助
react-native-cn-quill图片插入功能失效及Android编译版本冲突问题求助
大家好,我最近碰到了两个缠人的问题,想请教下社区的各位大佬:
首先是react-native-cn-quill编辑器的图片插入功能彻底失效了,目前我的项目环境配置如下:
- React Native版本:
0.78.0 - react-native-cn-quill版本:
^0.7.20 - Android端配置:
- compileSdkVersion = 35
- targetSdkVersion = 34
另外,虽然报错截图里莫名出现了hmsPushMessaging的相关内容(我也搞不懂为啥会和这个功能关联上),但还是抱着试试的心态把@hmscore/react-native-hms-push升级到了^6.13.0-300,结果图片插入的问题依然没有任何改善。
然后是我尝试解决第一个问题时触发的Android编译版本冲突问题:
我试着把compileSdkVersion降级到34,结果直接弹出了两个AAR元数据校验错误,具体内容如下:
2 issues were found when checking AAR metadata:
- Dependency 'androidx.core:core:1.16.0' requires libraries and applications that depend on it to compile against version 35 or later of the Android APIs. :app is currently compiled against android-34.
Recommended action: Update this project to use a newer compileSdk of at least 35, for example 36. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on).- Dependency 'androidx.core:core-ktx:1.16.0' requires libraries and applications that depend on it to compile against version 35 or later of the Android APIs. :app is currently compiled against android-34.
Recommended action: Update this project to use a newer compileSdk of at least 35, for example 36. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on).
现在我陷入了两难:保持compileSdkVersion 35的话,图片插不进去;降级到34又过不了编译校验。有没有大佬遇到过类似的问题,或者能给我一些排查方向?感谢各位的帮助!
内容来源于stack exchange
相关产品推荐
相关产品推荐

