3

I am attempting to use Google Maps v2 with my android application. I currently have Google Play Services as a library project. I am using Android Studio v0.2.6 with Gradle 1.7.

build.gradle

compileSdkVersion "Google Inc.:Google APIs:17"
    buildToolsVersion "17"

    defaultConfig {
        minSdkVersion 9
        targetSdkVersion 17
    }

settings.gradle

... ':google-play-services_lib'

It installs fine on an Android 4.1(HTC One X) device but then if I attempt to install this on a device running Android 2.3(HTC Sensation, Samsung Galaxy S) I receive the following error:

Failure [INSTALL_FAILED_DEXOPT]

08-27 16:55:33.680    2582-2582/? D/installd: DexInv: --- BEGIN '/data/app/nz.co.nuffie.android.crichq-2.apk' ---
08-27 16:55:34.025  32680-32680/? D/dalvikvm: creating instr width table
08-27 16:55:34.350  32680-32680/? D/dalvikvm: DexOpt: 'Landroid/media/Metadata;' has an earlier definition; blocking out
08-27 16:55:34.550  32680-32680/? D/dalvikvm: DexOpt: not verifying 'Landroid/media/Metadata;': multiple definitions
08-27 16:55:34.795  32680-32680/? D/dalvikvm: DexOpt: couldn't find static field
08-27 16:55:34.795  32680-32680/? D/dalvikvm: DexOpt: couldn't find static field
08-27 16:55:34.990  32680-32680/? D/dalvikvm: DexOpt: couldn't find field Landroid/content/res/Configuration;.smallestScreenWidthDp
08-27 16:55:35.540  32680-32680/? E/dalvikvm: LinearAlloc exceeded capacity (5242880), last=260
08-27 16:55:35.540  32680-32680/? E/dalvikvm: VM aborting
08-27 16:55:35.639    2574-2574/? I/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
08-27 16:55:35.639    2574-2574/? I/DEBUG: Build fingerprint: 'samsung/GT-I9100T/GT-I9100T:2.3.3/GINGERBREAD/DOKH1:user/release-keys'
08-27 16:55:35.639    2574-2574/? I/DEBUG: pid: 32680, tid: 32680  >>> /system/bin/dexopt <<<
08-27 16:55:35.639    2574-2574/? I/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadd00d
08-27 16:55:35.639    2574-2574/? I/DEBUG: r0 fffffe84  r1 deadd00d  r2 00000026  r3 00000000
08-27 16:55:35.639    2574-2574/? I/DEBUG: r4 800a560c  r5 004ffff4  r6 005000fc  r7 0001b02c
08-27 16:55:35.639    2574-2574/? I/DEBUG: r8 00000104  r9 00000005  10 00000009  fp 000020f1
08-27 16:55:35.639    2574-2574/? I/DEBUG: ip 800a5718  sp be80b6f0  lr afd19471  pc 80046360  cpsr 20000030
08-27 16:55:35.639    2574-2574/? I/DEBUG: d0  0000000000000000  d1  0000000000000000
08-27 16:55:35.639    2574-2574/? I/DEBUG: d2  0000000000000000  d3  0000000000000000
08-27 16:55:35.639    2574-2574/? I/DEBUG: d4  0000000000000000  d5  0000000000000000
08-27 16:55:35.639    2574-2574/? I/DEBUG: d6  0000000000000000  d7  0000000000000000
08-27 16:55:35.639    2574-2574/? I/DEBUG: d8  00000e4005a5b5ba  d9  0000000000000000
08-27 16:55:35.639    2574-2574/? I/DEBUG: d10 0000000000000000  d11 0000000000000000
08-27 16:55:35.639    2574-2574/? I/DEBUG: d12 0000000000000000  d13 0000000000000000
08-27 16:55:35.639    2574-2574/? I/DEBUG: d14 0000000000000000  d15 0000000000000000
08-27 16:55:35.639    2574-2574/? I/DEBUG: d16 0000000000000000  d17 0000000000000000
08-27 16:55:35.639    2574-2574/? I/DEBUG: d18 0000000000000000  d19 0000000000000000
08-27 16:55:35.639    2574-2574/? I/DEBUG: d20 0000000000000000  d21 0000000000000000
08-27 16:55:35.639    2574-2574/? I/DEBUG: d22 0000000000000000  d23 0000000000000000
08-27 16:55:35.639    2574-2574/? I/DEBUG: d24 0000000000000000  d25 0000000000000000
08-27 16:55:35.639    2574-2574/? I/DEBUG: d26 0000000000000000  d27 0000000000000000
08-27 16:55:35.639    2574-2574/? I/DEBUG: d28 0000000000000000  d29 0000000000000000
08-27 16:55:35.639    2574-2574/? I/DEBUG: d30 0000000000000000  d31 0000000000000000
08-27 16:55:35.639    2574-2574/? I/DEBUG: scr 00000000
08-27 16:55:35.655    2574-2574/? I/DEBUG: #00  pc 00046360  /system/lib/libdvm.so
08-27 16:55:35.655    2574-2574/? I/DEBUG: #01  pc 0004e602  /system/lib/libdvm.so
08-27 16:55:35.655    2574-2574/? I/DEBUG: #02  pc 0006adb6  /system/lib/libdvm.so
08-27 16:55:35.655    2574-2574/? I/DEBUG: #03  pc 0006b074  /system/lib/libdvm.so
08-27 16:55:35.655    2574-2574/? I/DEBUG: #04  pc 0006b8a0  /system/lib/libdvm.so
08-27 16:55:35.655    2574-2574/? I/DEBUG: #05  pc 0006bae2  /system/lib/libdvm.so
08-27 16:55:35.655    2574-2574/? I/DEBUG: #06  pc 0006b322  /system/lib/libdvm.so
08-27 16:55:35.655    2574-2574/? I/DEBUG: #07  pc 000576f8  /system/lib/libdvm.so
08-27 16:55:35.655    2574-2574/? I/DEBUG: #08  pc 00057a24  /system/lib/libdvm.so
08-27 16:55:35.655    2574-2574/? I/DEBUG: #09  pc 0005ab48  /system/lib/libdvm.so
08-27 16:55:35.660    2574-2574/? I/DEBUG: #10  pc 0005b522  /system/lib/libdvm.so
08-27 16:55:35.660    2574-2574/? I/DEBUG: #11  pc 0005b75e  /system/lib/libdvm.so
08-27 16:55:35.660    2574-2574/? I/DEBUG: #12  pc 0005d130  /system/lib/libdvm.so
08-27 16:55:35.660    2574-2574/? I/DEBUG: #13  pc 0005d182  /system/lib/libdvm.so
08-27 16:55:35.660    2574-2574/? I/DEBUG: #14  pc 0005bfae  /system/lib/libdvm.so
08-27 16:55:35.660    2574-2574/? I/DEBUG: #15  pc 0005c05c  /system/lib/libdvm.so
08-27 16:55:35.660    2574-2574/? I/DEBUG: #16  pc 0005c160  /system/lib/libdvm.so
08-27 16:55:35.660    2574-2574/? I/DEBUG: code around pc:
08-27 16:55:35.660    2574-2574/? I/DEBUG: 80046340 447a4479 f7d14c0b 2000e926 ea2af7d1
08-27 16:55:35.660    2574-2574/? I/DEBUG: 80046350 447c4809 6bdb5823 4798b103 22264902
08-27 16:55:35.660    2574-2574/? I/DEBUG: 80046360 f7d1700a bf00ea92 deadd00d 00043ab3
08-27 16:55:35.660    2574-2574/? I/DEBUG: 80046370 00045671 0005f2b6 fffffe84 4b09b40e
08-27 16:55:35.660    2574-2574/? I/DEBUG: 80046380 4c09b517 aa05447b f852591b 6b5b1b04
08-27 16:55:35.660    2574-2574/? I/DEBUG: code around lr:
08-27 16:55:35.660    2574-2574/? I/DEBUG: afd19450 4a0e4b0d e92d447b 589c41f0 26004680
08-27 16:55:35.660    2574-2574/? I/DEBUG: afd19460 686768a5 f9b5e006 b113300c 47c04628
08-27 16:55:35.660    2574-2574/? I/DEBUG: afd19470 35544306 37fff117 6824d5f5 d1ef2c00
08-27 16:55:35.660    2574-2574/? I/DEBUG: afd19480 e8bd4630 bf0081f0 000280cc ffffff88
08-27 16:55:35.660    2574-2574/? I/DEBUG: afd19490 b086b570 f602fb01 9004460c a804a901
08-27 16:55:35.660    2574-2574/? I/DEBUG: stack:
08-27 16:55:35.660    2574-2574/? I/DEBUG: be80b6b0  4004c280
08-27 16:55:35.660    2574-2574/? I/DEBUG: be80b6b4  401d5150
08-27 16:55:35.660    2574-2574/? I/DEBUG: be80b6b8  800ab1b0
08-27 16:55:35.660    2574-2574/? I/DEBUG: be80b6bc  800a560c
08-27 16:55:35.660    2574-2574/? I/DEBUG: be80b6c0  afd4272c
08-27 16:55:35.660    2574-2574/? I/DEBUG: be80b6c4  afd426d8
08-27 16:55:35.660    2574-2574/? I/DEBUG: be80b6c8  00000000
08-27 16:55:35.660    2574-2574/? I/DEBUG: be80b6cc  afd19471  /system/lib/libc.so
08-27 16:55:35.660    2574-2574/? I/DEBUG: be80b6d0  0005f2b6
08-27 16:55:35.660    2574-2574/? I/DEBUG: be80b6d4  004ffff4
08-27 16:55:35.660    2574-2574/? I/DEBUG: be80b6d8  005000fc
08-27 16:55:35.660    2574-2574/? I/DEBUG: be80b6dc  0001b02c
08-27 16:55:35.660    2574-2574/? I/DEBUG: be80b6e0  00000104
08-27 16:55:35.660    2574-2574/? I/DEBUG: be80b6e4  afd18569  /system/lib/libc.so
08-27 16:55:35.660    2574-2574/? I/DEBUG: be80b6e8  df002777
08-27 16:55:35.660    2574-2574/? I/DEBUG: be80b6ec  e3a070ad
08-27 16:55:35.660    2574-2574/? I/DEBUG: #00 be80b6f0  0001b028
08-27 16:55:35.660    2574-2574/? I/DEBUG: be80b6f4  8004e607  /system/lib/libdvm.so
08-27 16:55:35.660    2574-2574/? I/DEBUG: #01 be80b6f8  00000104
08-27 16:55:35.660    2574-2574/? I/DEBUG: be80b6fc  00000104
08-27 16:55:35.660    2574-2574/? I/DEBUG: be80b700  419d9139
08-27 16:55:35.660    2574-2574/? I/DEBUG: be80b704  401d5150
08-27 16:55:35.660    2574-2574/? I/DEBUG: be80b708  0001faf0
08-27 16:55:35.660    2574-2574/? I/DEBUG: be80b70c  41676e0c
08-27 16:55:35.660    2574-2574/? I/DEBUG: be80b710  00000000
08-27 16:55:35.660    2574-2574/? I/DEBUG: be80b714  00000005
08-27 16:55:35.660    2574-2574/? I/DEBUG: be80b718  00000009
08-27 16:55:35.660    2574-2574/? I/DEBUG: be80b71c  8006adbb  /system/lib/libdvm.so
08-27 16:55:35.670    2574-2574/? I/DEBUG: dumpstate /data/log/dumpstate_app_native.txt
08-27 16:55:35.675  32682-32682/? I/dumpstate: begin
08-27 16:55:35.675    2696-2699/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.680    2696-2699/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.680    2810-2817/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.685    2810-2817/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.685    2835-2840/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.685    2835-2840/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.685    2842-2849/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.685    2842-2849/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.685    2844-2857/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.685    2844-2857/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.685    2855-2872/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.690    2855-2872/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.690    2859-2871/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.690    2859-2871/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.690    2874-2886/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.690    2874-2886/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.690    2888-2892/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.690    2888-2892/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.690    2902-2906/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.695    2902-2906/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.695    2965-2968/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.695    2965-2968/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.695    3171-3174/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.700    3171-3174/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.700    3489-3492/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.700    3489-3492/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.700    3574-3578/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.700    3574-3578/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.700    3656-3659/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.700    3656-3659/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.700    3663-3666/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.705    3663-3666/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.705    4011-4014/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.705    4011-4014/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.705    4080-4083/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.705    4080-4083/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.705  16502-16505/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.710  16502-16505/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.710  25030-25033/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.710  25030-25033/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.710  25049-25052/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.715  25049-25052/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.715  25123-25126/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.725  25123-25126/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.725  25762-25765/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.725  25762-25765/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.725  26592-26595/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.725  26592-26595/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.725  26899-26902/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.725  26899-26902/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.725  26973-26976/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.725  26973-26976/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.725  27343-27346/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.725  27343-27346/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.725  27410-27413/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.725  27410-27413/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.725  30078-30082/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.730  30078-30082/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.730  30087-30090/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.730  30087-30090/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.730  30094-30097/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.730  30094-30097/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.730  30461-30464/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.735  30461-30464/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.735  30620-30623/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.735  30620-30623/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.735  30889-30892/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.735  30889-30892/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.735  31004-31007/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.735  31004-31007/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.735  31109-31112/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.735  31109-31112/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.735  31732-31735/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.740  31732-31735/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.740  32024-32027/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.740  32024-32027/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.740  32031-32034/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.740  32031-32034/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.740  32040-32043/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.740  32040-32043/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.740  32126-32129/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.745  32126-32129/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.745  32187-32190/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.745  32187-32190/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.745  32633-32636/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.745  32633-32636/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:35.745  32671-32674/? I/dalvikvm: threadid=4: reacting to signal 3
08-27 16:55:35.750  32671-32674/? I/dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
08-27 16:55:39.140    2571-2653/? D/VoldCmdListener: asec list
08-27 16:55:39.150    2696-2735/? W/ProcessStats: Skipping unknown process pid 32691
08-27 16:55:39.165  31732-31732/? D/dalvikvm: GC_EXPLICIT freed 7K, 53% free 2531K/5379K, external 0K/0K, paused 22ms
08-27 16:55:40.895  32682-32682/? I/dumpstate: done
08-27 16:55:40.980    2582-2582/? W/installd: DexInv: --- END '/data/app/nz.co.nuffie.android.crichq-2.apk' --- status=0x000b, process failed
08-27 16:55:40.980    2582-2582/? E/installd: dexopt failed on '/data/dalvik-cache/data@app@nz.co.nuffie.android.crichq-2.apk@classes.dex' res = 11

