-
Couldn't load subscription status.
- Fork 561
Description
Android framework version
net10.0-android (Preview)
Affected platform version
VS: 18.0.0 Insiders [11018.127], .NET: 10.0.0-rc.1.25451.107
Description
I'm having problem with R.txt and generated resources. After switching to .NET my app sometime crashes on startup with exception:
android.content.res.Resources$NotFoundException: String resource ID #0x7f1000be at android.content.res.Resources.getText(Resources.java:466) at android.content.Context.getText(Context.java:933) at androidx.appcompat.widget.Toolbar.setNavigationContentDescription(Toolbar.java:1001) at crc64e02730b4d0e10e64.CustomShellRenderer_SectionRenderer.n_onCreateView(Native Method) at crc64e02730b4d0e10e64.CustomShellRenderer_SectionRenderer.onCreateView(CustomShellRenderer_SectionRenderer.java:36) ...
I figured out that R.txt is changing and sometimes there is:
int string nav_app_bar_navigate_up_description 0x7f1000bd
but other times:
int string nav_app_bar_navigate_up_description 0x7f1100bd
In related R.java value is constant:
public static final int nav_app_bar_navigate_up_description = 0x7f1100bd;
When I remove obj directory and build app from console using
dotnet build -t:Run -p:Configuration=Debug -f net10.0-android -p:AdbTarget=-s%20emulator-5554 everything is working but as soon as I open some sort of IDE (I tried VS, VSCode on Windows and Rider on MacOS) R.txt id updated with wrong value. I've also observed that R.txt is changing few times during IDE build changing value of nav_app_bar_navigate_up_description.
Steps to Reproduce
Build MAUI project for Android in IDE.
Did you find any workaround?
No response