W/Resources﹕ Converting to string: TypedValue が連発

端末によって連発されることがある.

converting_to_string

W/Resources﹕ Converting to string: TypedValue

ログのフィルタを設定しなければいけないのか,

なにか記述が何か正しくないのか厳格に?

実際のアプリの挙動はおかしくないように見えているが.

Try going into developer options on the phone and uncheck the box for "Enable view attribute inspection"

Ah, good deal. This is expected behavior for view attribute inspection. You'll want to keep it off unless you're actually using the feature in hierarchyviewer as it degrades layout inflation performance.

Issue 78322 - android - Resources﹕ Converting to string: TypedValue - Android Open Source Project - Issue Tracker - Google Project Hosting

「開発者向けオプション」-「表示属性検査を有効にする」をOFFにすると消える.

20150719-011716

開発者オプションのなかに「表示属性検査を有効にする」という不思議な項目があります。これは英語表記のほうがわかりやすいかもしれません。英語では「Enable view attribute inspection」、Viewクラスの属性情報を監査するという意味だと思いますが、直訳したのでしょう。
利用には、チェックボックスを有効にしてから、Android Studio(またはEclipse)のAndroid Device Monitorから「Dump View Hierarchy for UI Automator」を選択します。

View Hierarchyでは、Viewの階層構造をダンプして構造やViewのもつ属性値を視覚化します。Viewの入れ子を減らすことはパフォーマンスに貢献するほか、現在のViewに何が設定されているか、その場でチェックできます。

Android 5.0 Lollipopの開発者オプション詳細解説 | TechBooster | Tech Booster

とりあえず今は, 「Dump View Hierarchy for UI Automator」を使う時だけONにする, と.


Google Play Services 7.5 にアップしたら 権限要求が増えた

少しサイズがでかいけど, 全部まとめて入れていました.

compile 'com.google.android.gms:play-services:7.5.0'

apk を Play Store にアップすると必要権限が増えているといわれる.

Google_Play_Developer_Console

結構ヘビーな権限が追加されてる.

コードはもちろん, AndroidManifest.xml もそのまま.

全部まとめ版 をやめて, 必要なものだけ入れましょう.

compile 'com.google.android.gms:play-services-ads:7.5.0'

これで, 実際に必要な権限だけで apk を作成, アップロードできます.

Setting_Up_Google_Play_Services_ ___ _Google_APIs_for_Android_ ___ _Google_Developers

Setting Up Google Play Services   |   Google APIs for Android   |   Google Developers


Google I/O を ウィジェットで見てみよう 見せてみよう

「I/O Live Embed Widget」なるものが公開されています.

I_O_Live_Embed_Widget 2

ブラウザ上で埋め込みHTMLを作成できます.

I_O_Live_Embed_Widget

埋め込んだ結果が以下.

埋め込んでみたかっただけです.

I/O Live Embed Widget


Android Studio の ビルド がやけにトロい

イライラすぎるので キンキンに調べてやろうと, でまずぐぐって糸口.

gradle.properties ファイルを変更
gradle をオフラインモードに変更

Android Studioのgradleビルドを高速化する - Qiita

org.gradle.jvmargs=-Xmx10248m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError - Dfile.encoding=UTF-8
org.gradle.parallel=true
org.gradle.daemon=true
org.gradle.configureondemand=true

[AndroidStudio] 機能実装のビルド時間を減らしたい

.gradle/gradle.propertiesに
org.gradle.daemon=true
と書いておけばGradleデーモンが使われるので立ち上がりが速くなる、というのはあちこちに書いてあるが、実はGradleデーモンが使われていない可能性がある。

また、Gradleの引数が一致していない場合には、IntelliJのSettings->Gradle->Gradle VM Optionsの値を、手動で起動したGradleと合わせておく必要がある。私の場合には、以下を設定してある。
-XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError -Xmx1024m

夜でもアッサム: AndroidのGradleでのビルドが遅いのをちょっと速くする

Android開発を爆速にする10のコマンドラインスクリプト - クックパッド開発者ブログ

Android/Gradleのビルド高速化実験 #potatotips - diary ichigotake

いろんな方法があるようなので gradle.properties の方法をまずは.

プロジェクトによってあったりなかったりした, gradle.properties.

別プロジェクトからコピーしてくるか, ユーザーガイドサンプルにもある.

~/.gradle $ find . -name gradle.properties

プロジェクトディレクトリの直下に以下1行だけコメントインしたものを置いて,

# Project-wide Gradle settings.                                                                                                                                 

# IDE (e.g. Android Studio) users:                                                                                                                              
# Gradle settings configured through the IDE *will override*                                                                                                    
# any settings specified in this file.                                                                                                                          

# For more details on how to configure your build environment visit                                                                                             
# http://www.gradle.org/docs/current/userguide/build_environment.html                                                                                           

# Specifies the JVM arguments used for the daemon process.                                                                                                      
# The setting is particularly useful for tweaking memory settings.                                                                                              
# Default value: -Xmx10248m -XX:MaxPermSize=256m                                                                                                                
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

# When configured, Gradle will run in incubating parallel mode.                                                                                                 
# This option should only be used with decoupled projects. More details, visit                                                                                  
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects                                                                 
# org.gradle.parallel=true

ビルドしてみたら, 数十秒かかってたのが 2秒くらいになったけど.

gradle.properties

なんでかな(笑)

わたしは今までなにをしてたのかな(笑)

75%速度向上という Gradle 3.0 を Android Studio で試す

【Android Studio】idea.vmoptions の設定

オプションに「–profile」をつけて Run時間が1分から2秒になった話

Android お手軽なビルド時間の短縮メモ


Mac の 空き容量 がない場合

どこから消したらいいのか.

DaisyDisk_-_Analyze_disk_usage_and_free_up_disk_space_on_Mac

良いアプリないかな, といつも探すが結局いつもこれ.

$ sudo du -g -x -d 5 / | awk '$1 >= 5{print}'
14	/Applications
7	/Library
9	/private/var
9	/private
6	/System/Library/Caches/com.apple.coresymbolicationd
6	/System/Library/Caches
11	/System/Library
11	/System
...

パスワードを要求されるので、ログイン時に使用しているパスワードを入力する。パスワードは入力しても画面には何も表示されないので気にせず入力した後returnキーを押して実行すること。正しく実行されると、ルートから5階層下までのフォルダの容量を確認し、容量が5GB以上のフォルダがリストアップされる (出力結果の数字は各フォルダの容量 (単位:GB))。すべてがリストアップされるのには時間がかかるので、プロンプト (例:username-no-macbook:~ username$) が出て次のコマンドが入力できる状態になるまで待つこと。

いっしょに紹介されてるフリーウェアもいい.

ハードディスクの空き容量が極端に少なくなる場合の対処方法 | Apple サポートコミュニティ


Related Categories :  NewbiePreferenceRecommendedTools