我不知道爲什麼會出現此錯誤。我沒有更新任何東西。我從谷歌api控制檯生成新的密鑰,但錯誤是stil出現。我想要做這個例子 [帶有Google Places API的Android SearchView小部件] [1]。找不到類「gpr」,從方法gps.a引用
調試 - >水庫 - >值 - > google_maps_api.xml
我也有相同結構的發行文件夾,我進入了這兩個文件相同的密鑰。
登錄:
3151-3151/com.example.onur I/Google Maps Android API﹕ Google Play services client version: 4242000
07-18 10:28:13.655 3151-3151/com.example.onur I/dalvikvm﹕ Could not find method guj.a, referenced from method gqi.a
07-18 10:28:13.655 3151-3151/com.example.onur W/dalvikvm﹕ VFY: unable to resolve static method 24936: Lguj;.a (Landroid/content/Context;)Lgri;
07-18 10:28:13.655 3151-3151/com.example.onur D/dalvikvm﹕ VFY: replacing opcode 0x71 at 0x0003
07-18 10:28:13.665 3151-3151/com.example.onur E/dalvikvm﹕ Could not find class 'gpr', referenced from method gps.a
07-18 10:28:13.665 3151-3151/com.example.onur W/dalvikvm﹕ VFY: unable to resolve new-instance 4090 (Lgpr;) in Lgps;
07-18 10:28:13.665 3151-3151/com.example.onur D/dalvikvm﹕ VFY: replacing opcode 0x22 at 0x0000
07-18 10:28:13.665 3151-3151/com.example.onur E/dalvikvm﹕ Could not find class 'gpr', referenced from method gps.a
07-18 10:28:13.665 3151-3151/com.example.onur W/dalvikvm﹕ VFY: unable to resolve new-instance 4090 (Lgpr;) in Lgps;
07-18 10:28:13.665 3151-3151/com.example.onur D/dalvikvm﹕ VFY: replacing opcode 0x22 at 0x0000
07-18 10:28:13.665 3151-3151/com.example.onur E/dalvikvm﹕ Could not find class 'gpr', referenced from method gps.a
07-18 10:28:13.665 3151-3151/com.example.onur W/dalvikvm﹕ VFY: unable to resolve new-instance 4090 (Lgpr;) in Lgps;
07-18 10:28:13.665 3151-3151/com.example.onur D/dalvikvm﹕ VFY: replacing opcode 0x22 at 0x0000
07-18 10:28:13.665 3151-3151/com.example.onur D/dalvikvm﹕ DexOpt: unable to opt direct call 0x5ea3 at 0x0a in Lgps;.a
07-18 10:28:13.665 3151-3151/com.example.onur D/dalvikvm﹕ DexOpt: unable to opt direct call 0x5ea3 at 0x0c in Lgps;.a
07-18 10:28:13.665 3151-3151/com.example.onur D/dalvikvm﹕ DexOpt: unable to opt direct call 0x5ea3 at 0x0a in Lgps;.a
07-18 10:28:13.685 3151-3151/com.example.onur I/Google Maps Android API﹕ Google Play services package version: 5084036
07-18 10:28:13.695 3151-3151/com.example.onur W/dalvikvm﹕ VFY: unable to resolve static field 20873 (t) in Lyp;
07-18 10:28:13.695 3151-3151/com.example.onur D/dalvikvm﹕ VFY: replacing opcode 0x62 at 0x000e
07-18 10:28:13.700 3151-3151/com.example.onur W/dalvikvm﹕ VFY: unable to resolve static field 20873 (t) in Lyp;
07-18 10:28:13.700 3151-3151/com.example.onur D/dalvikvm﹕ VFY: replacing opcode 0x62 at 0x000d
07-18 10:28:13.890 3151-3151/com.example.onur D/dalvikvm﹕ GC_FOR_ALLOC freed 502K, 15% free 9978K/11648K, paused 29ms, total 29ms
07-18 10:28:14.065 3151-3454/com.example.onur D/dalvikvm﹕ GC_FOR_ALLOC freed 313K, 14% free 10119K/11660K, paused 17ms, total 17ms
07-18 10:28:14.155 3151-3151/com.example.onur I/dalvikvm﹕ Failed resolving Lcom/google/android/gms/location/internal/ParcelableGeofence; interface 4023 'Lgln;'
07-18 10:28:14.155 3151-3151/com.example.onur W/dalvikvm﹕ Link of class 'Lcom/google/android/gms/location/internal/ParcelableGeofence;' failed
07-18 10:28:14.155 3151-3151/com.example.onur E/dalvikvm﹕ Could not find class 'com.google.android.gms.location.internal.ParcelableGeofence', referenced from method glt.a
07-18 10:28:14.155 3151-3151/com.example.onur W/dalvikvm﹕ VFY: unable to resolve check-cast 2086 (Lcom/google/android/gms/location/internal/ParcelableGeofence;) in Lglt;
[1]: http://wptrafficanalyzer.in/blog/android-searchview-widget-with-google-places-api-using-actionbarsherlock-library/
[2]: http://i.stack.imgur.com/R8fGG.jpg
您有沒有機會嘗試以下解決方案? – jQwierdy
對不起,我還沒有機會嘗試它。感謝您的回答。我很感激。當我嘗試過時,我會讓你知道。 – OnurY