当前位置: 首页 > 知识库问答 >
问题:

react-native-image-picker安装中断了我的应用程序

蔺弘
2023-03-14

当我清理gradle时,我得到错误:“不能将进程工作目录设置为'C:\code\rn\xs\node_modules\react-native-image-picker\example\android':不能设置当前目录(errno 3)”

当我试图在gradle中重建时,我也会得到错误:“清单合并失败:属性application@appcomponentFactory value=(Android.support.v4.app.coreComponentFactory)from[com.android.support:support:support-compat:28.0.0]AndroidMANIFEST.xml:22:18-91也出现在[AndroidX.core:core:1.0.0]AndroidMANIFEST.xml:22:18-86 value=(AndroidX.core.app.coreComponentFactory:22:18-86。建议:将”

因此,我采纳了错误消息的建议,并将'tools:replace=“Android:AppComponentFactory''html" target="_blank">html" target="_blank">添加到application Element.....
我现在清理时仍然会得到相同的错误......但是重新构建时的错误有点不同:”tools:replace在第10行指定为属性Android:AppComponentFactory,但没有指定新值。“


请帮助!!

共有1个答案

万浩淼
2023-03-14

作为Lenoarod答案的补充,你可以使用jetifier库。它将帮助您转换所有尚未转换到AndroidX的库。

根据它的文件

因此,现在需要将应用程序转换为AndroidX,但许多react-native库都附带了本机Java代码,并且没有更新。这是怎么做到的?

 类似资料:
  • react-native-image-crop-picker iOS/Android image picker with support for camera, video, configurable compression, multiple images and cropping Result Important note If you are using react-native >= 0.

  • app/build.gradle 还分级。属性: 我无法找出错误,任何帮助都将不胜感激,并请让我知道,如果有任何其他需要更好的理解。 null > try:使用--info或--debug选项运行以获得更多日志输出。使用--scan运行以获得完整的洞察力。 由:org.gradle.workers.internal.defaultworkerexecutor$workexecutionExcept

  • 本文向大家介绍react-native Windows安装程序,包括了react-native Windows安装程序的使用技巧和注意事项,需要的朋友参考一下 示例 注意:您不能在Windows上为iOS开发本机应用程序,而只能开发本机Android应用程序。 在Windows上可以找到Windows上本机的官方安装文档。如果您需要更多详细信息,请点击这里。 工具/环境 Windows 10 命令

  • const loadLibrary=useCallback(异步()= },[用户信息]; Spring code---@PostMap(value="/api/v1/user")public String createUser(@Request estParam("image")MultipartFile image){System.out.println(image);返回";} -错误--组

  • React Native Image Resizer A React Native module that can create scaled versions of local images (also supports the assets library on iOS). react-native react-native-image-resizer ≤ 0.60 1.1.0 0.61 1.

  • react-native-modal-datetime-picker A declarative cross-platform react-native date and time picker. This library exposes a cross-platform interface for showing the native date-picker and time-picker in