Repository navigation
Closed
Labels
Area: App+Library BuildIssues when building Library projects or Application projects.
Milestone
Description
Steps to Reproduce
- msbuild /t:SignAndroidPackage /p:Configuration=Release AnimationDemo\AnimationsDemo.csproj
Expected Behavior
Projects which explicitly define multiple <AndroidSupportedAbis/>'s should build.
Actual Behavior
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2930,3): error : Unsupported Android target architecture ABI: armeabi-v7a;x86 [/Users/xamarinqa/agent/_work/r1/a/md/AnimationDemo/AnimationsDemo.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2930,3): error : at Xamarin.Android.Tasks.LinkApplicationSharedLibraries+<GetLinkerConfigs>d__22.MoveNext () [0x0021f] in <83310c6c409a4204aa3f7021aa6ea332>:0 [/Users/xamarinqa/agent/_work/r1/a/md/AnimationDemo/AnimationsDemo.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2930,3): error : at System.Collections.Concurrent.Partitioner+DynamicPartitionerForIEnumerable`1+InternalPartitionEnumerable[TSource].GrabChunk_Buffered (System.Collections.Generic.KeyValuePair`2[System.Int64,TSource][] destArray, System.Int32 requestedChunkSize, System.Int32& actualNumElementsGrabbed) [0x001c7] in <fdc27973b6a24bbabd806e118f049148>:0 [/Users/xamarinqa/agent/_work/r1/a/md/AnimationDemo/AnimationsDemo.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2930,3): error : at System.Collections.Concurrent.Partitioner+DynamicPartitionerForIEnumerable`1+InternalPartitionEnumerable[TSource].GrabChunk (System.Collections.Generic.KeyValuePair`2[System.Int64,TSource][] destArray, System.Int32 requestedChunkSize, System.Int32& actualNumElementsGrabbed) [0x00026] in <fdc27973b6a24bbabd806e118f049148>:0 [/Users/xamarinqa/agent/_work/r1/a/md/AnimationDemo/AnimationsDemo.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2930,3): error : at System.Collections.Concurrent.Partitioner+DynamicPartitionerForIEnumerable`1+InternalPartitionEnumerator[TSource].GrabNextChunk (System.Int32 requestedChunkSize) [0x00023] in <fdc27973b6a24bbabd806e118f049148>:0 [/Users/xamarinqa/agent/_work/r1/a/md/AnimationDemo/AnimationsDemo.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2930,3): error : at System.Collections.Concurrent.Partitioner+DynamicPartitionEnumerator_Abstract`2[TSource,TSourceReader].MoveNext () [0x000ba] in <fdc27973b6a24bbabd806e118f049148>:0 [/Users/xamarinqa/agent/_work/r1/a/md/AnimationDemo/AnimationsDemo.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2930,3): error : at System.Threading.Tasks.Parallel+<>c__DisplayClass44_0`2[TSource,TLocal].<PartitionerForEachWorker>b__1 (System.Collections.IEnumerator& partitionState, System.Int32 timeout, System.Boolean& replicationDelegateYieldedBeforeCompletion) [0x0019f] in <fdc27973b6a24bbabd806e118f049148>:0 [/Users/xamarinqa/agent/_work/r1/a/md/AnimationDemo/AnimationsDemo.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2930,3): error : --- End of stack trace from previous location where exception was thrown --- [/Users/xamarinqa/agent/_work/r1/a/md/AnimationDemo/AnimationsDemo.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2930,3): error : [/Users/xamarinqa/agent/_work/r1/a/md/AnimationDemo/AnimationsDemo.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2930,3): error : at System.Threading.Tasks.Parallel+<>c__DisplayClass44_0`2[TSource,TLocal].<PartitionerForEachWorker>b__1 (System.Collections.IEnumerator& partitionState, System.Int32 timeout, System.Boolean& replicationDelegateYieldedBeforeCompletion) [0x0026e] in <fdc27973b6a24bbabd806e118f049148>:0 [/Users/xamarinqa/agent/_work/r1/a/md/AnimationDemo/AnimationsDemo.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2930,3): error : at System.Threading.Tasks.TaskReplicator+Replica`1[TState].ExecuteAction (System.Boolean& yieldedBeforeCompletion) [0x00000] in <fdc27973b6a24bbabd806e118f049148>:0 [/Users/xamarinqa/agent/_work/r1/a/md/AnimationDemo/AnimationsDemo.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2930,3): error : at System.Threading.Tasks.TaskReplicator+Replica.Execute () [0x00023] in <fdc27973b6a24bbabd806e118f049148>:0 [/Users/xamarinqa/agent/_work/r1/a/md/AnimationDemo/AnimationsDemo.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2930,3): error XA3001: Unable to link `libxamarin-app.so`: One or more errors occurred. (One or more errors occurred. (Unsupported Android target architecture ABI: armeabi-v7a;x86)) [/Users/xamarinqa/agent/_work/r1/a/md/AnimationDemo/AnimationsDemo.csproj]
Version Information
Log File
Metadata
Metadata
Assignees
Labels
Area: App+Library BuildIssues when building Library projects or Application projects.
Activity
kvpt commentedon Jun 6, 2019
Since I use the 2019 version I remarked that I have to change the separator that is now ';' whereas before it was ',' in my csproj and worked fine.
But yours is '%3b' is it supposed to support unicode hexa form too ?
pjcollins commentedon Jun 6, 2019
All three separator types mentioned above should continue to work (if defined in the .csproj file itself) as far as I know. You will need to tweak things when passing separated lists directly to the command line however.
pjcollins commentedon Jun 6, 2019
@grendello looks like we may need to parse the value of
abihere for multiple values?https://github.com/xamarin/xamarin-android/blob/master/src/Xamarin.Android.Build.Tasks/Tasks/LinkApplicationSharedLibraries.cs#L152
grendello commentedon Jun 6, 2019
The splitting is done by MSBuild here https://github.com/xamarin/xamarin-android/blob/master/src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets#L2931-L2941 and for some reason it appears to fail:
In fact, it works with master:
So the difference is, indeed, the
%3bURL-encoded value in the log from OP when creating the_BuildTargetAbisproperty. MSBuild version difference?jonathanpeppers commentedon Jun 7, 2019
@pjcollins is this broken in 16.1 stable?
MSBuild only supports
;for a property like this,Then if you called an MSBuild task:
It can come through as a
string[]:So we have lots of code like this everywhere to support comma:
https://github.com/xamarin/xamarin-android/blob/84e67c74a51f16f378f5ba2a4ffe134d662b3c3a/src/Xamarin.Android.Build.Tasks/Tasks/BuildApk.cs#L218
Would it be reasonable to drop support for
,? If it had a good error message?Or do we need to support all three options for all time?
NOTE: I'll need to test
%3band see what MSBuild does with it nativelyjonathanpeppers commentedon Jun 7, 2019
Actually it looks like 16.1 works and 16.2 is broken. That is when the native assembly changes went in:
[Xamarin.Android.Build.Tasks] properly support abi delimiters
[Xamarin.Android.Build.Tasks] properly support abi delimiters
[Xamarin.Android.Build.Tasks] properly support abi delimiters
[Xamarin.Android.Build.Tasks] properly support abi delimiters
[Xamarin.Android.Build.Tasks] properly support abi delimiters (#3190)