[android-developers] Re: Trying to Build Android Project in a CentOS machine behind Corp proxy

2017-09-22 Thread Vishnu V Potti
For now I downloaded "Android Support Repository and Google Repository" 
using below commands and now build is working fine.

/opt/android-sdk/tools/bin/sdkmanager --no_https --proxy=http 
--proxy_host=127.0.0.1 --proxy_port=3128 "extras;google;m2repository"

/opt/android-sdk/tools/bin/sdkmanager --no_https --proxy=http 
--proxy_host=127.0.0.1 --proxy_port=3128 "extras;android;m2repository"
 
Although this is good for timebeing, I will be interested to hear if 
someone can point out how can we set proxy, so that packages will 
automatically get downloaded during build.


On Friday, 22 September 2017 15:27:34 UTC+10, Vishnu V Potti wrote:
>
> Hi Everyone,
>
>
> I am trying to build a Android project in CentOS machine as part of 
> Continuous Integration.
>
> Dev team builds in Windows environment and it works fine in their machine.
>
>
> *I have set http_proxy and https_proxy in /etc/environment.*
>
>
> *I have set proxy info in gradle.properties.I have setup Android build 
> tools ,build and platform tools.*
>
>
> In CentOS machine, Initially I was getting this error.
>
>
> * What went wrong:
> A problem occurred configuring project ':app'.> 
> java.lang.NullPointerException (no error message)
> * Try:Run with --info or --debug option to get more log output.
>
>
>
> Then following this thread, 
> https://github.com/ionic-team/ionic-cli/issues/218 I created 
> gradle.properties in $ANDROID_HOME/platforms/android-25
>
> *Now I am seeing this error.*
>
>
> Preparing "Install SDK Patch Applier v4".Warning: An error occurred while 
> preparing SDK package SDK Patch Applier v4: Unable to tunnel through proxy. 
> Proxy returns "HTTP/1.1 407 Proxy Authentication Required".:
> java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 
> 407 Proxy Authentication Required
>
> * What went wrong:
> A problem occurred configuring project ':app'.> Failed to install the 
> following SDK components:
>   [Android Support Repository, Google Repository]
>   Please install the missing components using the SDK manager in Android 
> Studio.
>
>
> 1) Any idea why I am still getting 407 proxy authentication required?
>
> 2) I tried to download packages "Android Support Repository and Google 
> Repository" using *sdkmanager** "extras;google-android-support"*, but it is 
> failing with message
>
> "Warning: Failed to find package extras;google-android-supportsdkmanager" 
>
> Thanks in advance.
>
> Vishnu
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/57930c36-7fe1-494a-8a4c-2e449560c826%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Trying to Build Android Project in a CentOS machine behind Corp proxy

2017-09-21 Thread Vishnu V Potti


Hi Everyone,


I am trying to build a Android project in CentOS machine as part of 
Continuous Integration.

Dev team builds in Windows environment and it works fine in their machine.


*I have set http_proxy and https_proxy in /etc/environment.*


*I have set proxy info in gradle.properties.I have setup Android build 
tools ,build and platform tools.*


In CentOS machine, Initially I was getting this error.


* What went wrong:
A problem occurred configuring project ':app'.> java.lang.NullPointerException 
(no error message)
* Try:Run with --info or --debug option to get more log output.



Then following this thread, 
https://github.com/ionic-team/ionic-cli/issues/218 I created 
gradle.properties in $ANDROID_HOME/platforms/android-25

*Now I am seeing this error.*


Preparing "Install SDK Patch Applier v4".Warning: An error occurred while 
preparing SDK package SDK Patch Applier v4: Unable to tunnel through proxy. 
Proxy returns "HTTP/1.1 407 Proxy Authentication Required".:
java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 
407 Proxy Authentication Required

* What went wrong:
A problem occurred configuring project ':app'.> Failed to install the following 
SDK components:
  [Android Support Repository, Google Repository]
  Please install the missing components using the SDK manager in Android Studio.


1) Any idea why I am still getting 407 proxy authentication required?

2) I tried to download packages "Android Support Repository and Google 
Repository" using *sdkmanager** "extras;google-android-support"*, but it is 
failing with message

"Warning: Failed to find package extras;google-android-supportsdkmanager" 

Thanks in advance.

Vishnu

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/26105aa5-141e-4623-9b98-7bb442c77d57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.