【发布时间】:2023-01-04 22:56:23
【问题描述】:
标签: android react-native augmented-reality gradlew viro-react
标签: android react-native augmented-reality gradlew viro-react
可能是因为 react-viro 有 "peerDependencies": "react-native": "0.65.1"。它需要 build.gradle 中已弃用的 jcenter() 存储库以支持 viro 使用的 exoplayer 2.7.1。这已从较新版本的 react-native 中删除。可以手动添加:
android/build.gradle
...
buildscript
{ repositories
{
jcenter() // <- Add this line
...
allprojects
{
repositories
{
jcenter() // <- Add this line
【讨论】: