Quantcast
Channel: 懒得折腾
Viewing all articles
Browse latest Browse all 764

Set React Native for Android in Windows

$
0
0
  1. Set up the proxy for npm.
    npm config set proxy http://xxxxxx:xxxx  
    npm config set https-proxy http://xxxxxx:xxxx  
  2. Set up the proxy for gradle. In ~/.gradle/gradle.perperties, add
    systemProp.http.proxyHost=xxxxxx
    systemProp.http.proxyPort=xxxx
    systemProp.https.proxyHost=xxxxxx
    systemProp.https.proxyPort=xxxx
  3. Add local.properties to android subfolder and append the following content.
    sdk.dir=C\:\\Users\\xxxxx\\AppData\\Local\\Android\\sdk
  4. Since BuildTools 23.0.3 is installed, but the app needs 23.0.1. Go to build.gradle under android/app and change the version number to 23.0.3. But do not change the appcompat-v7 version number.


Viewing all articles
Browse latest Browse all 764

Trending Articles