美文网首页
RN Exception: Mobx Can't find va

RN Exception: Mobx Can't find va

作者: _凌浩雨 | 来源:发表于2019-03-12 12:16 被阅读0次

    异常

    Can't find variable: Symbol
    

    解决方法

    1. 在你的package.json中的dependencies添加jsc-android
    "dependencies": {
        "jsc-android": "^236355.1.1"
      },
    

    或者直接使用命令npm install --save jsc-android

    1. 修改android/build.gradle文件
    allprojects {
      repositories {
        jcenter()
        maven {
          // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
          url "$rootDir/../node_modules/react-native/android"
        }
        maven {
          // Local Maven repo containing AARs with JSC library built for Android
          url "$rootDir/../node_modules/jsc-android/dist"
        }
      }
    }
    
    1. 修改android/app/build.gradle文件
    +configurations.all {
    +    resolutionStrategy {
    +        force 'org.webkit:android-jsc:r236355'
    +    }
    +}
     
    dependencies {
        implementation fileTree(dir: "libs", include: ["*.jar"])
    }
    
    jsc-android

    相关文章

      网友评论

          本文标题:RN Exception: Mobx Can't find va

          本文链接:https://www.haomeiwen.com/subject/rzdgpqtx.html