My application is using Action Bar Sherlock and SupportMapFragment.

Activity

import com.google.android.gms.maps.SupportMapFragment;

public class MyActivity extends SherlockFragmentActivity

...

private void setUpMapIfNeeded() {
    // Try to obtain the map from the SupportMapFragment.
    googleMap = ((SupportMapFragment)   getSupportFragmentManager().findFragmentById(R.id.map)).getMap();
    // Check if we were successful in obtaining the map.
    if (googleMap != null) {
        setUpMap();
    }
}

Has anyone solved this problem or have any information on what is causing this error or what it means?

Morepork
  • 227
  • 3
  • 16
  • You have problem with installing the app or running the app on 2.3? – Varun Aug 29 '13 at 22:18
  • This error occurs when attempting to install the application on a 2.3 device. I have added the devices used to the question. – Morepork Aug 29 '13 at 22:35
  • how about you compile the apk and install it separately via adb. can you try that. – Varun Aug 29 '13 at 22:37
  • Android Studio uses adb to install the application to devices so this shouldn't make a difference. However I also tried installing via terminal with adb. I received the same error INSTALL_FAILED_DEXOPT. – Morepork Aug 30 '13 at 00:01

4 Answers4

1

You should use SupportMapFragment from a FragmentActivity, instead of MapFragment from an Activity. Using v4 support lib of course.

