-
Notifications
You must be signed in to change notification settings - Fork 565
Fix an Issue with new Resource Desginer Assembly #8066
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
Changes from all commits
29ad2cc
1cc5079
2c09655
fb662c6
7b51073
f5e1709
277e79b
b8dd975
79585fa
b45c3de
d7e9d3d
76cb65f
d134cd4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| --- | ||
| title: Xamarin.Android warning XA8000/IL8000 | ||
| description: XA8000/IL8000 error code | ||
| ms.date: 06/01/2023 | ||
| --- | ||
| # Xamarin.Android error XA8000/IL8000 | ||
|
|
||
| ## Issue | ||
|
|
||
| ``` | ||
| Could not find Android Resource '@anim/enterfromright'. Please update @(AndroidResource) to add the missing resource. | ||
| ``` | ||
|
|
||
| ## Solution | ||
|
|
||
| When trying to upgrade older nuget package references to use the | ||
| more recent Resource Designer Assembly, the system might encounter | ||
| fields which cannot be upgraded because the resource is missing | ||
| from either the dependency or the app. | ||
|
|
||
| To fix this issue the missing `AndroidResource` needs to be added to the application. Or the Nuget should be upgraded to use .net 8 or later. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| #!/bin/bash | ||
| ./build-tools/scripts/nunit3-console bin/TestRelease/net472/Xamarin.Android.Build.Tests.dll --test=Xamarin.Android.Build.Tests.BuildTest2.BuildReleaseArm64 | ||
| ./dotnet-local.sh test bin/TestRelease/net7.0/Xamarin.Android.Build.Tests.dll --filter=Name~BuildReleaseArm64 | ||
| cp bin/TestRelease/BuildReleaseArm64*.apkdesc src/Xamarin.Android.Build.Tasks/Tests/Xamarin.ProjectTools/Resources/Base/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,58 +8,58 @@ | |
| "Size": 1024 | ||
| }, | ||
| "assemblies/Java.Interop.dll": { | ||
| "Size": 58913 | ||
| "Size": 58703 | ||
| }, | ||
| "assemblies/Mono.Android.dll": { | ||
| "Size": 87163 | ||
| "Size": 86588 | ||
| }, | ||
| "assemblies/Mono.Android.Runtime.dll": { | ||
| "Size": 5895 | ||
| "Size": 5798 | ||
| }, | ||
| "assemblies/rc.bin": { | ||
| "Size": 1182 | ||
| "Size": 1235 | ||
| }, | ||
| "assemblies/System.Console.dll": { | ||
| "Size": 6438 | ||
| "Size": 6442 | ||
| }, | ||
| "assemblies/System.Linq.dll": { | ||
| "Size": 9122 | ||
| "Size": 9123 | ||
| }, | ||
| "assemblies/System.Private.CoreLib.dll": { | ||
| "Size": 516811 | ||
| "Size": 536436 | ||
| }, | ||
| "assemblies/System.Runtime.dll": { | ||
| "Size": 2620 | ||
| "Size": 2623 | ||
| }, | ||
| "assemblies/System.Runtime.InteropServices.dll": { | ||
| "Size": 3753 | ||
| "Size": 3752 | ||
| }, | ||
| "assemblies/UnnamedProject.dll": { | ||
| "Size": 3219 | ||
| "Size": 3349 | ||
| }, | ||
| "classes.dex": { | ||
| "Size": 19020 | ||
| "Size": 19748 | ||
| }, | ||
| "lib/arm64-v8a/libmono-component-marshal-ilgen.so": { | ||
| "Size": 93552 | ||
| }, | ||
| "lib/arm64-v8a/libmonodroid.so": { | ||
| "Size": 379320 | ||
| "Size": 380832 | ||
| }, | ||
| "lib/arm64-v8a/libmonosgen-2.0.so": { | ||
| "Size": 3090760 | ||
| "Size": 3160360 | ||
| }, | ||
| "lib/arm64-v8a/libSystem.IO.Compression.Native.so": { | ||
| "Size": 723840 | ||
| "Size": 723560 | ||
| }, | ||
| "lib/arm64-v8a/libSystem.Native.so": { | ||
| "Size": 94328 | ||
| "Size": 94392 | ||
| }, | ||
| "lib/arm64-v8a/libSystem.Security.Cryptography.Native.Android.so": { | ||
| "Size": 155056 | ||
| "Size": 154904 | ||
| }, | ||
| "lib/arm64-v8a/libxamarin-app.so": { | ||
| "Size": 16720 | ||
| "Size": 16624 | ||
| }, | ||
| "META-INF/BNDLTOOL.RSA": { | ||
| "Size": 1213 | ||
|
|
@@ -95,5 +95,5 @@ | |
| "Size": 1904 | ||
| } | ||
| }, | ||
| "PackageSize": 2632010 | ||
| "PackageSize": 2685258 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably not related to this PR, but why'd the package size increase so much?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like its or at least a fair chunk of it will be |
||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If
ILLINKis not defined, we should be withinXamarin.Android.Build.Tasks.dll, right? In which case we should have a "real" MSBuildTaskthat can raise "real" MSBuild error messages, instead of going throughConsole.Error.WriteLine()?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is done in https://github.com/xamarin/xamarin-android/pull/8066/files#diff-6bfa8cb4f52234d33d427a9aa52682179ea4e86d986fa7b2c6c26504ffcd6d96R145 by overriding this method. The Console.Error.WriteLine here is just a backup.