title: Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider: java.lang.IllegalStateException
body: <p>I update my Android Studio (3.2.1) and its sdk to the latest version. After that it required a manual update for Manifest by adding these tags:</p>
  
  <pre><code>&lt;application
      android:allowBackup="true"
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name"
      android:roundIcon="@drawable/ic_launcher"
      android:supportsRtl="true"
      android:theme="@style/AppTheme"
      tools:ignore="AllowBackup,GoogleAppIndexingWarning"&gt;
  
      &lt;meta-data
          android:name="com.google.android.gms.ads.APP_ID"
          android:value="ca-app-pub-#############"/&gt;
  
      &lt;activity android:name=".MainActivity"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity android:name=".NewActivity" /&gt;
      &lt;activity android:name=".PreviewActivity" /&gt;
      &lt;activity android:name=".EditActivity" /&gt;
      &lt;activity
          android:name=".preferencesdata.AboutActivity"
          android:theme="@style/Theme.AppCompat.DayNight.NoActionBar" /&gt;
      &lt;activity android:name=".preferencesdata.SettingsActivity"
          android:label="@string/settings"&gt;
          &lt;meta-data
              android:name="android.support.PARENT_ACTIVITY"
              android:value=".MainActivity"/&gt;
      &lt;/activity&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p>whereby instead the app ID I put the real id of my app. The value has also been changed to the right Ad Unit id as shown here <a href="https://developers.google.com/admob/android/quick-start" rel="noreferrer">https://developers.google.com/admob/android/quick-start</a>. I also called this function in the MainActivity.kt:</p>
  
  <pre><code>MobileAds.initialize(this, resources.getString(R.string.banner_ad_unit_id)) 
  </code></pre>
  
  <p>However, the problem could not be solved. It still prints as follows: </p>
  
  <pre><code>E/AndroidRuntime: FATAL EXCEPTION: main
      Process: com.easyapps.cryptnote, PID: 3991
      java.lang.RuntimeException: Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider: java.lang.IllegalStateException: 
  
      ******************************************************************************
      * The Google Mobile Ads SDK was initialized incorrectly. AdMob publishers    *
      * should follow the instructions LINK to add a valid  *
      * App ID inside the AndroidManifest. Google Ad Manager publishers should     *
      * follow instructions here: LINK.                           *
      ******************************************************************************
  
  
          at android.app.ActivityThread.installProvider(ActivityThread.java:5156)
          at android.app.ActivityThread.installContentProviders(ActivityThread.java:4748)
          at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4688)
          at android.app.ActivityThread.-wrap1(ActivityThread.java)
          at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405)
          at android.os.Handler.dispatchMessage(Handler.java:102)
          at android.os.Looper.loop(Looper.java:148)
          at android.app.ActivityThread.main(ActivityThread.java:5417)
          at java.lang.reflect.Method.invoke(Native Method)
          at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
       Caused by: java.lang.IllegalStateException: 
  
      ******************************************************************************
      * The Google Mobile Ads SDK was initialized incorrectly. AdMob publishers    *
      * should follow the instructions here: LINK to add a valid  *
      * App ID inside the AndroidManifest. Google Ad Manager publishers should     *
      * follow instructions here: LINK.                           *
      ******************************************************************************
  
  
          at com.google.android.gms.internal.ads.zzmn.attachInfo(Unknown Source)
          at com.google.android.gms.ads.MobileAdsInitProvider.attachInfo(Unknown Source)
          at android.app.ActivityThread.installProvider(ActivityThread.java:5153)
              ... 10 more
  </code></pre>
  
  <p>Could someone tel me why it does happen or help me to solve it? I tried to google the issue, but there are no solutions. It seems to be an a new still unsolved issue. Many thanks in advance.</p>