- Set up the proxy for npm.
npm config set proxy http://xxxxxx:xxxx
npm config set https-proxy http://xxxxxx:xxxx - 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 - Add local.properties to android subfolder and append the following content.
sdk.dir=C\:\\Users\\xxxxx\\AppData\\Local\\Android\\sdk - 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.
↧
Set React Native for Android in Windows
↧