Closed lahsrah closed 5 years ago
Server - Azure Pipelines
Here is the build that is failing: https://dev.azure.com/lahsrah/xamarin-large-project-test/_build/results?buildId=23&_a=summary
Agent
Hosted VS2017
I have enabled Multi-Dex in the csproj file (Xamarin.Android). You can see its enabled here: https://github.com/lahsrah/xamarin-large-project-test/blob/fdd9c1b5507fd8b0f4a25e99251113c3f7cd396e/LargeProjectTest/LargeProjectTest.Android/LargeProjectTest.Android.csproj#L38
The project builds successfully on my dev machine in Visual Studio or with MSBuild.
But Azure Pipelines msbuild does not pass the option --multi-dex that onto java.exe and build fails with following error:
--multi-dex
2019-02-05T23:14:16.3851474Z _CompileJava: 2019-02-05T23:14:16.3851813Z Directory "obj\Release\90\android\bin\classes" doesn't exist. Skipping. 2019-02-05T23:14:16.3985462Z C:\Program Files\Java\jdk1.8.0_192\\bin\javac.exe -J-Dfile.encoding=UTF8 -d obj\Release\90\android\bin\classes -classpath "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v9.0\mono.android.jar;obj\Release\90\lp\0\jl\formsviewgroup.jar;obj\Release\90\lp\10\jl\bin\classes.jar;obj\Release\90\lp\11\jl\bin\classes.jar;obj\Release\90\lp\12\jl\bin\classes.jar;obj\Release\90\lp\13\jl\bin\classes.jar;obj\Release\90\lp\14\jl\bin\classes.jar;obj\Release\90\lp\15\jl\bin\classes.jar;obj\Release\90\lp\16\jl\bin\classes.jar;obj\Release\90\lp\17\jl\bin\classes.jar;obj\Release\90\lp\18\jl\bin\classes.jar;obj\Release\90\lp\19\jl\bin\classes.jar;obj\Release\90\lp\2\jl\YouTubeAndroidPlayerApi.jar;obj\Release\90\lp\2\jl\__reference__annotations-13.0.jar;obj\Release\90\lp\2\jl\__reference__kotlin-stdlib-1.2.21.jar;obj\Release\90\lp\2\jl\__reference__reactive-streams-1.0.1.jar;obj\Release\90\lp\2\jl\__reference__relinker-1.2.2.jar;obj\Release\90\lp\2\jl\__reference__rxandroid-2.0.1.jar;obj\Release\90\lp\2\jl\__reference__rxjava-2.1.3.jar;obj\Release\90\lp\2\jl\__reference__yearclass-2.0.0.jar;obj\Release\90\lp\2\jl\bin\classes.jar;obj\Release\90\lp\20\jl\bin\classes.jar;obj\Release\90\lp\21\jl\bin\classes.jar;obj\Release\90\lp\22\jl\bin\classes.jar;obj\Release\90\lp\4\jl\arch-core-common.jar;obj\Release\90\lp\5\jl\arch-lifecycle-common.jar;obj\Release\90\lp\6\jl\bin\classes.jar;obj\Release\90\lp\7\jl\bin\classes.jar;obj\Release\90\lp\9\jl\bin\classes.jar;obj\Release\90\lp\8\jl\support-annotations.jar" -bootclasspath "C:\Program Files (x86)\Android\android-sdk\platforms\android-28\android.jar" -encoding UTF-8 "@C:\Users\VssAdministrator\AppData\Local\Temp\tmp250B.tmp" 2019-02-05T23:14:26.9642172Z Note: Some input files use or override a deprecated API. 2019-02-05T23:14:26.9642354Z Note: Recompile with -Xlint:deprecation for details. 2019-02-05T23:14:26.9642447Z Note: Some input files use unchecked or unsafe operations. 2019-02-05T23:14:26.9642498Z Note: Recompile with -Xlint:unchecked for details. 2019-02-05T23:14:27.1271667Z Creating "obj\Release\90\_javac.stamp" because "AlwaysCreate" was specified. 2019-02-05T23:14:27.1274529Z _CreateAdditionalResourceCache: 2019-02-05T23:14:27.1274831Z Skipping target "_CreateAdditionalResourceCache" because it has no outputs. 2019-02-05T23:14:27.1280065Z _CompileToDalvikWithDx: 2019-02-05T23:14:27.1280365Z Creating directory "obj\Release\90\proguard". 2019-02-05T23:14:27.1338644Z C:\Program Files\Java\jdk1.8.0_192\\bin\java.exe -Xmx1G -jar "C:\Program Files (x86)\Android\android-sdk\build-tools\27.0.3\\lib\dx.jar" --dex --no-strict --output obj\Release\90\android\bin D:\a\1\s\LargeProjectTest\LargeProjectTest.Android\obj\Release\90\android\bin\classes.zip "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v9.0\mono.android.jar" obj\Release\90\lp\0\jl\formsviewgroup.jar obj\Release\90\lp\10\jl\bin\classes.jar obj\Release\90\lp\11\jl\bin\classes.jar obj\Release\90\lp\12\jl\bin\classes.jar obj\Release\90\lp\13\jl\bin\classes.jar obj\Release\90\lp\14\jl\bin\classes.jar obj\Release\90\lp\15\jl\bin\classes.jar obj\Release\90\lp\16\jl\bin\classes.jar obj\Release\90\lp\17\jl\bin\classes.jar obj\Release\90\lp\18\jl\bin\classes.jar obj\Release\90\lp\19\jl\bin\classes.jar obj\Release\90\lp\2\jl\YouTubeAndroidPlayerApi.jar obj\Release\90\lp\2\jl\__reference__annotations-13.0.jar obj\Release\90\lp\2\jl\__reference__kotlin-stdlib-1.2.21.jar obj\Release\90\lp\2\jl\__reference__reactive-streams-1.0.1.jar obj\Release\90\lp\2\jl\__reference__relinker-1.2.2.jar obj\Release\90\lp\2\jl\__reference__rxandroid-2.0.1.jar obj\Release\90\lp\2\jl\__reference__rxjava-2.1.3.jar obj\Release\90\lp\2\jl\__reference__yearclass-2.0.0.jar obj\Release\90\lp\2\jl\bin\classes.jar obj\Release\90\lp\20\jl\bin\classes.jar obj\Release\90\lp\21\jl\bin\classes.jar obj\Release\90\lp\22\jl\bin\classes.jar obj\Release\90\lp\4\jl\arch-core-common.jar obj\Release\90\lp\5\jl\arch-lifecycle-common.jar obj\Release\90\lp\6\jl\bin\classes.jar obj\Release\90\lp\7\jl\bin\classes.jar obj\Release\90\lp\9\jl\bin\classes.jar 2019-02-05T23:15:17.5094749Z 2019-02-05T23:15:17.5107125Z trouble writing output: Too many method references to fit in one dex file: 65868; max is 65536. 2019-02-05T23:15:17.5107315Z You may try using multi-dex. If multi-dex is enabled then the list of classes for the main dex list is too large. 2019-02-05T23:15:17.5107636Z References by package: 2019-02-05T23:15:17.5107685Z 7 android.accessibilityservice 2019-02-05T23:15:17.5107816Z 112 android.animation 2019-02-05T23:15:17.5107862Z 300 android.app 2019-02-05T23:15:17.5107905Z 9 android.app.job 2019-02-05T23:15:17.5107991Z 53 android.arch.core.internal 2019-02-05T23:15:17.5108039Z 89 android.arch.lifecycle 2019-02-05T23:15:17.5108084Z 193 android.content 2019-02-05T23:15:17.5108291Z 40 android.content.pm 2019-02-05T23:15:17.5108336Z 106 android.content.res 2019-02-05T23:15:17.5108378Z 30 android.database 2019-02-05T23:15:17.5108529Z 9 android.database.sqlite 2019-02-05T23:15:17.5108622Z 266 android.graphics 2019-02-05T23:15:17.5108666Z 143 android.graphics.drawable 2019-02-05T23:15:17.5108714Z 4 android.graphics.drawable.shapes 2019-02-05T23:15:17.5108804Z 10 android.graphics.pdf 2019-02-05T23:15:17.5108849Z 3 android.hardware.display 2019-02-05T23:15:17.5108904Z 11 android.hardware.fingerprint 2019-02-05T23:15:17.5108993Z 5 android.location 2019-02-05T23:15:17.5109038Z 176 android.media 2019-02-05T23:15:17.5109082Z 19 android.media.browse 2019-02-05T23:15:17.5109167Z 92 android.media.session 2019-02-05T23:15:17.5109209Z 44 android.net 2019-02-05T23:15:17.5109253Z 215 android.os 2019-02-05T23:15:17.5109337Z 34 android.print 2019-02-05T23:15:17.5109381Z 5 android.print.pdf 2019-02-05T23:15:17.5109424Z 9 android.provider 2019-02-05T23:15:17.5109507Z 207 android.runtime 2019-02-05T23:15:17.5109559Z 10 android.service.media 2019-02-05T23:15:17.5109602Z 7 android.speech.tts 2019-02-05T23:15:17.5109646Z 38 android.support.compat 2019-02-05T23:15:17.5109849Z 1 android.support.coreui 2019-02-05T23:15:17.5109894Z 1 android.support.coreutils 2019-02-05T23:15:17.5109939Z 38 android.support.design 2019-02-05T23:15:17.5110034Z 309 android.support.design.internal 2019-02-05T23:15:17.5110263Z 1553 android.support.design.widget 2019-02-05T23:15:17.5110476Z 1 android.support.fragment 2019-02-05T23:15:17.5110523Z 322 android.support.graphics.drawable 2019-02-05T23:15:17.5110571Z 1 android.support.graphics.drawable.animated 2019-02-05T23:15:17.5110661Z 38 android.support.mediacompat 2019-02-05T23:15:17.5110707Z 867 android.support.transition 2019-02-05T23:15:17.5110750Z 38 android.support.v4 2019-02-05T23:15:17.5110837Z 19 android.support.v4.accessibilityservice 2019-02-05T23:15:17.5110893Z 1872 android.support.v4.app 2019-02-05T23:15:17.5110937Z 231 android.support.v4.content 2019-02-05T23:15:17.5111022Z 40 android.support.v4.content.pm 2019-02-05T23:15:17.5111070Z 51 android.support.v4.content.res 2019-02-05T23:15:17.5111115Z 3 android.support.v4.database 2019-02-05T23:15:17.5111206Z 133 android.support.v4.graphics 2019-02-05T23:15:17.5111262Z 211 android.support.v4.graphics.drawable 2019-02-05T23:15:17.5111311Z 14 android.support.v4.hardware.display 2019-02-05T23:15:17.5111399Z 65 android.support.v4.hardware.fingerprint 2019-02-05T23:15:17.5111449Z 87 android.support.v4.internal.view 2019-02-05T23:15:17.5111494Z 4 android.support.v4.math 2019-02-05T23:15:17.5111611Z 629 android.support.v4.media 2019-02-05T23:15:17.5111656Z 31 android.support.v4.media.app 2019-02-05T23:15:17.5111703Z 1102 android.support.v4.media.session 2019-02-05T23:15:17.5111749Z 47 android.support.v4.net 2019-02-05T23:15:17.5111842Z 151 android.support.v4.os 2019-02-05T23:15:17.5111886Z 87 android.support.v4.print 2019-02-05T23:15:17.5111931Z 192 android.support.v4.provider 2019-02-05T23:15:17.5112018Z 89 android.support.v4.text 2019-02-05T23:15:17.5112063Z 20 android.support.v4.text.util 2019-02-05T23:15:17.5112108Z 363 android.support.v4.util 2019-02-05T23:15:17.5112270Z 1086 android.support.v4.view 2019-02-05T23:15:17.5112317Z 548 android.support.v4.view.accessibility 2019-02-05T23:15:17.5112365Z 21 android.support.v4.view.animation 2019-02-05T23:15:17.5112458Z 1183 android.support.v4.widget 2019-02-05T23:15:17.5112504Z 1348 android.support.v7.app 2019-02-05T23:15:17.5112548Z 38 android.support.v7.appcompat 2019-02-05T23:15:17.5112639Z 38 android.support.v7.cardview 2019-02-05T23:15:17.5112685Z 27 android.support.v7.content.res 2019-02-05T23:15:17.5112731Z 136 android.support.v7.graphics 2019-02-05T23:15:17.5112821Z 69 android.support.v7.graphics.drawable 2019-02-05T23:15:17.5112926Z 736 android.support.v7.media 2019-02-05T23:15:17.5112973Z 38 android.support.v7.mediarouter 2019-02-05T23:15:17.5113061Z 1 android.support.v7.palette 2019-02-05T23:15:17.5113109Z 38 android.support.v7.recyclerview 2019-02-05T23:15:17.5113154Z 3 android.support.v7.text 2019-02-05T23:15:17.5113248Z 179 android.support.v7.util 2019-02-05T23:15:17.5113294Z 155 android.support.v7.view 2019-02-05T23:15:17.5113338Z 728 android.support.v7.view.menu 2019-02-05T23:15:17.5113384Z 4394 android.support.v7.widget 2019-02-05T23:15:17.5113473Z 120 android.support.v7.widget.helper 2019-02-05T23:15:17.5113519Z 5 android.support.v7.widget.util 2019-02-05T23:15:17.5113563Z 3 android.system 2019-02-05T23:15:17.5113653Z 82 android.text 2019-02-05T23:15:17.5113697Z 5 android.text.format 2019-02-05T23:15:17.5113741Z 7 android.text.method 2019-02-05T23:15:17.5113824Z 7 android.text.style 2019-02-05T23:15:17.5113875Z 10 android.text.util 2019-02-05T23:15:17.5113919Z 25 android.transition 2019-02-05T23:15:17.5114001Z 80 android.util 2019-02-05T23:15:17.5114044Z 802 android.view 2019-02-05T23:15:17.5114088Z 241 android.view.accessibility 2019-02-05T23:15:17.5114173Z 57 android.view.animation 2019-02-05T23:15:17.5114226Z 4 android.view.inputmethod 2019-02-05T23:15:17.5114268Z 18 android.webkit 2019-02-05T23:15:17.5114348Z 871 android.widget 2019-02-05T23:15:17.5114393Z 20 com.companyname 2019-02-05T23:15:17.5114436Z 21 com.facebook.device.yearclass 2019-02-05T23:15:17.5114482Z 51 com.getkeepsafe.relinker 2019-02-05T23:15:17.5114573Z 32 com.getkeepsafe.relinker.elf 2019-02-05T23:15:17.5114620Z 276 com.google.android.youtube.player 2019-02-05T23:15:17.5114669Z 504 com.google.android.youtube.player.internal 2019-02-05T23:15:17.5114759Z 66 com.pspdfkit 2019-02-05T23:15:17.5114811Z 4 com.pspdfkit.analytics 2019-02-05T23:15:17.5114855Z 555 com.pspdfkit.annotations 2019-02-05T23:15:17.5114936Z 209 com.pspdfkit.annotations.actions 2019-02-05T23:15:17.5114984Z 35 com.pspdfkit.annotations.appearance 2019-02-05T23:15:17.5115032Z 146 com.pspdfkit.annotations.defaults 2019-02-05T23:15:17.5115113Z 20 com.pspdfkit.annotations.links 2019-02-05T23:15:17.5115168Z 15 com.pspdfkit.annotations.note 2019-02-05T23:15:17.5115214Z 69 com.pspdfkit.annotations.stamps 2019-02-05T23:15:17.5115301Z 5 com.pspdfkit.annotations.xfdf 2019-02-05T23:15:17.5115348Z 50 com.pspdfkit.bookmarks 2019-02-05T23:15:17.5115391Z 229 com.pspdfkit.configuration 2019-02-05T23:15:17.5115480Z 242 com.pspdfkit.configuration.activity 2019-02-05T23:15:17.5115530Z 14 com.pspdfkit.configuration.annotations 2019-02-05T23:15:17.5115578Z 9 com.pspdfkit.configuration.forms 2019-02-05T23:15:17.5115667Z 32 com.pspdfkit.configuration.page 2019-02-05T23:15:17.5115724Z 11 com.pspdfkit.configuration.policy 2019-02-05T23:15:17.5115770Z 23 com.pspdfkit.configuration.rendering 2019-02-05T23:15:17.5115865Z 33 com.pspdfkit.configuration.search 2019-02-05T23:15:17.5116102Z 5 com.pspdfkit.configuration.settings 2019-02-05T23:15:17.5116167Z 9 com.pspdfkit.configuration.theming 2019-02-05T23:15:17.5116392Z 47 com.pspdfkit.datastructures 2019-02-05T23:15:17.5116438Z 211 com.pspdfkit.document 2019-02-05T23:15:17.5116483Z 63 com.pspdfkit.document.checkpoint 2019-02-05T23:15:17.5116569Z 34 com.pspdfkit.document.datastore 2019-02-05T23:15:17.5116614Z 72 com.pspdfkit.document.download 2019-02-05T23:15:17.5116661Z 16 com.pspdfkit.document.download.source 2019-02-05T23:15:17.5116706Z 25 com.pspdfkit.document.editor 2019-02-05T23:15:17.5116793Z 135 com.pspdfkit.document.editor.page 2019-02-05T23:15:17.5116838Z 20 com.pspdfkit.document.files 2019-02-05T23:15:17.5116942Z 32 com.pspdfkit.document.formatters 2019-02-05T23:15:17.5117030Z 62 com.pspdfkit.document.image 2019-02-05T23:15:17.5117074Z 98 com.pspdfkit.document.library 2019-02-05T23:15:17.5117118Z 31 com.pspdfkit.document.metadata 2019-02-05T23:15:17.5117204Z 33 com.pspdfkit.document.printing 2019-02-05T23:15:17.5117250Z 207 com.pspdfkit.document.processor 2019-02-05T23:15:17.5117303Z 76 com.pspdfkit.document.providers 2019-02-05T23:15:17.5117391Z 40 com.pspdfkit.document.search 2019-02-05T23:15:17.5117436Z 194 com.pspdfkit.document.sharing 2019-02-05T23:15:17.5117480Z 37 com.pspdfkit.events 2019-02-05T23:15:17.5117565Z 32 com.pspdfkit.exceptions 2019-02-05T23:15:17.5117609Z 507 com.pspdfkit.forms 2019-02-05T23:15:17.5119029Z 2 com.pspdfkit.forms.exceptions 2019-02-05T23:15:17.5119657Z 7233 com.pspdfkit.framework 2019-02-05T23:15:17.5120024Z 45 com.pspdfkit.framework.annotations.note.ui 2019-02-05T23:15:17.5121041Z 3483 com.pspdfkit.framework.jni 2019-02-05T23:15:17.5121298Z 121 com.pspdfkit.framework.ui.dialog.signatures 2019-02-05T23:15:17.5121416Z 206 com.pspdfkit.framework.views.document 2019-02-05T23:15:17.5121474Z 47 com.pspdfkit.framework.views.document.editor 2019-02-05T23:15:17.5121530Z 102 com.pspdfkit.framework.views.page 2019-02-05T23:15:17.5121604Z 42 com.pspdfkit.framework.views.utils 2019-02-05T23:15:17.5121701Z 17 com.pspdfkit.framework.views.utils.recyclerview 2019-02-05T23:15:17.5121755Z 397 com.pspdfkit.instant.framework.jni 2019-02-05T23:15:17.5121804Z 46 com.pspdfkit.listeners 2019-02-05T23:15:17.5121900Z 8 com.pspdfkit.listeners.scrolling 2019-02-05T23:15:17.5121949Z 75 com.pspdfkit.media 2019-02-05T23:15:17.5121997Z 11 com.pspdfkit.preferences 2019-02-05T23:15:17.5122200Z 214 com.pspdfkit.signatures 2019-02-05T23:15:17.5122252Z 5 com.pspdfkit.signatures.provider 2019-02-05T23:15:17.5122303Z 60 com.pspdfkit.signatures.signers 2019-02-05T23:15:17.5122407Z 1489 com.pspdfkit.ui 2019-02-05T23:15:17.5122457Z 116 com.pspdfkit.ui.actionmenu 2019-02-05T23:15:17.5122507Z 114 com.pspdfkit.ui.dialog 2019-02-05T23:15:17.5122600Z 102 com.pspdfkit.ui.document.editor 2019-02-05T23:15:17.5122651Z 3 com.pspdfkit.ui.documentinfo 2019-02-05T23:15:17.5122710Z 24 com.pspdfkit.ui.drawable 2019-02-05T23:15:17.5122803Z 59 com.pspdfkit.ui.editor 2019-02-05T23:15:17.5122851Z 6 com.pspdfkit.ui.fonts 2019-02-05T23:15:17.5122899Z 59 com.pspdfkit.ui.forms 2019-02-05T23:15:17.5122988Z 198 com.pspdfkit.ui.inspector 2019-02-05T23:15:17.5123041Z 59 com.pspdfkit.ui.inspector.annotation 2019-02-05T23:15:17.5123094Z 28 com.pspdfkit.ui.inspector.forms 2019-02-05T23:15:17.5123186Z 271 com.pspdfkit.ui.inspector.views 2019-02-05T23:15:17.5123236Z 27 com.pspdfkit.ui.note 2019-02-05T23:15:17.5123284Z 36 com.pspdfkit.ui.outline 2019-02-05T23:15:17.5123403Z 42 com.pspdfkit.ui.scrollbar 2019-02-05T23:15:17.5123456Z 311 com.pspdfkit.ui.search 2019-02-05T23:15:17.5123503Z 61 com.pspdfkit.ui.settings 2019-02-05T23:15:17.5123551Z 127 com.pspdfkit.ui.signatures 2019-02-05T23:15:17.5123648Z 106 com.pspdfkit.ui.special_mode.controller 2019-02-05T23:15:17.5123702Z 3 com.pspdfkit.ui.special_mode.controller.base 2019-02-05T23:15:17.5123923Z 65 com.pspdfkit.ui.special_mode.manager 2019-02-05T23:15:17.5124025Z 53 com.pspdfkit.ui.tabs 2019-02-05T23:15:17.5124074Z 302 com.pspdfkit.ui.thumbnail 2019-02-05T23:15:17.5124123Z 484 com.pspdfkit.ui.toolbar 2019-02-05T23:15:17.5124421Z 7 com.pspdfkit.ui.toolbar.grouping 2019-02-05T23:15:17.5124730Z 20 com.pspdfkit.ui.toolbar.grouping.presets 2019-02-05T23:15:17.5124914Z 16 com.pspdfkit.ui.toolbar.popup 2019-02-05T23:15:17.5125126Z 4 com.pspdfkit.ui.toolbar.rx 2019-02-05T23:15:17.5125292Z 24 com.pspdfkit.ui.transition 2019-02-05T23:15:17.5125593Z 19 com.pspdfkit.undo 2019-02-05T23:15:17.5125799Z 8 com.pspdfkit.undo.exceptions 2019-02-05T23:15:17.5126262Z 86 com.pspdfkit.utils 2019-02-05T23:15:17.5126456Z 3 com.squareup.picasso 2019-02-05T23:15:17.5126686Z 27 com.xamarin.forms.platform.android 2019-02-05T23:15:17.5126843Z 1 com.xamarin.formsviewgroup 2019-02-05T23:15:17.5166228Z 5 com.xamarin.java_interop 2019-02-05T23:15:17.5166346Z 12 com.xamarin.java_interop.internal 2019-02-05T23:15:17.5166403Z 3 default 2019-02-05T23:15:17.5166511Z 1411 io.reactivex 2019-02-05T23:15:17.5166559Z 8 io.reactivex.android 2019-02-05T23:15:17.5167419Z 9 io.reactivex.android.plugins 2019-02-05T23:15:17.5167771Z 20 io.reactivex.android.schedulers 2019-02-05T23:15:17.5168006Z 7 io.reactivex.annotations 2019-02-05T23:15:17.5168175Z 52 io.reactivex.disposables 2019-02-05T23:15:17.5168376Z 32 io.reactivex.exceptions 2019-02-05T23:15:17.5168620Z 12 io.reactivex.flowables 2019-02-05T23:15:17.5168787Z 18 io.reactivex.functions 2019-02-05T23:15:17.5168992Z 84 io.reactivex.internal.disposables 2019-02-05T23:15:17.5169216Z 155 io.reactivex.internal.functions 2019-02-05T23:15:17.5169378Z 35 io.reactivex.internal.fuseable 2019-02-05T23:15:17.5169575Z 222 io.reactivex.internal.observers 2019-02-05T23:15:17.5169824Z 293 io.reactivex.internal.operators.completable 2019-02-05T23:15:17.5170019Z 2383 io.reactivex.internal.operators.flowable 2019-02-05T23:15:17.5170294Z 764 io.reactivex.internal.operators.maybe 2019-02-05T23:15:17.5170515Z 2009 io.reactivex.internal.operators.observable 2019-02-05T23:15:17.5170894Z 279 io.reactivex.internal.operators.parallel 2019-02-05T23:15:17.5171356Z 424 io.reactivex.internal.operators.single 2019-02-05T23:15:17.5171548Z 62 io.reactivex.internal.queue 2019-02-05T23:15:17.5171795Z 217 io.reactivex.internal.schedulers 2019-02-05T23:15:17.5172090Z 161 io.reactivex.internal.subscribers 2019-02-05T23:15:17.5172378Z 127 io.reactivex.internal.subscriptions 2019-02-05T23:15:17.5172671Z 215 io.reactivex.internal.util 2019-02-05T23:15:17.5172863Z 11 io.reactivex.observables 2019-02-05T23:15:17.5173043Z 177 io.reactivex.observers 2019-02-05T23:15:17.5173276Z 56 io.reactivex.parallel 2019-02-05T23:15:17.5173472Z 89 io.reactivex.plugins 2019-02-05T23:15:17.5173650Z 224 io.reactivex.processors 2019-02-05T23:15:17.5173881Z 57 io.reactivex.schedulers 2019-02-05T23:15:17.5174555Z 274 io.reactivex.subjects 2019-02-05T23:15:17.5174801Z 76 io.reactivex.subscribers 2019-02-05T23:15:17.5174975Z 143 java.io 2019-02-05T23:15:17.5175165Z 397 java.lang 2019-02-05T23:15:17.5175472Z 1 java.lang.annotation 2019-02-05T23:15:17.5175674Z 3 java.lang.ref 2019-02-05T23:15:17.5175835Z 26 java.lang.reflect 2019-02-05T23:15:17.5176320Z 30 java.math 2019-02-05T23:15:17.5176573Z 24 java.net 2019-02-05T23:15:17.5176738Z 34 java.nio 2019-02-05T23:15:17.5176953Z 5 java.nio.channels 2019-02-05T23:15:17.5177114Z 11 java.nio.charset 2019-02-05T23:15:17.5177329Z 27 java.security 2019-02-05T23:15:17.5177558Z 13 java.security.cert 2019-02-05T23:15:17.5177715Z 19 java.text 2019-02-05T23:15:17.5178120Z 428 java.util 2019-02-05T23:15:17.5178430Z 82 java.util.concurrent 2019-02-05T23:15:17.5178602Z 45 java.util.concurrent.atomic 2019-02-05T23:15:17.5178816Z 23 java.util.concurrent.locks 2019-02-05T23:15:17.5178984Z 25 java.util.regex 2019-02-05T23:15:17.5179141Z 6 java.util.zip 2019-02-05T23:15:17.5179696Z 8 javax.net.ssl 2019-02-05T23:15:17.5179851Z 231 kotlin 2019-02-05T23:15:17.5180056Z 12 kotlin.annotation 2019-02-05T23:15:17.5180201Z 2759 kotlin.collections 2019-02-05T23:15:17.5180339Z 111 kotlin.comparisons 2019-02-05T23:15:17.5180515Z 31 kotlin.concurrent 2019-02-05T23:15:17.5180841Z 114 kotlin.coroutines.experimental 2019-02-05T23:15:17.5180993Z 28 kotlin.coroutines.experimental.intrinsics 2019-02-05T23:15:17.5181193Z 10 kotlin.coroutines.experimental.jvm.internal 2019-02-05T23:15:17.5181335Z 8 kotlin.experimental 2019-02-05T23:15:17.5181470Z 22 kotlin.internal 2019-02-05T23:15:17.5181719Z 12 kotlin.internal.contracts 2019-02-05T23:15:17.5181910Z 281 kotlin.io 2019-02-05T23:15:17.5182105Z 21 kotlin.jvm 2019-02-05T23:15:17.5182253Z 23 kotlin.jvm.functions 2019-02-05T23:15:17.5182387Z 556 kotlin.jvm.internal 2019-02-05T23:15:17.5182622Z 2 kotlin.jvm.internal.unsafe 2019-02-05T23:15:17.5182771Z 109 kotlin.math 2019-02-05T23:15:17.5182905Z 20 kotlin.properties 2019-02-05T23:15:17.5183096Z 294 kotlin.ranges 2019-02-05T23:15:17.5183231Z 141 kotlin.reflect 2019-02-05T23:15:17.5183492Z 453 kotlin.sequences 2019-02-05T23:15:17.5183688Z 3 kotlin.system 2019-02-05T23:15:17.5183840Z 837 kotlin.text 2019-02-05T23:15:17.5184216Z 6 md5100949100144d86c0ab84e0fb06eac04 2019-02-05T23:15:17.5184615Z 969 md51558244f76c53b6aeda52c8a337f2c37 2019-02-05T23:15:17.5184769Z 217 md58432a647068b097f9637064b8985a5e0 2019-02-05T23:15:17.5184964Z 50 md5f92e0daf340890c9667469657ee2ece8 2019-02-05T23:15:17.5185134Z 19 mono 2019-02-05T23:15:17.5185317Z 17 mono.android 2019-02-05T23:15:17.5185527Z 12 mono.android.accessibilityservice 2019-02-05T23:15:17.5185678Z 6 mono.android.accounts 2019-02-05T23:15:17.5185874Z 52 mono.android.animation 2019-02-05T23:15:17.5186382Z 112 mono.android.app 2019-02-05T23:15:17.5186540Z 6 mono.android.app.admin 2019-02-05T23:15:17.5186784Z 8 mono.android.bluetooth 2019-02-05T23:15:17.5186941Z 60 mono.android.content 2019-02-05T23:15:17.5187088Z 10 mono.android.database.sqlite 2019-02-05T23:15:17.5187330Z 18 mono.android.drm 2019-02-05T23:15:17.5187497Z 26 mono.android.gesture 2019-02-05T23:15:17.5187643Z 18 mono.android.graphics 2019-02-05T23:15:17.5187879Z 6 mono.android.graphics.drawable 2019-02-05T23:15:17.5188030Z 28 mono.android.hardware 2019-02-05T23:15:17.5188207Z 10 mono.android.hardware.display 2019-02-05T23:15:17.5188416Z 10 mono.android.hardware.input 2019-02-05T23:15:17.5188658Z 20 mono.android.inputmethodservice 2019-02-05T23:15:17.5188896Z 30 mono.android.location 2019-02-05T23:15:17.5189049Z 228 mono.android.media 2019-02-05T23:15:17.5189283Z 50 mono.android.media.audiofx 2019-02-05T23:15:17.5189692Z 6 mono.android.media.effect 2019-02-05T23:15:17.5189836Z 6 mono.android.media.midi 2019-02-05T23:15:17.5189995Z 6 mono.android.media.session 2019-02-05T23:15:17.5190209Z 6 mono.android.media.tv 2019-02-05T23:15:17.5190367Z 6 mono.android.net 2019-02-05T23:15:17.5190569Z 36 mono.android.net.nsd 2019-02-05T23:15:17.5190752Z 10 mono.android.net.sip 2019-02-05T23:15:17.5190912Z 56 mono.android.net.wifi.p2p 2019-02-05T23:15:17.5191216Z 6 mono.android.nfc 2019-02-05T23:15:17.5191387Z 42 mono.android.os 2019-02-05T23:15:17.5191545Z 30 mono.android.preference 2019-02-05T23:15:17.5191771Z 6 mono.android.renderscript 2019-02-05T23:15:17.5192084Z 38 mono.android.runtime 2019-02-05T23:15:17.5192222Z 18 mono.android.sax 2019-02-05T23:15:17.5192445Z 6 mono.android.se.omapi 2019-02-05T23:15:17.5192585Z 22 mono.android.speech 2019-02-05T23:15:17.5192791Z 12 mono.android.speech.tts 2019-02-05T23:15:17.5192987Z 42 mono.android.support.design.widget 2019-02-05T23:15:17.5193154Z 14 mono.android.support.transition 2019-02-05T23:15:17.5193365Z 12 mono.android.support.v4.app 2019-02-05T23:15:17.5193534Z 12 mono.android.support.v4.content 2019-02-05T23:15:17.5194574Z 6 mono.android.support.v4.media.session 2019-02-05T23:15:17.5194900Z 6 mono.android.support.v4.os 2019-02-05T23:15:17.5195078Z 64 mono.android.support.v4.view 2019-02-05T23:15:17.5195328Z 12 mono.android.support.v4.view.accessibility 2019-02-05T23:15:17.5195581Z 48 mono.android.support.v4.widget 2019-02-05T23:15:17.5195781Z 22 mono.android.support.v7.app 2019-02-05T23:15:17.5196207Z 6 mono.android.support.v7.graphics 2019-02-05T23:15:17.5196488Z 6 mono.android.support.v7.media 2019-02-05T23:15:17.5196677Z 110 mono.android.support.v7.widget 2019-02-05T23:15:17.5196905Z 10 mono.android.text 2019-02-05T23:15:17.5197120Z 14 mono.android.transition 2019-02-05T23:15:17.5197298Z 260 mono.android.view 2019-02-05T23:15:17.5197540Z 12 mono.android.view.accessibility 2019-02-05T23:15:17.5197728Z 10 mono.android.view.animation 2019-02-05T23:15:17.5198035Z 8 mono.android.view.textservice 2019-02-05T23:15:17.5198286Z 24 mono.android.webkit 2019-02-05T23:15:17.5198467Z 232 mono.android.widget 2019-02-05T23:15:17.5198704Z 12 mono.java.lang 2019-02-05T23:15:17.5198890Z 4 mono.java.util 2019-02-05T23:15:17.5199077Z 10 mono.javax.xml.transform 2019-02-05T23:15:17.5199292Z 7 opentk 2019-02-05T23:15:17.5199875Z 13 opentk.platform.android 2019-02-05T23:15:17.5200035Z 7 opentk_1_0 2019-02-05T23:15:17.5200322Z 13 opentk_1_0.platform.android 2019-02-05T23:15:17.5200536Z 18 org.intellij.lang.annotations 2019-02-05T23:15:17.5200691Z 5 org.jetbrains.annotations 2019-02-05T23:15:17.5200920Z 21 org.json 2019-02-05T23:15:17.5201072Z 10 org.reactivestreams 2019-02-05T23:15:17.5201332Z 17 org.xmlpull.v1 2019-02-05T23:15:17.7387806Z ##[error]C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2610,3): Error MSB6006: "java.exe" exited with code 2. 2019-02-05T23:15:17.7399099Z C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2610,3): error MSB6006: "java.exe" exited with code 2. [D:\a\1\s\LargeProjectTest\LargeProjectTest.Android\LargeProjectTest.Android.csproj] 2019-02-05T23:15:17.7623006Z Done Building Project "D:\a\1\s\LargeProjectTest\LargeProjectTest.Android\LargeProjectTest.Android.csproj" (PackageForAndroid target(s)) -- FAILED. 2019-02-05T23:15:17.8049313Z 2019-02-05T23:15:17.8051213Z Build FAILED. 2019-02-05T23:15:17.8103641Z 2019-02-05T23:15:17.8117340Z "D:\a\1\s\LargeProjectTest\LargeProjectTest.Android\LargeProjectTest.Android.csproj" (PackageForAndroid target) (1) -> 2019-02-05T23:15:17.8117452Z (_CompileToDalvikWithDx target) -> 2019-02-05T23:15:17.8117542Z C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2610,3): error MSB6006: "java.exe" exited with code 2. [D:\a\1\s\LargeProjectTest\LargeProjectTest.Android\LargeProjectTest.Android.csproj] 2019-02-05T23:15:17.8117647Z 2019-02-05T23:15:17.8119099Z 0 Warning(s) 2019-02-05T23:15:17.8119274Z 1 Error(s) 2019-02-05T23:15:17.8122370Z 2019-02-05T23:15:17.8122480Z Time Elapsed 00:02:52.90 2019-02-05T23:15:18.2893347Z ##[error]Process 'msbuild.exe' exited with code '1'. 2019-02-05T23:15:18.3251056Z ##[section]Finishing: Build Xamarin.Android project **/*Droid*.csproj
Closing this as this turned out to be user error. multi-dex was only enabled in debug build but I was building a release build. Sorry.
Source code
Environment
Server - Azure Pipelines
Here is the build that is failing: https://dev.azure.com/lahsrah/xamarin-large-project-test/_build/results?buildId=23&_a=summary
Agent
Hosted VS2017
Issue Description
I have enabled Multi-Dex in the csproj file (Xamarin.Android). You can see its enabled here: https://github.com/lahsrah/xamarin-large-project-test/blob/fdd9c1b5507fd8b0f4a25e99251113c3f7cd396e/LargeProjectTest/LargeProjectTest.Android/LargeProjectTest.Android.csproj#L38
The project builds successfully on my dev machine in Visual Studio or with MSBuild.
But Azure Pipelines msbuild does not pass the option
--multi-dex
that onto java.exe and build fails with following error: