What's New in Android Development Tools (Google I/O '17)

By: Android Developers

332   4   26593

Uploaded on 05/18/2017

In this session, we will provide an in depth tour of the Android development tools and take a closer look at everything new - along with tips and tricks for getting the most out of them!

Watch more Android talks at I/O '17 here: https://goo.gl/c0LWYl
See all the talks from Google I/O '17 here: https://goo.gl/D0D4VE

Subscribe to the Android channel: http://goo.gl/GEh1ds

#io17 #GoogleIO #GoogleIO2017

Comments (6):

By anonymous    2017-09-20

There was an article on Medium yesterday, which exactly adresses my question:

https://medium.com/@nikita.kozlov/how-modularisation-affects-build-time-of-an-android-application-43a984ce9968#.at4n9imbe

tl;dr:

First and most important, the hypothesis was correct, modularising project can significantly speed up build process, but not for all configurations.

Second, if splitting is done in a wrong way, then build time will be drastically increased, because Gradle build both, release and debug version of library modules.

Third, working in test-driven way is much easier for a project with multiple modules, because building a small library module is way faster then the whole project.

Forth, doing many things in parallel slows down the build. So having more powerful hardware is a good idea.

Below you can find results of all experiments described in this article

Update

Addressed at Google I/O '17: https://youtu.be/Hx_rwS1NTiI?t=23m17s

Original Thread

By anonymous    2017-09-20

Google now has an official maven repository announced at Google IO 2017.

buildscript {
    repositories {
        maven {
          // Google Maven Repository
          url 'https://maven.google.com'
        }
    }
    ...
}

What's New in Android Support Library (Google I/O '17)
https://youtu.be/V6-roIeNUY0?t=3m34s

What's New in Android Development Tools (Google I/O '17)
https://youtu.be/Hx_rwS1NTiI?t=20m05s

Google's Maven repository
https://developer.android.com/studio/build/dependencies.html#google-maven

Migrate to the New Plugin
https://developer.android.com/studio/preview/features/new-android-plugin-migration.html

Original Thread

By anonymous    2017-09-20

The feature you want is called "Support for sample data" and was recently announced in Google IO 2017 event. This is a direct link to the exact minute where Tor Norbye introduces the new feature.

For example, applying following to the layout item:

tools:text="@tools:sample/lorem"

will result in following output in Preview window:

enter image description here

Applying this:

tools:text="@tools:sample/date_day_of_week"

will result in this output in Preview window:

enter image description here

You can also populate it with your custom data. Having for example activity_log.json file in the project with following content:

{
    "activities" : [
     {
       "icon": "@sample/activity_icons[ic_biking.png]",
       "description": "Biking",
       "location" : "Pleasant Hill, CA",
       "distance": "48 miles",
       "date": "Yesterday"
     },
     // other items here
    ]
}

then you can apply this data to your layout this way:

tools:src="@sample/activity_log.json/activities/icon"
tools:src="@sample/activity_log.json/activities/distance"

This will result in following output in Preview window:

enter image description here

Original Thread

Recommended Books

    Submit Your Video

    If you have some great dev videos to share, please fill out this form.