Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android: Andorid Studio build not finding XML files #14125

Closed
1 task done
m1ga opened this issue Sep 28, 2024 · 1 comment · Fixed by #14136
Closed
1 task done

Android: Andorid Studio build not finding XML files #14125

m1ga opened this issue Sep 28, 2024 · 1 comment · Fixed by #14136
Labels
android bug needs triage This issue hasn't been reviewed by maintainers

Comments

@m1ga
Copy link
Contributor

m1ga commented Sep 28, 2024

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

  • I have searched the existing issues

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 😄

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

  • open titanium-sdk/android in Android Studio
  • ctrl + shift + N and open app.js
  • put the above code in there
  • click the "Play" button

Bildschirmfoto_20240928_143926

  • open logcat and look at the output

Bildschirmfoto_20240928_144001

Platform

Android

SDK version you are using

12.6.0 / master

Alloy version you are using

No response

@m1ga m1ga added bug needs triage This issue hasn't been reviewed by maintainers android labels Sep 28, 2024
@AbdullahFaqeir
Copy link
Contributor

I'll check this ASAP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android bug needs triage This issue hasn't been reviewed by maintainers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants