Error AAPT: error: unexpected element <property> found in <manifest><application> when add Admod sdk

8,161 views
Skip to first unread message

hai do

unread,
Oct 17, 2023, 11:58:31 AM10/17/23
to Google Mobile Ads SDK Developers
Hi there.

I am using android admod sdk 22.4.0, when i run app, app not run and have an error : AAPT: error: unexpected element <property> found in <manifest><application>.

I have tried to find a solution online but to no avail. I want to ask how to fix this error so i can deploy ads on my application.

Below are the files in my application

build.gradle:
gradle.png
Manifest:
manifest.png
Activity:
activity.png

Thank you!

Mobile Ads SDK Forum Advisor

unread,
Oct 17, 2023, 2:14:12 PM10/17/23
to bigt...@gmail.com, google-adm...@googlegroups.com

Hi, 

Thank you for contacting the Mobile Ads SDK support team.

By reviewing your concern, I understand that you are facing an “unexpected element <property> found in <manifest>” error while implementing the Mobile Ads SDK in your android application.it appears that the issue is nothing related to Mobile Ads SDK. Can you please confirm whether you are able to reproduce the same error in google sample project.

 
This message is in relation to case "ref:!00D1U01174p.!5004Q02pTvD3:ref"

Thanks,
 
Google Logo Mobile Ads SDK Team


Potato Play

unread,
Oct 20, 2023, 5:30:39 AM10/20/23
to Google Mobile Ads SDK Developers
I also encountered the same problem here.
What I use is:
implementation 'com.google.android.gms:play-services-ads:22.4.0'

I checked the SDK and found that play-services-ads:22.4.0 depends on play-services-ads-lite:22.4.0, and play-services-ads-lite:22.4.0 is relative to play-services-ads-lite :22.3.0, added in the AndroidManifest.xml file:
         <property
             android:name="android.adservices.AD_SERVICES_CONFIG"
             android:resource="@xml/gma_ad_services_config" />

"property" cannot be recognized in lower versions of gradle plugin (for example: com.android.tools.build:gradle:4.0.2), so an error is reported.

Due to project reasons, we cannot upgrade the gradle plugin version.

So the question now is is com.google.android.gms:play-services-ads-lite:22.4.0 maintained by you? How to solve this problem?

Mobile Ads SDK Forum Advisor

unread,
Oct 20, 2023, 8:26:40 AM10/20/23
to potato...@gmail.com, google-adm...@googlegroups.com

Hi,

Thank you for getting back to us.

Upon reviewing your concern you are facing an issue with dependencies. Please follow the below steps:

To integrate Google Mobile Ads SDK to add the below dependency

dependencies

{

 implementation 'com.google.android.gms:play-services-ads:22.4.0'

}

Please follow this link for a sample project.

To integrate Google Mobile Ads Lite SDK to add the below dependency

dependencies

{
    implementation 'com.google.android.gms:play-services-ads-lite:22.4.0'

}

The Google Mobile Ads Lite SDK is a lightweight version of the Google Mobile Ads SDK, using the Lite SDK decreases the total number of methods referenced in an app.

Please reach out to us, if you need any further assistance.
 

Juan BLASCO

unread,
Oct 23, 2023, 5:40:05 AM10/23/23
to Google Mobile Ads SDK Developers
Would it be possible to add this dependency override on Unity projects? we are bonded to the gradle plugin version 4.0.1
Reply all
Reply to author
Forward
0 new messages