Problem with my project on android studio - android

I am trying to edit a project on android studio, but I keep getting these errors:
Could not HEAD 'https://chartboostmobile.bintray.com/Chartboost/com/tapjoy/tapjoy-android-sdk/12.8.0/tapjoy-android-sdk-12.8.0.pom'.
Received status code 502 from server: Bad Gateway
Disable Gradle 'offline mode' and sync project
also it is telling me to upgrade Gradle version, the current version is 4.2.2

Could not HEAD 'https://chartboostmobile.bintray.com/Chartboost/com/tapjoy/tapjoy-android-sdk/12.8.0/tapjoy-android-sdk-12.8.0.pom'. Received status code 502 from server: Bad Gateway Disable Gradle 'offline mode' and sync project
This is caused by bad net connect. You could download the sdk directly from the offical site and manually integrate it via referring to this guide.
also it telling me to upgrade gradle version the current version is 4.2.2
This is only a suggestion and not mandatory.

Related

Unable to create & sync android project in mac with android studio 3.1.4

Unknown host 'jcenter.bintray.com: nodename nor servname provided, or not known'. You may need to adjust the proxy settings in Gradle.
Enable Gradle 'offline mode' and sync project
Learn about configuring HTTP proxies in Gradle
if I do it in offline mode getting different errors
these are my gradle files tried different build tool versions in last few days but non working please help.

Not able to build Android Studio for First time

Getting error when trying build for first time in Android
Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.1.3/gradle-3.1.3.pom'. Received status code 407 from server: Proxy Authentication Required
Enable Gradle 'offline mode' and sync project
4:41 PM Gradle sync started
4:41 PM Gradle sync failed: Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.1.3/gradle-3.1.3.pom'. Received status code 407 from server: Proxy Authentication Required
Consult IDE log for more details (Help | Show Log) (1s 129ms)
Able to do network connection Ok .But still this error is present.
#Gautam Surani Can't find the check box to offine
#Prasad Bonthu I think proxy settings is fine.
Cause: unable to find valid certification path to requested target
Also getting
Could not GET 'http://jcenter.bintray.com/com/android/tools/build/gradle-core/2.2.3/gradle-core-2.2.3.jar'. Received status code 403 from server: Forbidden
Enable Gradle 'offline mode' and sync project
After changing maven { url "jcenter.bintray.com"; }
can anybody pls share any vaild project for Android Studio 3.1.3 Build #AI-173.4819257, built on June 4, 2018 JRE: 1.8.0_152-release-1024-b02 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 7 6.1
Not able to add module
Just go file>setting>Build,Execution,Deployment> Gradle >Android Studio
and Enable embededded Maven repository
Try to set offline mode
Click File => Settings (on a Mac, Android Studio => Preferences) to
open the Settings dialog.
In the left pane, expand Build, Execution, Deployment and then
click Gradle.
Under Global Gradle settings, check the Offline work checkbox.
Try
File -> Invalidate Chache/ Restart -> Click on Invalidate and Restart
I hope it should work.

Gradle - location for cached libraries in Windows

I am trying to develop a simple android application using Android Studio 3.1.1. While building I am getting a sync failed error from gradle. The bottom Build panel shows this error message.
Could not HEAD
'http://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jre8/1.2.0/kotlin-stdlib-jre8-1.2.0.pom'.
Received status code 503 from server: Service Unavailable Enable
Gradle 'offline mode' and sync project
In my organization the access to this CDN is blocked. I tried by enabling the 'offline mode', now I am getting this error.
No cached version of org.jetbrains.kotlin:kotlin-stdlib-jre8:1.2.0
available for offline mode. Disable Gradle 'offline mode' and sync
project
I downloaded the file kotlin-stdlib-jre8-1.2.0.pom, but I don't know where to put it so that Gradle can use it (as a cached version).
Is there any way to make this work when the CDN site is not accessible?
Or anyone know the windows folder where the gradle stores the cached libs?
Gradle supports an array of repository types. If you cannot use a Maven repository hosted by your organisation, there are other options available, like a flat directory repository or something else.
I would not recommend attempting to trick Gradle in believing it downloaded the dependencies. These are internal formats, subject to change from version to version.

Android Studio Update to 2.3.3

I updated the android studio to 2.3.3 from 2.2.3 now when opening the existing projects it shows the following error.
Error:Could not HEAD 'https://jcenter.bintray.com/com/github/dcendents/android-maven-gradle-plugin/1.3/android-maven-gradle-plugin-1.3.pom'. Received status code 407 from server: Proxy Authentication Required
Enable Gradle 'offline mode' and sync project
How to fix it? Can anyone help.

Android Studio gradle couldn't sync

I have upgraded android studio from 1.4 to 2.1 and my existing projects couldn't sync with the below gradle error
Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.
I am not using any proxy and I have made sure not to use proxy from the android studio IDE. but it keeps on coming with the same error and no idea how to fix this.
I am stack on this and would appreciate any one who could shade some light on this

Categories

Resources