title: MultiDexApplication and global class in the manifest xml
body: <p>My problem is that I have a global class, that have information about my app and I show in other activities,</p>
  
  <p>my <code>AndroidManifest.xml</code> was like this...</p>
  
  <pre><code>&lt;application
      android:name=".Global"      &lt;-------- global class
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/nobar"&gt;
   .
   .
  &lt;/application&gt;
  </code></pre>
  
  <p>but i have errors <code>java.lang.OutOfMemoryError: GC overhead limit exceeded</code> and <code>65k limit in dex</code> and i need to change it to...</p>
  
  <pre><code>&lt;application
      android:name="android.support.multidex.MultiDexApplication" &lt;--- changed
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/nobar"&gt;
   .
   .
  &lt;/application&gt;
  </code></pre>
  
  <p>this is my <code>build.gradle</code></p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
  
      packagingOptions {
          exclude 'META-INF/LICENSE'
          exclude 'META-INF/NOTICE'
      }
  
      compileSdkVersion 24
      buildToolsVersion "24.0.0"
      defaultConfig {
          applicationId "com.xx.xx"
          minSdkVersion 16
          targetSdkVersion 24
          versionCode 25
          versionName "1.0"
          // Enabling multidex support.
          multiDexEnabled true
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
          debug {
              signingConfig signingConfigs.xx
              debuggable false
          }
      }
      dexOptions {
          javaMaxHeapSize "4g"
      }
  }
  
  dependencies {
      compile 'com.android.support:appcompat-v7:24.1.1'
      compile 'com.google.android.gms:play-services:9.4.0'
      compile 'com.android.support:multidex:1.0.1'
      compile 'com.mcxiaoke.volley:library:1.0.19'
      compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
  
  }
  </code></pre>
  
  <p>but I need the global class to share information about activities...</p>
  
  <p>or there is another way to do this thing??</p>