java.lang.ExceptionInInitializerError in fragment
<p>In my application I am trying to use google map v2. It is work fine when there is installed google play services. But if there is no installed in my device google play services I have this error </p>

<pre><code>04----18 17:32:19.922: ERROR/AndroidRuntime(10286): Uncaught handler: thread main exiting due to uncaught exception
04-18 17:32:19.927: ERROR/AndroidRuntime(10286): java.lang.ExceptionInInitializerError
        at com.google.android.gms.internal.o.c(Unknown Source)
        at com.google.android.gms.internal.o.a(Unknown Source)
        at com.google.android.gms.maps.MapsInitializer.initialize(Unknown Source)
        at com.example.androidmapsv2.MainActivity.onCreate(MainActivity.java:36)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
        at android.app.ActivityThread.access$2200(ActivityThread.java:119)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:123)
        at android.app.ActivityThread.main(ActivityThread.java:4363)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:521)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:862)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
        at dalvik.system.NativeStart.main(Native Method)
        Caused by: java.lang.NoClassDefFoundError: android.util.Base64
        at com.google.android.gms.common.GooglePlayServicesUtil.&lt;clinit&gt;(Unknown Source)
        ... 17 more 
</code></pre>

<p>This is my code</p>

<pre><code>@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        try {
            MapsInitializer.initialize(this /*the context*/);
        } catch (GooglePlayServicesNotAvailableException e) {
            e.printStackTrace();

        }
        setContentView(R.layout.activity_main);
</code></pre>

<p>activity_main.xml</p>

<pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context=".MainActivity" &gt;

    &lt;TextView
        android:id="@+id/locinfo"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"/&gt;
    &lt;fragment
        android:id="@+id/map"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        class="com.google.android.gms.maps.SupportMapFragment"/&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p>I couldn't find out any solution in here. Any help please</p>
