のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

ResourceType: Failure getting entry for

W/ResourceType(): Failure getting entry for 0x7f060000 (t=5 e=0) in package 0 (error -75)
resID 0x7f060000
T = 5
E = 0
ip = 0
offset = -75 <= offsetが0以下

言語:日本語
IME:谷歌拼音输入法(Google PinIn)にチェックが入っているとでるようだ。


言語:日本語
IME:Japanese IMEにチェックでもwarningがでる。


言語を中国語にすると出なくなった。
(通る関数が変わるのかな?)

   2954 ssize_t ResTable::getResource(uint32_t resID, Res_value* outValue, bool mayBeBag, uint16_t density,
   2955         uint32_t* outSpecFlags, ResTable_config* outConfig) const
   2956 {

   3031         const ResTable_type* type;
   3032         const ResTable_entry* entry;
   3033         const Type* typeClass;
   3034         ssize_t offset = getEntry(package, T, E, desiredConfig, &type, &entry, &typeClass);
   3035         if (offset <= 0) {
   3036             // No {entry, appropriate config} pair found in package. If this
   3037             // package is an overlay package (ip != 0), this simply means the
   3038             // overlay package did not specify a default.
   3039             // Non-overlay packages are still required to provide a default.
   3040             if (offset < 0 && ip == 0) {
   3041                 ALOGW("Failure getting entry for 0x%08x (t=%d e=%d) in package %zd (error %d)\n",
   3042                         resID, T, E, ip, (int)offset);
   3043                 rc = offset;
   3044                 goto out;
   3045             }
   3046             continue;
   3047         }