Android Studio Set-Up on Ubuntu.
What is gradle in android?Ans: Gradle is another build system that takes the best features from other build systems and combines them into one. It also learned from their shortcomings. It is JVM based build system, what that means is that you can write your own script in java, which Android Studio makes use of. One cool thing about gradle is that it is plugin based system. This means if you have your own programming language and you want to automate the task of building some package from sources then you can write a complete plugin in java and distribute it to rest of world.
Similar to Eclipse with the ADT Plugin, Android Studio provides integrated Android developer tools for development and debugging.
On top of the capabilities you expect from IntelliJ, Android Studio offers:
=>Gradle-based build support.
=>Android-specific refactoring and quick fixes.
=>Lint tools to catch performance, usability, version compatibility and other problems.
=>ProGuard and app-signing capabilities.
=>Template-based wizards to create common Android designs and components.
=>A rich layout editor that allows you to drag-and-drop UI components, preview layouts on multiple screen configurations, and much more.
=>Built-in support for Google Cloud Platform, making it easy to integrate Google Cloud Messaging and App Engine as server-side components.
Install Android Studio via PPA in Ubuntu:Installing Android Studio in Ubuntu becomes easy. A Ubuntu PPA contains simple script that automatically downloads and installs the latest release from Google download server.
Android Studio depends on Java, and Oracle Java 7 or 8 is recommended.
Now Open Your Terminal on Ubuntu and execute following command:
1. sudo add-apt-repository -y ppa:webupd8team/java
2. sudo apt-get update
3. sudo apt-get install oracle-java7-installer oracle-java7-set-default
Here I am Setting Java7 as default.
To add the Android Studio PPA, run the command:
sudo add-apt-repository ppa:paolorotolo/android-studio
Then update package lists and install the script:
sudo apt-get update
sudo apt-get install android-studio
Depends on your internet connection, it takes a few minutes downloading the source package.
Once installed, start the setup wizard from the Unity Dash (may need restart), or just run command /opt/android-studio/bin/studio.sh.