RN参照demo配置集成SDK,报错 ':classpath'

用户3412783
2024-06-25 00:40 60 1

https://go48pg.yuque.com/docs/share/6f132139-4099-4a4e-b55c-417a6e28f41a?# 《(二)基于 demo 集成厂商通道》
我参照rn的Android SDK配置集成厂商,但是以下报错误,该怎么解决

info Opening the app on Android...
info JS server already running.

info 💡 Tip: Make sure that you have set up your development environment correctly, by running react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor


FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'AwesomeProject'.
> Could not determine the dependencies of null.
   > Could not resolve all dependencies for configuration ':classpath'.
      > Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository 'maven(http://developer.huawei.com/repo/)' to redirect to a secure protocol (like HTTPS) or allow insecure protocols. See https://docs.gradle.org/8.0.1/dsl/org.gradle.api.artifacts.repositories.UrlArtifactRepository.html#org.gradle.api.artifacts.repositories.UrlArtifactRepository:allowInsecureProtocol for more details.

* 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 14s

1个回答

热门排序
gptbots-widget