From c6c04e8daaa2926e092af7b71c1336c1b2b9af21 Mon Sep 17 00:00:00 2001 From: Abhishek Srinivas Murthy Date: Wed, 4 Mar 2026 17:45:11 +0530 Subject: [PATCH] fix(expo-plugin): move android_initialisation_config.xml to res/xml/ Files in res/values/ must have as their root element. android_initialisation_config.xml uses as its root, causing the Android resource merger to fail with: Can't determine type for tag '...' The correct destination is res/xml/, which is designed for arbitrary XML files read at runtime and is not processed by the resource merger. Ref: https://developer.android.com/guide/topics/resources/providing-resources#table1 Ref: https://developer.android.com/guide/topics/resources/more-resources#Xml --- sdk/expo/src/android/constants.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sdk/expo/src/android/constants.ts b/sdk/expo/src/android/constants.ts index c17c9a9..544038e 100644 --- a/sdk/expo/src/android/constants.ts +++ b/sdk/expo/src/android/constants.ts @@ -45,7 +45,11 @@ export const moEngageExpoNotificationServiceEntry = { }; export const drawableResourcePath = './android/app/src/main/res/drawable'; -export const xmlValuesResourcePath = './android/app/src/main/res/values'; +// android_initialisation_config.xml uses as its root +// element, which is not a valid Android resource type. Files in res/values/ +// must use as their root. The correct directory is res/xml/, which +// accepts arbitrary XML and is not processed by the resource merger. +export const xmlValuesResourcePath = './android/app/src/main/res/xml'; export const googleFirebaseMessagingGroup = 'com.google.firebase'; export const googleFirebaseMessagingModule = 'firebase-messaging'; \ No newline at end of file