閉じる

Class file collision: A resource exists with a different case: ‘XXXX/R$String.class’.

サイズクオリファを使って stringリソースの振り分けをしようと以下のような xmlファイルを書いたところ件のエラーが。

<resources>
<item name="PreparedTank1_Format" type="string">@string/PreparedTank1_Format_Port</item>
<item name="PreparedTankN_Format" type="string">@string/PreparedTankN_Format_Port</item>
</resources>

しばらく悩み、エラーメッセージの意味を考え、以下のように書き換え。

<resources>
<item name="preparedtank1_format" type="string">@string/PreparedTank1_Format_Port</item>
<item name="preparedtankn_format" type="string">@string/PreparedTankN_Format_Port</item>
</resources>

要はリソースの名前に大文字は使えないと。

res/以下のファイル名に大文字が使えないのはここから来ている訳か。

コメントを残す

メールアドレスが公開されることはありません。必須項目には印がついています *

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)