Fixing xml/gma_ad_services_config Resource Not Found Error in play-services-ads:24.0.0 Upgrade
Автор: vlogommentary
Загружено: 2025-12-22
Просмотров: 2
Описание:
Learn how to resolve the build error caused by missing xml/gma_ad_services_config resource after upgrading to play-services-ads 24.0.0 in Android projects.
---
This video is based on the question https://stackoverflow.com/q/79469231/ asked by the user 'Binh Ho' ( https://stackoverflow.com/u/9585130/ ) and on the answer https://stackoverflow.com/a/79470795/ provided by the user 'Tomica Crnek' ( https://stackoverflow.com/u/5369416/ ) at 'Stack Overflow' website. Thanks to these great users and Stackexchange community for their contributions.
Visit these links for original content and any more details, such as alternate solutions, latest updates/developments on topic, comments, revision history etc. For example, the original title of the Question was: play-services-ads:24.0.0 resource xml/gma_ad_services_config not found
Also, Content (except music) licensed under CC BY-SA https://meta.stackexchange.com/help/l...
The original Question post is licensed under the 'CC BY-SA 4.0' ( https://creativecommons.org/licenses/... ) license, and the original Answer post is licensed under the 'CC BY-SA 4.0' ( https://creativecommons.org/licenses/... ) license.
If anything seems off to you, please feel free to drop me a comment under this video.
---
Introduction
Upgrading the Google Mobile Ads SDK (play-services-ads) to version 24.0.0 may cause a build error where the resource xml/gma_ad_services_config cannot be found. This issue typically appears if your AndroidManifest.xml still references this obsolete config.
The Problem
After changing your dependency from:
[[See Video to Reveal this Text or Code Snippet]]
to
[[See Video to Reveal this Text or Code Snippet]]
you might see an error like:
[[See Video to Reveal this Text or Code Snippet]]
This happens because the newer version has changed internal configurations and no longer requires or supports the gma_ad_services_config XML file referenced in the manifest.
The Solution
Remove or comment out the manifest entry referencing gma_ad_services_config.
Locate this block in your AndroidManifest.xml:
[[See Video to Reveal this Text or Code Snippet]]
If it’s uncommented, comment it out or remove it completely to eliminate the missing resource reference.
Update your build.gradle to use Play Services Ads 24.0.0.
[[See Video to Reveal this Text or Code Snippet]]
Sync and rebuild your project.
This will remove the reference that triggers the error and align your project with the updated library.
Why This Works
The Play Services Ads SDK version 24.0.0 has internal changes where the gma_ad_services_config resource is no longer provided or needed explicitly by developers. Removing custom references prevents build tools from looking for a resource that no longer exists.
Summary
When upgrading to play-services-ads:24.0.0, remove any <property> entries in your manifest related to gma_ad_services_config.
Ensure your Gradle dependency is updated.
Sync and rebuild the project to resolve the missing resource error.
This small change keeps your project compatible with the latest SDK improvements and avoids build issues.
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: