Saturday, June 17, 2017

How to install Android Studio 2.3.3 on Ubuntu 16.04, 17.04

   Android Studio is the official Integrated Development Environment (IDE) for Android app development, based on IntelliJ IDEA . On top of IntelliJ's powerful code editor and developer tools, Android Studio offers even more features that enhance your productivity when building Android apps


Android Studio 2.3.3 changelog:
  •     Android Studio can now convert PNG, BMP, JPG, and static GIF files to WebP format. WebP is an image file format from Google that provides lossy compression (like JPEG) as well as transparency (like PNG) but can provide better compression than either JPEG or PNG.
  •     The new App Links Assistant simplifies the process of adding Android App Links to your app into a step-by-step wizard. Android App Links are HTTP URLs that bring users directly to specific content in your Android app.
  • The Layout Editor now includes support for two new ConstraintLayout features:
    •     Define a view size based on an aspect ratio.
    •     Create packed, spread, and weighted linear groups with constraint chains.
  • The Layout Editor also now lets you create a list of favorite attributes so you don't have to click View all attributes to access the attributes you use most.
  • When adding a material icon using the Vector Import Dialog (File > New > Vector Asset), you can now filter the list of available icons by category or by icon name.
  •  New and updated annotations. The new @RestrictTo annotation for methods, classes, and packages lets you restrict an API. The updated @VisibleForTesting annotation now has an optional otherwise argument that lets you designate what the visibility of a method should be if not for the need to make it visible for testing. Lint uses the otherwise option to enforce the intended visibility of the method.
  • New lint baseline support allows you to use a snapshot of your project's current set of warnings as a baseline for future inspection runs so only new issues are reported. The baseline snapshot lets you start using lint to fail the build for new issues without having to go back and address all existing issues first.
  • New lint checks, including the following:
    • Obsolete SDK_INT Checks: Android Studio removes obsolete code that checks for SDK versions.
    • Object Animator Validation: Lint analyzes your code to make sure that your ObjectAnimator calls reference valid methods with the right signatures and checks that those methods are annotated with @Keep to prevent ProGuard from renaming or removing them during release builds.
    • Unnecessary Item Decorator Copy: Older versions of the RecyclerView library did not include a divider decorator class, but one was provided as a sample in the support demos. Recent versions of the library have a divider decorator class. Lint looks for the old sample and suggests replacing it with the new one.
    • WifiManager Leak: Prior to Android 7.0 (API level 24), initializing the WifiManager with Context.getSystemService() can cause a memory leak if the context is not the application context. Lint looks for these initializations, and if it cannot determine that the context is the application context, it suggests you use Context.getApplicationContext() to get the proper context for the initialization.
    • Improved Resource Prefix: The existing resourcePrefix lint check had many limitations. You can now configure your project with a prefix, such as android { resourcePrefix 'my_lib' }, and lint makes sure that all of your resources are using this prefix. You can use variations of the name for styles and themes. For example for the my_lib prefix, you can have themes named MyLibTheme, myLibAttr, my_lib_layout, and so on.
    • Switch to WebP: This check identifies images in your project that can be converted to WebP format based on your project’s minSdkVersion setting. An associated quickfix can automatically convert the images, or you can convert images to WebP manually.
    • Unsafe WebP: If your project already includes WebP images, this check analyzes your project to ensure that your minSdkVersion setting is high enough to support the included images. For more information about WebP support in Android and Android Studio
  • See more....

Installation instructions:


       Opening terminal (Ctrl+Alt+T) and running the command:

Install Java 8 on Ubuntu 16.04, Ubuntu 17.04

      The first need to install Java. It’s recommended to install Oracle Java, because it has a performance edge over OpenJDK. Run the following commands in terminal to install it from PPA and set Oracle Java 8 by default:

$ sudo add-apt-repository ppa:webupd8team/java

$ sudo apt-get update

$ sudo apt-get install java-common oracle-java8-installer

$ sudo apt-get install oracle-java8-set-default

Install Android Studio on Ubuntu 16.04, Ubuntu 17.04

     Run the following commands to add Android Studio PPA and install.

$ sudo add-apt-repository ppa:maarten-fonville/android-studio

$ sudo apt-get update

$ sudo apt-get install android-studio

The following command to start Android Studio.

$ /opt/android-studio/bin/studio.sh


refer original : https://howto-ubuntunew.blogspot.com/


7 comments:

  1. The article looks magnificent, but it would be beneficial if you can share more about the suchlike subjects in the future. Keep posting. semakan bsh 2019

    ReplyDelete
  2. Certainly this might be beneficial for many android developers. I am contented reading this resourceful article here. Continue sharing and keep updating. One can speak and practice English in an effective way, just by downloading English Learning App on your own smartphone, which you can use whenever and wherever you want to practice your communication skills with experts.
    Practice English app | English Speaking App

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. I am very happy when this blog post read because blog post written in good manner and write on good topic.
    Thanks for sharing valuable information…
    Android Training Institute in Noida

    ReplyDelete
  5. We connect you live to chat with strangers making it easier than ever for you to meet new people online. Me2call4u allow you to personalize your look with our new video filters and video stickers.Random video chat

    ReplyDelete
  6. Me2call4u is the best online chatting website to chat with strangers & meet new people online. Go live, with Me2call4u, and connect with anyone all over the world with a single swipe! Me2call4u is an random video chat app which will allow you to talk to strangers around the world instantly.

    ReplyDelete