# Disable Android build - Xamarin.Forms

**URL:** <https://discuss.bitrise.io/t/disable-android-build-xamarin-forms/4358>\
**Category:** Question & Answer\
**Tags:** android\
**Created:** [March 4, 2018, 10:37pm UTC](https://discuss.bitrise.io/t/disable-android-build-xamarin-forms/4358 "2018-03-04T22:37:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lengk](https://avatars.discourse-cdn.com/v4/letter/l/c57346/32.png) [@lengk](https://discuss.bitrise.io/u/lengk)\
**Post date:** [March 4, 2018, 10:37pm UTC](https://discuss.bitrise.io/t/disable-android-build-xamarin-forms/4358/1 "2018-03-04T22:37:28Z")

</div>

I’ve selected ios build only

 ![22](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/8/805a63c21edadbdb12750c355adc1defe6d78e77.png)

However there seems to still be work on the Android part going on:

```auto
...
/usr/bin/java -Xmx3G -jar /Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/build-tools/26.0.2/lib/dx.jar --dex --no-strict --multi-dex 
Done Building Project "/Users/vagrant/git/Droid/Yoke.Droid.csproj" (default targets)
...

```

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [March 6, 2018, 5:01pm UTC](https://discuss.bitrise.io/t/disable-android-build-xamarin-forms/4358/2 "2018-03-06T17:01:13Z")

</div>

Hi @lengk, I’ll ask the tooling team to check this! 🙂

---

<div class="post-metadata">

**Author:** ![lengk](https://avatars.discourse-cdn.com/v4/letter/l/c57346/32.png) [@lengk](https://discuss.bitrise.io/u/lengk)\
**Post date:** [March 7, 2018, 12:54am UTC](https://discuss.bitrise.io/t/disable-android-build-xamarin-forms/4358/3 "2018-03-07T00:54:01Z")

</div>

Great. Let me know if it’s something on my end?

---

<div class="post-metadata">

**Author:** ![godreikrisztian](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/godreikrisztian/32/22_2.png) [@godreikrisztian](https://discuss.bitrise.io/u/godreikrisztian)\
**Post date:** [March 23, 2018, 4:04pm UTC](https://discuss.bitrise.io/t/disable-android-build-xamarin-forms/4358/4 "2018-03-23T16:04:44Z")

</div>

Hi @lengk,  
thanks for the question!

When `xamarin-archive` step builds your xamarin solution it calls two type of build commands: the first builds the solution to build shared resources and dependencies etc… , then it calls the platform specific build commands which generates the platform artifact (.ipa, .apk, etc…) files.

Using the ` Specify project types to build` input of the step, you can control which platform specific commands should run and which not, but it does not have effect to the first build command against the solution file.

If you want to fully avoid building one platform’s project, please create a solution config+platform in your solution, which only maps to the projects which you want to build.

In this sample:

 ![42](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/2/229703cfdce863f3cc8ae8127cda77e89d883dcd.png)

The solution’s `Release` configuration + `Any CPU` platform maps to every projects.

But in this example:

 ![51](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/e/e5e402fb3a40d33ad006116ff84254ecdee79efd.png)

the same solution configuration + platform combination does not builds the Multiplatform.Droid project.
