demonhide

set Proxy cho react native

Jan 25th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. -android/gradle/gradle-wrapper
  2. xóa s ở http
  3. -android/build.gradle
  4. thêm maven { url "http://jcenter.bintray.com" } ở cả 2 repositories
  5. ( nếu gặp lỗi sau khi cài thư viện ( 1 số thư viện bắt react-native link thì mới bị ) thì vào node_modules, vào folder thư viện đó tìm đến file build.gradle replace cái jcenter() lại và thay bằng maven { url "http://jcenter.bintray.com" } )
  6. -android/app/build.gradle
  7. compileSdkVersion 26
  8. buildToolsVersion "26.0.2"
  9. -android/gradle.properties
  10. systemProp.http.proxyHost=192.168.5.8
  11. systemProp.http.proxyPort=3128
  12.  
  13. systemProp.https.proxyHost=192.168.5.8
  14. systemProp.https.proxyPort=3128
Advertisement
Add Comment
Please, Sign In to add comment