tidev / titanium-sdk

🚀 Native iOS and Android Apps with JavaScript
https://titaniumsdk.com/
Other
2.75k stars 1.21k forks source link

Android: Andorid Studio build not finding XML files #14125

Open m1ga opened 2 days ago

m1ga commented 2 days ago

I have searched and made sure there are no existing issues for the issue I am filing

Description

When trying to run the SDK app.js using Android Studio "play" it won't load any XML files e.g. themes. The error during build is: E Package [com.titanium.test] reported as REPLACED, but missing application info. Assuming REMOVED. and when the app runs W (main) [14,47] Cannot find the theme: Theme.Titanium.Material3.DayNight

It has todo with the gradle update so @AbdullahFaqeir you might know how to fix it right away :smile:

Expected Behavior

be able to use themes

Actual behavior

no XML themes are found

Reproducible sample

var win1 = Ti.UI.createWindow({});
var tf = Ti.UI.createTextField({ bottom: 0, width: Ti.UI.FILL, borderWidth: 1, borderColor: "yellow"})
var win2 = Ti.UI.createWindow({});
win1.add(tf);

var tab1 = Ti.UI.createTab({ window: win1, title: 'Blue' }),
    tab2 = Ti.UI.createTab({ window: win2, title: 'Red'}),
    tabGroup = Ti.UI.createTabGroup({ tabs: [tab1, tab2],
        theme: "Theme.Titanium.Material3.DayNight",
        style: Titanium.UI.Android.TABS_STYLE_BOTTOM_NAVIGATION
    });
tabGroup.open();

Steps to reproduce

Bildschirmfoto_20240928_143926

Bildschirmfoto_20240928_144001

Platform

Android

SDK version you are using

12.6.0 / master

Alloy version you are using

No response

AbdullahFaqeir commented 3 hours ago

I'll check this ASAP