From 8d963ab7b553effc7b5853c9fe9f4fe8aab7e381 Mon Sep 17 00:00:00 2001 From: ifedan-ed Date: Sun, 29 Mar 2026 10:47:27 +0000 Subject: [PATCH] Fix Android crash: use resource references for TWA colors instead of inline hex MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The TWA LauncherActivity crashed with Resources$NotFoundException (0xffffffff) because android:value with hex color strings is not supported by androidbrowserhelper — it expects android:resource pointing to color resources. - Created res/values/colors.xml with all app colors - Changed AndroidManifest.xml to use android:resource="@color/..." - Updated styles.xml to reference color resources --- android/app/src/main/AndroidManifest.xml | 6 +++--- android/app/src/main/res/values/colors.xml | 8 ++++++++ android/app/src/main/res/values/styles.xml | 10 +++++----- 3 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 android/app/src/main/res/values/colors.xml diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 312d428..8ea6124 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -32,11 +32,11 @@ + android:resource="@color/colorStatusBar" /> + android:resource="@color/colorNavigationBar" /> + android:resource="@color/colorSplashBackground" /> + + #2563EB + #1E40AF + #2563EB + #1E40AF + #FFFFFF + diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml index c551a03..8423d73 100644 --- a/android/app/src/main/res/values/styles.xml +++ b/android/app/src/main/res/values/styles.xml @@ -1,10 +1,10 @@