Opening a project with <Android> and <Mobile> tags in the project file, removes the tags

This is removed from the project file when opening the project:

<Copyright>Copyright (C) 2014</Copyright>
<Description>Test</Description>
<Icon>Assets/Icon.png</Icon>
<Publisher>Test</Publisher>
<Title>Test</Title>
<Version>2.1.0.0</Version>
<VersionCount>11</VersionCount>
<Android>
    <ApplicationLabel>Test</ApplicationLabel>
    <Description>$(Description)</Description>
    <Package>com.$(RootNamespace)</Package>
    <VersionCode>11</VersionCode>
    <VersionName>$(Version)</VersionName>
    <Icons>
        <HDPI>$(Icon)</HDPI>
        <LDPI>$(Icon)</LDPI>
        <MDPI>$(Icon)</MDPI>
        <XHDPI>$(Icon)</XHDPI>
        <XXHDPI>$(Icon)</XXHDPI>
        <XXXHDPI>$(Icon)</XXXHDPI>
    </Icons>
    <Key>
        ....
    </Key>
</Android>
<HTML>
    <Favicon>$(Icon)</Favicon>
    <Title>$(Title)</Title>
</HTML>
<iOS>
    <Icons>
        <iPad_29_1x>$(Icon)</iPad_29_1x>
        <iPad_29_2x>$(Icon)</iPad_29_2x>
        <iPad_40_1x>$(Icon)</iPad_40_1x>
        <iPad_40_2x>$(Icon)</iPad_40_2x>
        <iPad_50_1x>$(Icon)</iPad_50_1x>
        <iPad_50_2x>$(Icon)</iPad_50_2x>
        <iPad_72_1x>$(Icon)</iPad_72_1x>
        <iPad_72_2x>$(Icon)</iPad_72_2x>
        <iPad_76_1x>$(Icon)</iPad_76_1x>
        <iPad_76_2x>$(Icon)</iPad_76_2x>
        <iPhone_29_1x>$(Icon)</iPhone_29_1x>
        <iPhone_29_2x>$(Icon)</iPhone_29_2x>
        <iPhone_40_2x>$(Icon)</iPhone_40_2x>
        <iPhone_57_1x>$(Icon)</iPhone_57_1x>
        <iPhone_57_2x>$(Icon)</iPhone_57_2x>
        <iPhone_60_2x>$(Icon)</iPhone_60_2x>
    </Icons>
    <LaunchImages>
        <iPad_Landscape_1x>Assets/LaunchImage.png</iPad_Landscape_1x>
        <iPad_Landscape_2x>Assets/LaunchImage.png</iPad_Landscape_2x>
        <iPad_Portrait_1x>Assets/LaunchImage.png</iPad_Portrait_1x>
        <iPad_Portrait_2x>Assets/LaunchImage.png</iPad_Portrait_2x>
        <iPhone_Portrait_2x>Assets/LaunchImage.png</iPhone_Portrait_2x>
        <iPhone_Portrait_R4>Assets/LaunchImage.png</iPhone_Portrait_R4>
    </LaunchImages>
</iOS>
<Mobile>
    <KeepAlive>False</KeepAlive>
    <Orientations>Portrait</Orientations>
    <RunsInBackground>True</RunsInBackground>
    <ShowStatusbar>True</ShowStatusbar>
</Mobile>

It only keeps the rootnamespace, References and Files tags

This makes it impossible for me to sign the apk, as the keystore is removed when opening the project, any ideas??

That definitely sounds like a bug, I’ll have a look.

Which version of Fuse is this, and on which platform? Does it happen right when you open the project, or when you preview/export?

Never mind, I have reproduced it both on OSX and Windows now.

We have a ticket for this now, but I don’t think we will manage to get a fix out before the weekend.

A somewhat cumbersome workaround in the mean time is:

  • Make a copy of your project.unoproj to project.original
  • Work as normal in Fuse
  • When you want to deploy your app
    • Copy project.original to project.unoproj
    • Build from the command line: uno build --target=android

Not the most pleasant workflow, but unfortunately that’s the best we can do until the bug is fixed.

Thanks! Not too cumbersome, just happy I can build to android again :slight_smile: