Android Studio 2.0 で「set ANDROID_DAILY_OVERRIDE environment variable to "*****"」

ビルド時に謎のエラーメッセージ.

Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to "*****"

環境変数「ANDROID_DAILY_OVERRIDE」とか初めて見た.

トップレベルの build.gradle をとりあえず(非推奨だが)書き換えるといける.

dependencies {
    classpath 'com.android.tools.build:gradle:+'
    ....
}

固定で書く場合, 今の最新バージョンはいくつか.

Maven_Repository__com_android_tools_build_»_gradle

Maven Repository: com.android.tools.build » gradle

いや, alpha だし, これか.

com_android_tools_build_gradle

com.android.tools.build.gradle

New_Build_System_-_Android_Tools_Project_Site

New Build System - Android Tools Project Site

エラーメッセージどおりに, OSX なら以下の後, プロジェクトをクリーンして, Android Studio再起動.

launchctl setenv ANDROID_DAILY_OVERRIDE *****

しかし, 引き続き新たなエラーメッセージが...

8.4.0 なのに「updating the version of com.google.android.gms to 8.3.0」


Android 次期バージョン N は Oracle Java を使わないのか?

Diff_-_51b1b6997fd3f980076b8081f7f1165ccc2a4008^__-_platform_libcore_git_-_Git_at_Google

技術ネタ満載の YCombinator の運営する「Hacker News」で昨日から話題になっています.

Google confirms next Android version won’t use Oracle’s proprietary Java APIs | Hacker News

このへん素人目にも想像できるのは「著作権料を払いたくない」という理由.

So in order for Google to avoid paying that royalty going forward they need to move to OpenJDK quickly with their next release, with the belief that using Oracle's GPL JDK implementation also gives them a license to the API (which is somehow separately copyrightable? The Federal Circuit is a mess).

ここらの適用範囲などの法律の話は金額のわりに明快でなく庶民には分かりづらい.

実際, 開発中のソースコードではどのようになってきているのか.

Mysterious Android codebase commit | Hacker News

This diff is more explicit about what's going on:
https://android.googlesource.com/platform/libcore.git/+/aab9...
Change dependency from libart -> libopenjdkjvm.
There are also diffs adding lambda support, tweaking various classes for compatibility with applications that use reflection to access internal capabilities, and fixing lots OpenJDK compatibility bugs.

確かに, OpenJDK に移行してるようにも見えるが.

In the context of the recent juniper attack where some unauthorized code was committed without anybody noticing for years, it seems like it would be easy to hide a backdoor in such a big commit.
How do you go about checking the integrity of the code when you have so many files?
8902 files were changed, most added, and the commit says it's just importing openJDK files. Is there anybody checking that the source file imported haven't been modified to include some kind of backdoor?

はっきり「OpenJDKに移行を進めている」とは言い切れないのか.

WEBでは見づらいのでアプリで.

Hacker News Reader (翻訳) - Google Play の Android アプリ


Genymotion で Marshmallow

「Preview」ということですが.

Virtual_device_creation_wizard

Genymotion_for_personal_use_-_PREVIEW_-_Google_Nexus_5X_-_6_0_0_-_API_23_-_1080x1920__1080x1920__420dpi__-_192_168_58_101

とりあえずは動く.

Genymotion

[GUIDE] Genymotion | Installing ARM Translat… - Pg. 13 | Android Development and Hacking | XDA Forums


【急げ!!】Chromecast ユーザーにまたもや 無料クーポン配布中!!

現在配布中です.

日本では, 映画1本とNetflixの1ヶ月無料が特典のようです.

Chromecast Offers

Chromecast

Chromecast 2

あれ, テレビをONにして再度.

Chromecast 3

映画_を1_本プレゼント_-_Google_Play_の映画

パソコンのブラウザChromeからでないと無理なのかも.

いつもありがとうございます.


【2015-10-14 公開!!】Google I/O 2015 のソースコードに見るディレクトリ構成

d2f9b090-727a-11e5-96aa-b92347fe83f2

半年くらい遅れていましたが公開されている.

Oct 14, 2015, 5:41 PM GMT+9
Initial source posted. We'll be iterating on it a bit going forward. As always we welcome contributions.

PaulRashidi

I/O 2015 Source Code · Issue #139 · google/iosched

google_iosched

google/iosched

Androidアプリコード部分の基本的なディレクトリ/ファイル (モジュール/クラス) の構成をみる.

iosched/android/src/main/java/com/google/samples/apps/iosched/

機能別 (供用)

AppApplication.java
Config.java

provider/*Contract.java
provider/*Enum.java
provider/*Provider.java
provider/*Database.java (extends SQLOpenHelper)

receiver/*Receiver.java
service/*Service.java
util/*Utils.java

io/model/*.java
io/*Handler.java (extends JSONHandler)
io/JSONHandler.java

ui/BaseActivity.java

画面別

*/*Constants.java

*/*Activity.java
*/*Fragment.java
*/*View.java

*/*Adapter.java

*/*Helper.java
*/*Utils.java

*/data/*Data.java
*/*Model.java (interface)

直感的に分かりやすく整理されています.

ソースディレクトリの構成時にもっておくべき「会社別」のイメージ