启用Multi-Dex会使Azure Devops Xamarin Android构建失败

时间:2019-03-08 09:37:46

标签: xamarin.android azure-devops azure-pipelines

enter image description here 当我在Xamarin.Android Build中启用 Multi-Dex 时。构建失败,并出现以下错误。

##[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.
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. 
Done Building Project "<< MY Project Path>>" (PackageForAndroid target(s)) -- FAILED.


"<< MY Project Path>>" (PackageForAndroid target) (1) ->
(_CompileToDalvikWithDx target) -> 
  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. [<< MY Project Path>>]

    23 Warning(s)
    1 Error(s)

Time Elapsed 00:03:29.78
##[error]Process 'msbuild.exe' exited with code '1'.

注意 在我的本地计算机上,一切正常,没有任何问题。

0 个答案:

没有答案