Xamarin-archive@1.5.0 (exit code: 1)

Hello.
I want to build projects Xamarin Android with Bitrise.But i have a problem when first used Bitrise.
When a project is building i have error "xamarin-archive@1.5.0 (exit code: 1) ", what does it mean?
Please ,help me !!!

Hi @zzsuzuki99

What’s in the log above the exit code 1 line? The reason should be there.

_SetupApplicationJavaClass:
Application Java class: android.support.multidex.MultiDexApplication
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: The “CheckDuplicateJavaLibraries” task failed unexpectedly. [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: System.IO.FileNotFoundException: Could not find file ‘obj/Release/library_projects/Xamarin.Android.Support.v13/library_project_imports/classes.jar’. [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: File name: ‘obj/Release/library_projects/Xamarin.Android.Support.v13/library_project_imports/classes.jar’ [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: at System.IO.__Error.WinIOError (System.Int32 errorCode, System.String maybeFullPath) [0x000c4] in <48b95f3df5804531818f80e28ec60191>:0 [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: at System.IO.FileInfo.get_Length () [0x0003f] in <48b95f3df5804531818f80e28ec60191>:0 [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: at (wrapper remoting-invoke-with-check) System.IO.FileInfo:get_Length () [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: at Xamarin.Android.Tasks.MonoAndroidHelper+SizeAndContentFileComparer.GetHashCode (System.IO.FileInfo obj) [0x00000] in <22f4472ad54849a788ab41bf838ed981>:0 [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: at System.Linq.Set1[TElement].InternalGetHashCode (TElement value) [0x00008] in <9da65c3aa2654e53b5f11b79677182e0>:0 [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj] /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: at System.Linq.Set1[TElement].Add (TElement value) [0x00000] in <9da65c3aa2654e53b5f11b79677182e0>:0 [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: at System.Linq.Enumerable+DistinctIterator1[TSource].MoveNext () [0x00083] in <9da65c3aa2654e53b5f11b79677182e0>:0 [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj] /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: at System.Linq.Enumerable+SelectEnumerableIterator2[TSource,TResult].ToArray () [0x00030] in <9da65c3aa2654e53b5f11b79677182e0>:0 [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable1[T] source) [0x0001f] in <9da65c3aa2654e53b5f11b79677182e0>:0 [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj] /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: at Xamarin.Android.Tasks.MonoAndroidHelper.DistinctFilesByContent (System.Collections.Generic.IEnumerable1[T] filePaths) [0x00058] in <22f4472ad54849a788ab41bf838ed981>:0 [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: at Xamarin.Android.Tasks.CheckDuplicateJavaLibraries.Execute () [0x000e5] in <22f4472ad54849a788ab41bf838ed981>:0 [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () [0x00023] in <828118f15a114690b469c442114160c8>:0 [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder+d__26.MoveNext () [0x00249] in <828118f15a114690b469c442114160c8>:0 [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj]
Done Building Project “/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj” (PackageForAndroid target(s)) – FAILED.
Build FAILED.
"/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj" (PackageForAndroid target) (1) ->
(_ValidateAndroidPackageProperties target) ->
/Users/vagrant/git/KaraokeApp.Droid/Properties/AndroidManifest.xml : warning XA4211: AndroidManifest.xml //uses-sdk/@android:targetSdkVersion ‘24’ is less than $(TargetFrameworkVersion) ‘v7.1’. Using API-25 for ACW compilation. [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj]
"/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj" (PackageForAndroid target) (1) ->
"/Users/vagrant/git/App.Core/App.Core.csproj" (default target) (2:2) ->
(ResolveAssemblyReferences target) ->
/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(2001,5): warning MSB3247: Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the “runtime” node in the application configuration file: [/Users/vagrant/git/App.Core/App.Core.csproj]
"/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj" (PackageForAndroid target) (1) ->
"/Users/vagrant/git/App.Core/App.Core.csproj" (default target) (2:2) ->
(CoreCompile target) ->
SignalR/SignalRConnection.cs(179,22): warning CS0168: The variable ‘ex’ is declared but never used [/Users/vagrant/git/App.Core/App.Core.csproj]
SignalR/SignalRConnection.cs(253,5): warning CS4014: Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the ‘await’ operator to the result of the call. [/Users/vagrant/git/App.Core/App.Core.csproj]
"/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj" (PackageForAndroid target) (1) ->
"/Users/vagrant/git/App.Droid/App.Droid.csproj" (default target) (3:2) ->
(ResolveAssemblyReferences target) ->
/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(2001,5): warning MSB3247: Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the “runtime” node in the application configuration file: [/Users/vagrant/git/App.Droid/App.Droid.csproj]
/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(2001,5): warning MSB3277: Found conflicts between different versions of the same dependent assembly that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. [/Users/vagrant/git/App.Droid/App.Droid.csproj]
"/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj" (PackageForAndroid target) (1) ->
"/Users/vagrant/git/App.Droid/App.Droid.csproj" (default target) (3:2) ->
(CoreCompile target) ->
Implementations/SQLiteImpl.cs(20,13): warning CS0162: Unreachable code detected [/Users/vagrant/git/App.Droid/App.Droid.csproj]
Helpers/Utilities/ImageUtils.cs(133,37): warning CS0618: ‘Activity.ManagedQuery(Uri, string[], string, string[], string)’ is obsolete: ‘deprecated’ [/Users/vagrant/git/App.Droid/App.Droid.csproj]
Helpers/Utilities/ImageUtils.cs(276,37): warning CS0618: ‘Activity.ManagedQuery(Uri, string[], string, string[], string)’ is obsolete: ‘deprecated’ [/Users/vagrant/git/App.Droid/App.Droid.csproj]
Implementations/PermissionHelper.cs(94,88): warning CS0618: ‘Settings.Secure.LocationProvidersAllowed’ is obsolete: ‘deprecated’ [/Users/vagrant/git/App.Droid/App.Droid.csproj]
Helpers/Utilities/DeviceUtils.cs(41,36): warning CS0618: ‘ConnectivityManager.GetNetworkInfo(ConnectivityType)’ is obsolete: ‘deprecated’ [/Users/vagrant/git/App.Droid/App.Droid.csproj]
Helpers/Utilities/ResourceUtil.cs(26,12): warning CS0618: ‘Resources.GetColor(int)’ is obsolete: ‘deprecated’ [/Users/vagrant/git/App.Droid/App.Droid.csproj]
Helpers/Utilities/ImageUtils.cs(589,20): warning CS0169: The field ‘ImageUtils.Width’ is never used [/Users/vagrant/git/App.Droid/App.Droid.csproj]
Containers/BaseActivity.cs(145,26): warning CS0169: The field ‘BaseActivity._currentLocation’ is never used [/Users/vagrant/git/App.Droid/App.Droid.csproj]
Helpers/Utilities/ImageUtils.cs(589,27): warning CS0169: The field ‘ImageUtils.Height’ is never used [/Users/vagrant/git/App.Droid/App.Droid.csproj]
Helpers/Utilities/ImageUtils.cs(589,35): warning CS0414: The field ‘ImageUtils.BorderWidth’ is assigned but its value is never used [/Users/vagrant/git/App.Droid/App.Droid.csproj]
"/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj" (PackageForAndroid target) (1) ->
"/Users/vagrant/git/KaraokeApp.Core/KaraokeApp.Core.csproj" (default target) (4:2) ->
ViewModels/BaseConnectRoomViewModel.cs(14,23): warning CS0067: The event ‘BaseConnectRoomViewModel.ShowConnectDialog’ is never used [/Users/vagrant/git/KaraokeApp.Core/KaraokeApp.Core.csproj]
"/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj" (PackageForAndroid target) (1) ->
(ResolveAssemblyReferences target) ->
/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(2001,5): warning MSB3277: Found conflicts between different versions of the same dependent assembly that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj]
"/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj" (PackageForAndroid target) (1) ->
(_CheckDuplicateJavaLibraries target) ->
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: The “CheckDuplicateJavaLibraries” task failed unexpectedly. [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: System.IO.FileNotFoundException: Could not find file ‘obj/Release/library_projects/Xamarin.Android.Support.v13/library_project_imports/classes.jar’. [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: File name: ‘obj/Release/library_projects/Xamarin.Android.Support.v13/library_project_imports/classes.jar’ [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: at System.IO.__Error.WinIOError (System.Int32 errorCode, System.String maybeFullPath) [0x000c4] in <48b95f3df5804531818f80e28ec60191>:0 [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: at System.IO.FileInfo.get_Length () [0x0003f] in <48b95f3df5804531818f80e28ec60191>:0 [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: at (wrapper remoting-invoke-with-check) System.IO.FileInfo:get_Length () [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: at Xamarin.Android.Tasks.MonoAndroidHelper+SizeAndContentFileComparer.GetHashCode (System.IO.FileInfo obj) [0x00000] in <22f4472ad54849a788ab41bf838ed981>:0 [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: at System.Linq.Set1[TElement].InternalGetHashCode (TElement value) [0x00008] in <9da65c3aa2654e53b5f11b79677182e0>:0 [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj] /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: at System.Linq.Set1[TElement].Add (TElement value) [0x00000] in <9da65c3aa2654e53b5f11b79677182e0>:0 [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: at System.Linq.Enumerable+DistinctIterator1[TSource].MoveNext () [0x00083] in <9da65c3aa2654e53b5f11b79677182e0>:0 [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj] /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: at System.Linq.Enumerable+SelectEnumerableIterator2[TSource,TResult].ToArray () [0x00030] in <9da65c3aa2654e53b5f11b79677182e0>:0 [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable1[T] source) [0x0001f] in <9da65c3aa2654e53b5f11b79677182e0>:0 [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj] /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: at Xamarin.Android.Tasks.MonoAndroidHelper.DistinctFilesByContent (System.Collections.Generic.IEnumerable1[T] filePaths) [0x00058] in <22f4472ad54849a788ab41bf838ed981>:0 [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: at Xamarin.Android.Tasks.CheckDuplicateJavaLibraries.Execute () [0x000e5] in <22f4472ad54849a788ab41bf838ed981>:0 [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () [0x00023] in <828118f15a114690b469c442114160c8>:0 [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj]
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(865,3): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder+d__26.MoveNext () [0x00249] in <828118f15a114690b469c442114160c8>:0 [/Users/vagrant/git/KaraokeApp.Droid/KaraokeApp.Droid.csproj]
18 Warning(s)
1 Error(s)

can you check through help me ??? Thanks

Can you please follow this guide How to debug your build locally / "It works on my Mac/PC but not on bitrise.io" and let us know how it goes?

Thank you for helping me !

sorry, but i do not yet know how to install bitrise cli. I use windows.Can you help me ???

Can you follow the first section? That should work on Windows too (the “Testing with a full clean git clone” one, until the “Test with the Bitrise CLI” section which requires Mac or Linux).