unoplatform / uno.resizetizer

The home for Uno.Resizetizer, an image resizting tooling for Uno Platform apps
https://platform.uno
Other
15 stars 6 forks source link

Splash android incremental builds are failing #254

Closed jeromelaban closed 1 month ago

jeromelaban commented 2 months ago

Current behavior

From https://github.com/unoplatform/uno/discussions/16417:

1>C:\Test\Uno52\Uno52\obj\Debug\net8.0-android\unoresizetizer\sp\drawable\uno_splash_image.xml(2): error APT2260: resource drawable/splash_screen (aka com.companyname.Uno52:drawable/splash_screen) not found.
1>C:\Test\Uno52\Uno52\obj\Debug\net8.0-android\unoresizetizer\sp\drawable\uno_splash_image.xml(2): error APT2260:
1>C:\Test\Uno52\Uno52\obj\Debug\net8.0-android\unoresizetizer\sp\drawable-v31\uno_splash_image.xml(2): error APT2260: resource drawable/splash_screen (aka com.companyname.Uno52:drawable/splash_screen) not found.
1>C:\Test\Uno52\Uno52\obj\Debug\net8.0-android\unoresizetizer\sp\drawable-v31\uno_splash_image.xml(2): error APT2260:
1>C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.95\tools\Xamarin.Android.Aapt2.targets(156,3): error APT2061: failed linking file resources.
1>C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.95\tools\Xamarin.Android.Aapt2.targets(156,3): error APT2061:

Expected behavior

No failures.

How to reproduce it (as minimally and precisely as possible)

Environment

Nuget Package:

Package Version(s):

Affected platform(s):

Visual Studio:

Relevant plugins:

Anything else we need to know?

eriklimakc commented 2 months ago

I had this error and got a binlog. After that I cleaned and it launched without any errors.

Binlog -> gallery-single-project-android.zip

cc @jeromelaban @pedrojesus-work @vatsashah45

dansiegel commented 1 month ago

@eriklimakc we need all of the logs for all builds and design time builds from when you opened the project until you hit the error. We cannot reproduce this without that.

agneszitte commented 1 month ago

@eriklimakc we need all of the logs for all builds and design time builds from when you opened the project until you hit the error. We cannot reproduce this without that.

@dansiegel, @pedrojesus-work
I was able to capture the logs for the builds and design time builds using Project System Tools 2022. (MSBuild project build log verbosity was set to Diagnostics) My steps for reference:

  1. Opened VS
  2. Started logging builds
  3. Opened the SimpleCalculator-XAML-MVUX solution
  4. Cleaned the solution
  5. Rebuilt the solution
  6. Rebuild failed - got the error APT2260: resource drawable/splash_screen in the output
  7. Stopped logging builds

Here are the saved binlogs: SimpleCalculator-XAML-MVUX binlogs - Build and DesignTimeBuild.zip

Keep me updated if you have all that you need here, please