jitsi-meet Android客戶端開發環境配置(Ubuntu 16.04 LTS)

  • PHP二次開發
  • 2018-7-16 17:38
  • PHP二次開發
  • 閱讀(1978)
  • 評論(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.fujvln.live/article-2687-1.html

    相關閱讀

    最新評論

    用戶名:  *

    郵 箱:  *

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