简体   繁体   中英

gradlew exited with non-zero code: 1 in viro react

I followed every steps fromthis documentation. But when I run the expo app following errors showed up. 在此处输入图像描述

I am suffering from this problem since 1 week. Please Help.

It could be because react-viro has "peerDependencies": "react-native": "0.65.1".

I am trying expo version 44.0.0 because it uses react-native version 0.64.3.

Also, React-viro requires the deprecated jcenter() repository in the build.gradle for support of exoplayer 2.7.1 which viro uses. This has been removed from newer versions of react-native. It can manually be added:

android/build.gradle

...
 buildscript
  { repositories
    {
      jcenter() // <- Add this line
...
 allprojects
  {
    repositories
      {
        jcenter() // <- Add this line

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM