Coder Social home page Coder Social logo

rnfortaptap's Introduction

RNfortaptap

gradle版本号

  • gradle-3.5-all
  • gradle:2.2.3

MAC上配置React-Native-Android过程中的遇到的问题

命令行

1.adb

  • 在环境变量配置完成后,输入adb后,可能会报错adb:command not found.这是因为没有在PATH下配置adb,具体配置方式如下:
  1. 在系统根目录下输入 cd /Users/a8/Library/Android/sdk/platform-toolsplatform-tools下即可看到有adb文件,再输入pwd获取当前platform-tools路径,先复制好。
  2. 配置bash_profile 输入vi ~/.bash_profile进入配置环境变量。输入i进入编辑模式,修改PATH如下: PATH=".;$PATH:/Users/a8/Library/Android/sdk/platform-tools:$JAVA_HOME/bin:$PATH:$NVM_DIR" 其中/Users/a8/Library/Android/sdk/platform-tools就是刚我们复制好的adb所在路径,记得不同的path之间用:分隔. 按ESC退出编辑模式,再按Shift + :输入wq!保存退出 再次输入. ~/.bash_profile保存我们刚编辑的内容。
  3. 验证 再次输入adb devices这时就不会再出现command not found

tips:

  1. adb kill-server断开连接
  2. adb start-server重新连接

效果图

rnfortaptap's People

Contributors

glassay avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

lulurun

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.