Android Studio 我已经创建了apk 2天前,它是正常工作.但当我尝试今天我得到错误.甚至我没有改变我的代码今天的任何东西

8iwquhpp  于 2022-11-16  发布在  Android
关注(0)|答案(1)|浏览(119)

FAILURE: Build failed with an exception.

  • What went wrong: Could not determine the dependencies of task ':app:mergeDebugAssets'.

Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'. Could not resolve com.facebook.react:react-native:+. Required by: project :app project :app > project :react-native-push-notification project :app > project :@react-native-async-storage_async-storage project :app > project :@react-native-community_datetimepicker project :app > project :@react-native-community_masked-view project :app > project :@react-native-firebase_app project :app > project :@react-native-firebase_messaging project :app > project :react-native-gesture-handler project :app > project :react-native-image-crop-picker project :app > project :react-native-safe-area-context project :app > project :react-native-screens > Failed to list versions for com.facebook.react:react-native. > Unable to load Maven meta-data from https://jcenter.bintray.com/com/facebook/react/react-native/maven-metadata.xml . > Could not HEAD 'https://jcenter.bintray.com/com/facebook/react/react-native/maven-metadata.xml'. > Read timed out

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  • Get more help at https://help.gradle.org

BUILD FAILED in 1m 54s
I am not getting any proper solutions from anywhere.

zed5wv10

zed5wv101#

试法01:清除gradle文件并安装应用程序,现在再次安装应用程序方法02:打开Android模拟器擦除您的数据再次运行方法03:备份ur npm文件夹并从特定目录中删除npm,然后使用npm安装它将自动下载所有包并运行

相关问题