Question: I need to know what language is used on a iOS/Android device because I build a MonoGame application in Xamarin Studio that supports three different languages. If the current language of the device is english, than the app will show texts in english, but if the current language of the device is french, than the texts will get displayed in french instead of english. If the current language of the device is not supported in my application(for example chinese), than the default language for the texts will be english.

How can I get the current device language on iOS/Android in Xamarin Studio?

Answer: 
It is a known limitation of the `maven-publish` plugin.

When a project dependency has multiple publications, the `maven-publish` plugin can't choose them properly. In your case, when the `maven-publish` plugin try to resolve `implementation project(':android-library2')`, it can't decide what to write to the pom file, because the `android-library2` project has multiple publications with different coordinates.

In Gradle 4.9-rc-1 was intruduced an [alias property](https://github.com/gradle/gradle/pull/3420/commits/b138d8e5133b5666068008c9f19ca85d606949ca). If you mark all publication as alias and you have a main publication, then this can solve your problem. But in my opinion this does not solve your problem completely, because the maven publish plugin will write the main publication's coordinates into the pom file independent of product flavors.

If that does not help, then you can use the workaround in [the original bug report](https://github.com/gradle/gradle/issues/1061).
Since Android Gradle Plugin (AGP) v7.1.0, it's possible to publish library variants as one Maven publication. See the [release notes](https://developer.android.com/studio/releases/gradle-plugin?buildsystem=ndk-build#build-variant-publishing).

The release notes currently link to the wrong page (it doesn't contain examples). The page that it should probably link to, and that has various examples, is [this one](https://android.googlesource.com/platform/tools/base/+/2e1ff8e3b05a4fcaad12066c6f38633b6875a2ae/build-system/gradle-api/src/main/java/com/android/build/api/dsl/LibraryPublishing.kt). Look for one of the `multipleVariants` examples.