Sometimes all you need is :
<RuntimeIdentifiers Condition="$(TargetFramework.Contains('-android'))">android-arm;android-arm64;android-x86;android-x64</RuntimeIdentifiers>
This is based on MSBuild can already tell the architecture of the target device. Read more here.