EDIT:

Found this that could be the same problem: Dalvikvm crashes with "LinearAlloc exceeded capacity" when running unit tests on emulator 1.6

Community
  • 1
  • 1
prc
  • 860
  • 7
  • 16
  • I am using SupportMapFragment from the v4 support library. Updated question. – Morepork Aug 29 '13 at 23:24
  • Why the down vote? You just said that you're using that now after your edit of the question... Good luck then... – prc Aug 29 '13 at 23:34
1

This usually happens when you use a method or a field which is available only on the higher Android SDK version but not in the lower Android SDK versions. So for the warning you are getting:

'DexOpt: couldn't find field Landroid/content/res/Configuration;.smallestScreenWidthDp'

Please check if the field 'smallestScreenWidthDp' is available in Android 2.3 SDK for the class Configuration

saxash
  • 11
  • 1
0

It maybe because of this issue: Include Http-4.2.1 with Android App

This has a similar issue: https://jira.springsource.org/browse/ANDROID-14

Which I found searching around with these lines in your log:

dalvikvm: DexOpt: has an earlier definition; blocking out dalvikvm: DexOpt: not verifying multiple definitions

Looks like there could be a conflict. Conflict with "Landroid/content/res/Configuration" or "Landroid/media/Metadata".

But if this is the case, I have no idea why it would only cause a problem with 2.1 and not 4.0+. Well unless they removed a library from core Android, which I see they do that from reading the 2nd link.

Edit:

This one has a similar error in its log: "DexOpt: couldn't find field Landroid/content/res/Configuration;.smallestScreenWidthDp"

Problem was that the map api key was wrong.

Google Maps Android v2 Authorization failure

Otherwise: "LinearAlloc exceeded capacity (5242880), last=260"

http://birbit.com/how-to-solve-linearalloc-problem/

Community
  • 1
  • 1
Daniel Ryan
  • 6,976
  • 5
  • 45
  • 62
  • I've removed the MetaData.jar library from my project and it did remove those related lines in the logcat. But still fails and "DexOpt: couldn't find static field" remains. – Morepork Aug 30 '13 at 04:20
0

I would recommend adding the following dependency to dependences inside your build.gradle file

dependencies {
    // Google Play Services
    compile 'com.google.android.gms:play-services:3.2.25'
jaykhopale
  • 21
  • 2