Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not able to build Android Studio for First time

Tags:

android

gradle

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

enter image description here

enter image description here

@Prasad Bonthu I think proxy settings is fine.

enter image description here

enter image description here

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

enter image description here

Not able to add module

like image 481
Amruth A Avatar asked Mar 06 '23 00:03

Amruth A


2 Answers

Just go file>setting>Build,Execution,Deployment> Gradle >Android Studio and Enable embededded Maven repository

like image 149
Kamal Sheykholeslami Avatar answered Mar 10 '23 10:03

Kamal Sheykholeslami


Try to set offline mode

  1. Click File => Settings (on a Mac, Android Studio => Preferences) to open the Settings dialog.

  2. In the left pane, expand Build, Execution, Deployment and then click Gradle.

  3. Under Global Gradle settings, check the Offline work checkbox.

like image 45
Gautam Surani Avatar answered Mar 10 '23 09:03

Gautam Surani