すべては, 以下にあるやつ今現在最新のサンプルUI系をLollipopで動かす.

AndroidStudio の ImportSample のプレビューが表示されないので並べて置くと何かと便利かななどと思い.

パーツやふるまいの名前が分かればそれで良かったのでYouTubeのGIF書き出しでやろうかと思いましたが, 一般公開間近の非公開ステータス.

Nexus6でやってます.
こんな感じで40個くらい.
以下から順不同で.
すべては, 以下にあるやつ今現在最新のサンプルUI系をLollipopで動かす.

AndroidStudio の ImportSample のプレビューが表示されないので並べて置くと何かと便利かななどと思い.

パーツやふるまいの名前が分かればそれで良かったのでYouTubeのGIF書き出しでやろうかと思いましたが, 一般公開間近の非公開ステータス.

Nexus6でやってます.
こんな感じで40個くらい.
以下から順不同で.
Androidアプリでメソッド数が65536を超える場合は少し手間が掛かっていました.
Androidでメソッド数が65536を超えた時の対処方法 - Qiita
GoogleAnalyticsやGoogleMapなどを利用できるライブラリ com.google.android.gms:play-services ですが、実は使っている機能は1つか2つということが多いのではないでしょうか。
com.googleは18513個もメソッドがあるので、これを節約するだけでかなりメソッドの数が減ります。
このよく言われている「com.google.android.gms:play-services」がでかすぎという話.
必要なものだけピックアップして使えるようになったようです.

Setting Up Google Play Services | Android Developers
自動で, com.google.android.gms:play-services-base:6.5.87 が読み込まれたりするし, どれを使うべきなのかわかりづらいようなものもあるように思えたり.
あと, 公式ドキュメントや AndroidStudio の自動チェックで, 「推奨」から「非推奨」と言われ始めたバージョン記述「+」で書かれていたり.
compile 'com.google.android.gms:play-services:6.5.+'
compile 'com.google.android.gms:play-services-fitness:6.5.+'
compile 'com.google.android.gms:play-services-wearable:6.5.+'
これらの「+」記述は, 最新 Android Studio 1.0 でも警告される.

こう書いてるけど.
At the time of writing, the correct version to use is 6.5.87. As this is a very granular number, it will get updated quite quickly, so be sure the check the latest version when you are coding. Often people will use a ‘+’ to denote versions, such as 6.5.+ to use the latest 6.5 build. However, it’s typically discouraged to use a ‘+’ as it can lead to inconsistencies.
でも, やっぱり「+」は怖くないですか.
Google Play services and DEX method limits | Android Developers Blog
デザインとかもあるけどまずはでとりあえず.

SDKをAPI21に更新.


...
android {
compileSdkVersion 21
buildToolsVersion "21.0.0"
defaultConfig {
...
targetSdkVersion 21
...
}
...
NDKをr10cに更新.

ndk~$ chmod a+x android-ndk-r10c-darwin-x86_64.bin ndk~$ ./android-ndk-r10c-darwin-x86_64.bin ... Extracting android-ndk-r10c/build/gmsl Extracting android-ndk-r10c/build/core Extracting android-ndk-r10c/build/awk Extracting android-ndk-r10c/build Extracting android-ndk-r10c ndk~$ export PATH=$PATH:~/android-ndk-r10c
Android NDK | Android Developers
とりあえずこれくらいで.
Android 5.0 Lollipop の SDK と、新しい Nexus プレビュー版イメージを公開しました - Google Developer Japan Blog
MacOSのアップデートの後, AndroidStudio にてこんなダイアログ.

Can't start Git: /usr/bin/git
Probably the path to Git executable is not valid.
見えてない?
$ which git
/usr/bin/git
権限?
$ brew doctor
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!
Warning: You have an outdated version of /usr/bin/install_name_tool installed.
This will cause binary package installations to fail.
This can happen if you install osx-gcc-installer or RailsInstaller.
To restore it, you must reinstall OS X or restore the binary from
the OS packages.
Warning: Git could not be found in your PATH.
Homebrew uses Git for several internal functions, and some formulae use Git
checkouts instead of stable tarballs. You may want to install Git:
brew install git
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
Warning: You have not agreed to the Xcode license.
Builds will fail! Agree to the license by opening Xcode.app or running:
xcodebuild -license
Warning: Some keg-only formula are linked into the Cellar.
Linking a keg-only formula, such as gettext, into the cellar with
`brew link <formula>` will cause other formulae to detect them during
the `./configure` step. This may cause problems when compiling those
other formulae.
Binaries provided by keg-only formulae may override system binaries
git は入っているので, おもむろに
$ sudo xcodebuild -license
...
9.12 Entire Agreement; Governing Language
This Agreement constitutes the entire agreement between the parties with respect to the use of the SDK licensed hereunder and supersedes all prior understandings regarding such subject matter. This Agreement may be modified only: (a) by a written amendment signed by both parties, or (b) to the extent expressly permitted by this Agreement (for example, by Apple by written or email notice to You). Any translation of this Agreement is done for local requirements and in the event of a dispute between the English and any non-English version, the English version of this Agreement shall govern. If You are located in the province of Quebec, Canada, the following clause applies: The parties hereby confirm that they have requested that this Agreement and all related documents be drafted in English. Les parties ont exigé que le présent contrat et tous les documents connexes soient rédigés en anglais.
...
By typing 'agree' you are agreeing to the terms of the software license agreements. Type 'print' to print them or anything else to cancel, [agree, print, cancel]
agree
$ brew update
あ, いけたわ.
