'Android resource linking failed at `AndroidManifest.xml`

I was running my app to test it on AVD and I get an error.

It takes some time to build output, then the error comes out, the error is located at AndroidManifest.xml and the part of the error and error log is below!

AndroidManifest.xml

        <meta-data
            android:name="com.google.android.gms.ads.APPLICATION_ID"
            android:value="@string/AdAppID" />

Error

C:\Users\osedk\Desktop\muslim\Muslim-App\app\src\main\AndroidManifest.xml:67:9-69:47: AAPT: error: resource string/AdAppID (aka com.toolsandapps4us.muslimapp:string/AdAppID) not found.
    


Solution 1:[1]

The "@string/AdAppID" not defined in your string.xml You have need to define AdAppId --->

Google gave update for the Google ads so if you update your Admob library in gradle then you need to add this in your manifest -->

<manifest>
<application>
  <!-- TODO: Replace with your real AdMob app ID -->
  <meta-data
      android:name="com.google.android.gms.ads.APPLICATION_ID"
      android:value="ca-app-pub-################~##########"/>
</application>
</manifest>

Read the android official documentation

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Laxmi kant