アンドロイドSDKバージョンアップによるエラー?
AndroidのSDKをバージョンアップ(GingerBread)したところ、
既存のソースでこんなエラーが発生するようになってしまった。
多言語化対応に関係するのかしら?
%書式の置き換え使うときは位置も含めて使えやみたいな感じ?
持ってる変数はURLエンコードした文字列なんで、そういう事じゃないんだけど。。。
ドキュメントによると
Store your styled text resource as an HTML-escaped string:
HTML-escaped, using the
みたいなこと書いてあるし、マジ勘弁。
formatted="false"で回避できるのかしら?
どこに指定すればいいのでしょうかね
既存のソースでこんなエラーが発生するようになってしまった。
arrays.xml:209: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?該当箇所はこんな感じ
<item>http://ja.m.wikipedia.org/wiki/%E3%83%89%E3%83%A9_%28%E9%BA%BB%E9%9B%80%29</item>
多言語化対応に関係するのかしら?
%書式の置き換え使うときは位置も含めて使えやみたいな感じ?
持ってる変数はURLエンコードした文字列なんで、そういう事じゃないんだけど。。。
ドキュメントによると
Store your styled text resource as an HTML-escaped string:
In this formatted string, a<string name="welcome_messages">Hello, %1$s! You have <b>%2$d new messages</b>.
<b> element is added. Notice that the opening bracket isHTML-escaped, using the
< notation.みたいなこと書いてあるし、マジ勘弁。
formatted="false"で回避できるのかしら?
どこに指定すればいいのでしょうかね
コメント
コメントを投稿