Giter Site home page Giter Site logo

rn_ts's Introduction

rn_ts

A template for react-native in Typescript.

Start

开发安卓必须的SDK 在SDK Manager中安装对应版本的build-tool 和 platform-tool 需要配置镜像代理

踩坑

  1. SDK Manager闪退 和java目录有关,如果你改变了原来java jdk的目录,那么有可能导致SDK Manager闪退 在sdk\tools目录下,有一个android.bat脚本,它利用sdk\tools\lib目录下的find_java.bat查找java的jdk,如果你变更过jdk目录,则需要手动修改android.bat脚本

android.bat

rem Check we have a valid Java.exe in the path.
set java_exe = call lib\find_java.bat

改为(例如jdk在D:\Java\jdk\bin\java.exe)

rem Check we have a valid Java.exe in the path.
set java_exe=D:\Java\jdk\bin\java.exe
rem call lib\find_java.bat
  1. 无法安装Android SDK 28,SDK Manager报错 Download interrupted: URL not found.,科学上网也没用

在报错信息中找到Fetching URL地址,在浏览器中打开 查找Android SDK 28,找到对应sdk:url标签,内容是一个.zip后缀的文件名 将它拼接在https://dl.google.com/android/repository/sys-img/android/后, 或者是https://dl.google.com/android/repository/

  1. 手机端报错提示adb devices adb reverse tcp:8081 tcp:8081 显而易见,cmd 执行
adb devices

adb reverse tcp:8081 tcp:8081

rn_ts's People

Contributors

saber2pr avatar

Watchers

 avatar  avatar

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.