Fix Namespace ‘ads’ not bound in Android Studio Xml Java

Here is how to Fix Namespace ‘ads’ not bound in Android Studio

This error is commonly appeared in the xml of your activity while you trying to add google ads or admob into your android app to earn a revenue

It is easy to fix it, just add the following lines of code in the start of your xml layout, you should add this code in the top of the xml declaration

Here is the code to fix ads namespace:

xmlns:ads="http://schemas.android.com/apk/res-auto"

Here is an example



Replace the code above red line with the code i provided

Post navigation

Comments

This site uses Akismet to reduce spam. Learn how your comment data is processed.