I downloaded Android Studio (Beta) 0.8.6 (as it comes with built in SDK Tools, SDK Platform Tools, SDK Build Tools, Android 4.4W and Android Support Repository) to start android program development on CentOS7 and had Open JDK 1.8.0.131.
I created new simple hello world kind of project, myapplication.
I would like to build the application in offline mode:
Referred:
a) android studio 3.1.4 offline mode
b) How to setup Android Studio to work completely offline?
c) How to setup Android Studio to work completely offline?
d) Does Android studio need internet connection to build project
e) setting gradle on offline mode in android studio
But they are not leading to any definite solution.
I tried to solve the issue in the following ways:
a) downloaded gradle-1.12-all.zip and placed in folder, /opt/gradle/
b) edited gradle-wrapper.properties from
distributionUrl=http\:///services.gradle.org.distributions/gradle-1.12-all.zip
to
distributionUrl=file:///opt/gradle/gradle-1.12-all.zip
c) downloaded gradle-0.12.2.jar, gradle-0.12.2.pom and placed in folder, /opt/android-studio/lib/
While compiling, getting exception: "No cached version com.android.tools.build:gradle:0.12.2" available for offline mode!
d) Also, put gradle-0.12.2.jar, gradle-0.12.2.pom and placed project lib folder and found that build.gradle has
dependencies{
compile fileTree(dir:'libs', include: [*.jar])
}
Still, the exception: "No cached version com.android.tools.build:gradle:0.12.2" available for offline mode persists!
I doubt I am placing the the gradle-0.12.2.jar, gradle-0.12.2.pom in wrong path!
Please guide me in building application in offline mode!
(ps: pardon me for raising the well known issue which is discussed many a times! I am optimistic as the un-available gradle-0.12.2 can be made available to the system!)