jitsi-meet Android客户端开发环境配置(Ubuntu 16.04 LTS)

  • PHP二次开发
  • 2018-7-16 17:38
  • PHP二次开发
  • 阅读(524)
  • 评论(0)
  • 摘要: 前提:更改源,做好root登录及ssh连接,跳转到这里1.安装 nodejsapt-get install curlcurl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -sudo apt-get install -y nodejs2.安装 react-nativenpm confi ...
    前提:更改源,做好root登录及ssh连接,跳转到这里
    1.安装 nodejs
    apt-get install curl
    curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
    sudo apt-get install -y nodejs

    2.安装 react-native
    npm config set registry https://registry.npm.taobao.org
    npm install -g react-native-cli

    3.安装JDK
    sudo apt-get install openjdk-8-jdk

    4.安装git
    apt-get install git

    5.下载源码
    git clone https://github.com/jitsi/jitsi-meet.git
    cd jitsi-meet

    6.安装 yarn
    curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
    echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
    sudo apt-get update && sudo apt-get install yarn

    7.执行yarn
    npm install webpack -g
    yarn

    8.根据https://facebook.github.io/react-native/docs/getting-started.html#installing-dependencies
    的要求安装 Android studio
    也可以直接使用:react-native run-android,安装到手机

    9.安装watchman

    apt install linuxbrew-wrapper
    brew update && brew upgrade
    brew install watchman

    10.运行项目
    react-native start

    Watchman crawl failed. Retrying once with node crawler.解决方式:
    echo fs.inotify.max_user_instances=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
    echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
    echo fs.inotify.max_queued_events=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

    error: bundling failed: Error: Unable to resolve module `lib-jitsi-meet/lib-jitsi-meet.min` from `/mnt/jitsi-meet-master/react/features/base/lib-jitsi-meet/_.native.js`: Module `lib-jitsi-meet/lib-jitsi-meet.min` does not exist in the Haste module map
    解决方式:
    /mnt/jitsi-meet-master/node_modules/lib-jitsi-meet
    yarn


    PHP技术交流QQ群:422137578

    除非注明,文章均为 PHP二次开发 原创,转载请注明本文地址:http://www.php2.cc/article-2687-1.html

    相关阅读

    最新评论

    用户名:  *

    邮 箱:  *

    网 址: 注意加上“http://”哦!