What's new in Android Development Tools (Google I/O '17)
Why Stack Overflow recommends it
Stack Overflow users link it as an official source when explaining Android Studio features announced at I/O 2017, such as tools sample data for layout previews, Instant Run dex behavior, and the Google Maven repository.
Recommended by 2 people across 1 different months, 2017 to 2017.
What it is
A 37-minute Google I/O 2017 session from the Android Developers channel touring new Android Studio and tooling features. It covers items like sample data for layout previews, Instant Run, the new Google Maven repository and the Android Emulator, presented by the Android tools team including Tor Norbye.
What people said
Recommends azizbekian · 2017-06 · Stack Overflow · on “tools:text for RecyclerView items”
The feature you want is called "Support for sample data" and was recently announced in Google I/O 2017 event. This [this video] 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: Applying this: tools:text="@tools:sample/date_day_of_week" will result in this output in Preview window: You can also populate it with your custom data. This blog post [LINK] demonstrates a full example of how to do that. First, you right click on your app module and choose New | Sample Data directory . Then you would create for example an activity_log.json
Recommends Andrii Abramov · 2017-06 · Stack Overflow · on “There are 173 dex generated when I packaged a debug apk”
I can answer about number of dex files. It is a way to provide Instant Run feature while you are being developing your application. I found out about it in Google I/O 2017: What's New in Android Development Tools (Google I/O '17) [this video] Also there is an article which describes hot / warm / cold swaps in details: Instant Run: How Does it Work?! [LINK] which states: Android Studio monitors which files are changed during development, and runs a custom Gradle task to generate .dex files for only the modified classes. Those new .dex files are picked up by Android Studio, which deploys it to the App Server The way to achieve Instant Run is to substitute certain parts of you application dynamicall
Cites Tobias · 2017-01 · Stack Overflow · on “(Dis-) Advantage of having multiple modules in an Android Studio Project?”
There was an article on Medium yesterday, which exactly adresses my question: [LINK] 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 res
Cites Ryan R · 2017-05 · Stack Overflow · on “Why aren't the Android SDK Jars in any Maven Repository?”
Google now has an official maven repository announced at Google IO 2017. buildscript { repositories { maven { // Google Maven Repository url ' [LINK] ' } } ... } What's New in Android Support Library (Google I/O '17) [LINK] What's New in Android Development Tools (Google I/O '17) [this video] Google's Maven repository [LINK] Migrate to the New Plugin [LINK]
Cites Leandroid · 2017-05 · Stack Overflow · on “How to use AndroidStudio sample resources?”
As presented on Google I/O 2017, the AndroidStudio has now a sample resources type that can reference JSON files (useful to preview lists with different elements on each position). [LINK] How do I configure my project to use this new resource? I've attempted to reproduce the code, but it doesn't compile. [LINK] The video that presents this new resource is available here: [this video]
Cites Jamal Eason · 2017-06 · Stack Overflow · on “Can we based on Android Studio Emulators for different display screens create the App”
The Android Emulator is built hand-in-hand [this video] with the Android platform for the Android SDK. Moreover, the latest Android Emulator system images (API 24+) 100% pass the Android Compatibility Definition [LINK] , so that you can have even more assurance that app behavior will be exactly the same between the Android Emulator and a physical Android device.
Cites Amir Uval · 2017-07 · Stack Overflow · on “Native crash of ping”
Update: I was able to run "ping -c 3 127.0.0.1" without problem on the new "Google Play Edition" emulator. So it's not an issue with the elevated privileges. I've searched on Google Play for some Ping apps, and found that there are just devices that just do not support ICMP ping. See this review [LINK] for example. ping support is not a core requirement for an Android device manufacturer, and not part of Android library. So some will support it, some won't, some may require root privileges, some won't. So my best advice is still use a higher level TCP/IP protocol, if all you need it to check your own server. If ping is a requirement, you should install Crashlytics [LINK] or similar reporting