Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in building react native app in Android behind proxy #15300

Closed
nanda248 opened this issue Aug 1, 2017 · 1 comment
Closed

Error in building react native app in Android behind proxy #15300

nanda248 opened this issue Aug 1, 2017 · 1 comment
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@nanda248
Copy link

nanda248 commented Aug 1, 2017

Hi, i have an error while opening the project in android studio. The connection was successful when i checked connection in File > Settings > System Settings > HTTP Proxy > Check connection.
react-native-cli: 2.0.1
react-native: 0.46.4
android studio: 2.3.3
Error screenshot here: https://pasteboard.co/GDzxKKgd.png
Below is my gradle.properties file:
`

systemProp.http.proxyPassword=<my_password>
systemProp.http.proxyHost=<proxy_host>
android.useDeprecatedNdk=true
systemProp.http.proxyPort=8080
systemProp.http.proxyUser=<my_username>

`

Below is build.gradle (Project:sampleProjectOne) file:

`buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
mavenLocal()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
}
}`

Below is build.gradle (Module:app) file:

`dependencies {
compile fileTree(dir: "libs", include: ["*.jar"])
compile "com.android.support:appcompat-v7:23.0.1"
compile "com.facebook.react:react-native:+" // From node_modules
}

// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use
task copyDownloadableDepsToLibs(type: Copy) {
from configurations.compile
into 'libs'
}`

I believe the error is coming from the line: compile "com.facebook.react:react-native:+" because the error goes away and the build is successful when I comment out that line. Can someone help out how to resolve this error?

@pull-bot
Copy link

pull-bot commented Oct 9, 2017

Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally!

If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:

  • Does the issue still reproduce on the latest release candidate? Post a comment with the version you tested.
  • If so, is there any information missing from the bug report? Post a comment with all the information required by the issue template.
  • Is there a pull request that addresses this issue? Post a comment with the PR number so we can follow up.

If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution.

@hramos hramos added the Icebox label Oct 9, 2017
@hramos hramos closed this as completed Oct 9, 2017
@facebook facebook locked as resolved and limited conversation to collaborators Oct 9, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants