-
Notifications
You must be signed in to change notification settings - Fork 564
Closed
Labels
Area: App+Library BuildIssues when building Library projects or Application projects.Issues when building Library projects or Application projects.vs-syncFor internal use only; creates a VSTS "mirror" issue.For internal use only; creates a VSTS "mirror" issue.
Description
Steps to Reproduce
msbuild /t:SignAndroidPackage /p:AndroidUseAapt2=true monodroid-samples\Button\DroidButton.csproj /v:diag
https://github.com/xamarin/monodroid-samples/tree/master/Button
I can reproduce this with the default TargetFrameworkVersion of the project (v2.3), as well as v4.0.4, and v4.4. However, if I target v5.0 or greater then my build succeeds.
Expected Behavior
Project builds successfully with Aapt2 enabled.
Actual Behavior
Executing link --manifest C:\Users\peter\AppData\Local\Temp\wtsbowgt.p03\manifest\AndroidManifest.xml --java C:\Users\peter\AppData\Local\Temp\wtsbowgt.p03 --custom-package mono.samples.button -R obj\\Debug\\compiled.flata --auto-add-overlay -I "C:\Program Files (x86)\Android\android-sdk\platforms\android-10\android.jar" --output-text-symbols obj\\Debug\R.txt -o C:\Users\peter\AppData\Local\Temp\wtsbowgt.p03\resources.apk (TaskId:97)
W/ResourceType(23681): error APT0000: For resource 0x0101053d, entry index(1341) is beyond type entryCount(733) [C:\Users\peter\source\monodroid-samples\Button\DroidButton.csproj]
W/ResourceType(23681): error APT0000: For resource 0x0101053e, entry index(1342) is beyond type entryCount(733) [C:\Users\peter\source\monodroid-samples\Button\DroidButton.csproj]
W/ResourceType(23681): error APT0000: For resource 0x0101053b, entry index(1339) is beyond type entryCount(733) [C:\Users\peter\source\monodroid-samples\Button\DroidButton.csproj]
W/ResourceType(23681): error APT0000: For resource 0x0101053c, entry index(1340) is beyond type entryCount(733) [C:\Users\peter\source\monodroid-samples\Button\DroidButton.csproj]
Done executing task "Aapt2Link" -- FAILED. (TaskId:97)
Version Information
https://gist.github.com/pjcollins/220d551af40c4ccc18db3e7df0c1b72f
Log File
https://gist.github.com/pjcollins/57dec1bd340d9212129c1d8a0a779433
VS bug #624789
Metadata
Metadata
Assignees
Labels
Area: App+Library BuildIssues when building Library projects or Application projects.Issues when building Library projects or Application projects.vs-syncFor internal use only; creates a VSTS "mirror" issue.For internal use only; creates a VSTS "mirror" issue.