reactjs React Native Image Picker导致构建失败

8yoxcaq7  于 2023-08-04  发布在  React
关注(0)|答案(1)|浏览(129)

这是我在React Native上的第一个应用程序。我正在尝试使用react-native-image-picker。但它不允许我开发应用程序。我收到以下错误

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':react-native-image-picker:compileDebugAidl'.
> Could not resolve all task dependencies for configuration ':react-native-image-picker:debugCompileClasspath'.
   > Could not resolve androidx.exifinterface:exifinterface:1.3.3.
     Required by:
         project :react-native-image-picker
      > Could not resolve androidx.exifinterface:exifinterface:1.3.3.
         > Could not get resource 'https://dl.google.com/dl/android/maven2/androidx/exifinterface/exifinterface/1.3.3/exifinterface-1.3.3.pom'.
            > Could not GET 'https://dl.google.com/dl/android/maven2/androidx/exifinterface/exifinterface/1.3.3/exifinterface-1.3.3.pom'.

......

BUILD FAILED in 37s
info Run CLI with --verbose flag for more details.

字符串
我使用以下版本
Android gradle插件:7.4.2 Gradle:8.2.1
我试着清理机器人内部的gradle。我已经完成了安装后的步骤。我也尝试了互联网上的所有解决方案。但是,构建还是失败了。有人能帮我解决这个问题吗

bqucvtff

bqucvtff1#

在settings.gradle中添加mavenCentral(),如下所示:https://i.stack.imgur.com/CuHCD.png
这可能有用。
另一个解决方案:第一个月

相关问题