{"action":"created","issue":{"url":"https://api.github.com/repos/xamarin/xamarin-android/issues/2341","repository_url":"https://api.github.com/repos/xamarin/xamarin-android","labels_url":"https://api.github.com/repos/xamarin/xamarin-android/issues/2341/labels{/name}","comments_url":"https://api.github.com/repos/xamarin/xamarin-android/issues/2341/comments","events_url":"https://api.github.com/repos/xamarin/xamarin-android/issues/2341/events","html_url":"https://github.com/xamarin/xamarin-android/issues/2341","id":373809246,"node_id":"MDU6SXNzdWUzNzM4MDkyNDY=","number":2341,"title":"\"GenerateJavaStubs\" task failed unexpectedly","user":{"login":"cosminstirbu","id":7135690,"node_id":"MDQ6VXNlcjcxMzU2OTA=","avatar_url":"https://avatars1.githubusercontent.com/u/7135690?v=4","gravatar_id":"","url":"https://api.github.com/users/cosminstirbu","html_url":"https://github.com/cosminstirbu","followers_url":"https://api.github.com/users/cosminstirbu/followers","following_url":"https://api.github.com/users/cosminstirbu/following{/other_user}","gists_url":"https://api.github.com/users/cosminstirbu/gists{/gist_id}","starred_url":"https://api.github.com/users/cosminstirbu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosminstirbu/subscriptions","organizations_url":"https://api.github.com/users/cosminstirbu/orgs","repos_url":"https://api.github.com/users/cosminstirbu/repos","events_url":"https://api.github.com/users/cosminstirbu/events{/privacy}","received_events_url":"https://api.github.com/users/cosminstirbu/received_events","type":"User","site_admin":false},"labels":[{"id":445372093,"node_id":"MDU6TGFiZWw0NDUzNzIwOTM=","url":"https://api.github.com/repos/xamarin/xamarin-android/labels/need-info","name":"need-info","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":{"login":"dellis1972","id":810617,"node_id":"MDQ6VXNlcjgxMDYxNw==","avatar_url":"https://avatars3.githubusercontent.com/u/810617?v=4","gravatar_id":"","url":"https://api.github.com/users/dellis1972","html_url":"https://github.com/dellis1972","followers_url":"https://api.github.com/users/dellis1972/followers","following_url":"https://api.github.com/users/dellis1972/following{/other_user}","gists_url":"https://api.github.com/users/dellis1972/gists{/gist_id}","starred_url":"https://api.github.com/users/dellis1972/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dellis1972/subscriptions","organizations_url":"https://api.github.com/users/dellis1972/orgs","repos_url":"https://api.github.com/users/dellis1972/repos","events_url":"https://api.github.com/users/dellis1972/events{/privacy}","received_events_url":"https://api.github.com/users/dellis1972/received_events","type":"User","site_admin":false},"assignees":[{"login":"dellis1972","id":810617,"node_id":"MDQ6VXNlcjgxMDYxNw==","avatar_url":"https://avatars3.githubusercontent.com/u/810617?v=4","gravatar_id":"","url":"https://api.github.com/users/dellis1972","html_url":"https://github.com/dellis1972","followers_url":"https://api.github.com/users/dellis1972/followers","following_url":"https://api.github.com/users/dellis1972/following{/other_user}","gists_url":"https://api.github.com/users/dellis1972/gists{/gist_id}","starred_url":"https://api.github.com/users/dellis1972/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dellis1972/subscriptions","organizations_url":"https://api.github.com/users/dellis1972/orgs","repos_url":"https://api.github.com/users/dellis1972/repos","events_url":"https://api.github.com/users/dellis1972/events{/privacy}","received_events_url":"https://api.github.com/users/dellis1972/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-10-25T07:29:58Z","updated_at":"2018-10-26T09:48:12Z","closed_at":null,"author_association":"NONE","body":"### Steps to Reproduce\r\n\r\nThis issue reproduces quite randomly, and it is among other random build / runtime issues caused by Xamarin.Android - at least when using Visual Studio 4 Mac.\r\n\r\nThis is one of the little things that makes Xamarin.Android development really painful un Visual Studio 4 Mac :(\r\n\r\n```\r\nBuild FAILED.\r\n\r\n/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2152,3): error MSB4018: The \"GenerateJavaStubs\" task failed unexpectedly.\r\n/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2152,3): error MSB4018: System.IO.FileNotFoundException: obj/Debug/android/typemap.jm.new does not exist\r\n/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2152,3): error MSB4018: File name: 'obj/Debug/android/typemap.jm.new'\r\n/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2152,3): error MSB4018:   at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, System.Boolean overwrite) [0x00193] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-02/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.IO/File.cs:111 \r\n/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2152,3): error MSB4018:   at Xamarin.Android.Tools.Files.CopyIfChanged (System.String source, System.String destination) [0x00027] in <c304dcc9c82e4174bfeded58a523ee7b>:0 \r\n/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2152,3): error MSB4018:   at Xamarin.Android.Tasks.GenerateJavaStubs.UpdateWhenChanged (System.String path, System.Action`1[T] generator) [0x00026] in <c304dcc9c82e4174bfeded58a523ee7b>:0 \r\n/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2152,3): error MSB4018:   at Xamarin.Android.Tasks.GenerateJavaStubs.WriteTypeMappings (System.Collections.Generic.List`1[T] types) [0x00073] in <c304dcc9c82e4174bfeded58a523ee7b>:0 \r\n/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2152,3): error MSB4018:   at Xamarin.Android.Tasks.GenerateJavaStubs.Run (Java.Interop.Tools.Cecil.DirectoryAssemblyResolver res) [0x0018c] in <c304dcc9c82e4174bfeded58a523ee7b>:0 \r\n/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2152,3): error MSB4018:   at Xamarin.Android.Tasks.GenerateJavaStubs.Execute () [0x0023c] in <c304dcc9c82e4174bfeded58a523ee7b>:0 \r\n/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2152,3): error MSB4018:   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () [0x00023] in /_/src/Build/BackEnd/TaskExecutionHost/TaskExecutionHost.cs:631 \r\n/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2152,3): error MSB4018:   at Microsoft.Build.BackEnd.TaskBuilder+<ExecuteInstantiatedTask>d__26.MoveNext () [0x00212] in /_/src/Build/BackEnd/Components/RequestBuilder/TaskBuilder.cs:787 \r\n    0 Warning(s)\r\n    1 Error(s)\r\n\r\n```\r\n\r\n### Log File\r\n\r\n```\r\nVisual Studio Enterprise 2017 for Mac\r\nVersion 7.6.9 (build 22)\r\nInstallation UUID: 1ede8c5d-9d75-419f-82a5-a4e553d2c07f\r\nRuntime:\r\n\tMono 5.12.0.309 (2018-02/39d89a335c8) (64-bit)\r\n\tGTK+ 2.24.23 (Raleigh theme)\r\n\tXamarin.Mac 4.4.1.178 (master / eeaeb7e6)\r\n\r\n\tPackage version: 512000309\r\n\r\nNuGet\r\nVersion: 4.3.1.4445\r\n\r\n.NET Core\r\nRuntime: /usr/local/share/dotnet/dotnet\r\nRuntime Versions:\r\n\t2.1.2\r\n\t2.1.1\r\n\t2.0.5\r\n\t2.0.0\r\n\t1.1.2\r\n\t1.0.5\r\nSDK: /usr/local/share/dotnet/sdk/2.1.302/Sdks\r\nSDK Versions:\r\n\t2.1.302\r\n\t2.1.301\r\n\t2.1.4\r\n\t2.0.0\r\n\t1.0.4\r\nMSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.12.0/lib/mono/msbuild/15.0/bin/Sdks\r\n\r\nXamarin.Profiler\r\nVersion: 1.6.3\r\nLocation: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler\r\n\r\nApple Developer Tools\r\nXcode 10.0 (14320.25)\r\nBuild 10A255\r\n\r\nXamarin.Mac\r\nVersion: 5.0.0.0 (Visual Studio Enterprise)\r\nHash: b40230c0\r\nBranch: \r\nBuild date: 2018-09-27 11:41:37-0400\r\n\r\nXamarin.iOS\r\nVersion: 12.0.0.15 (Visual Studio Enterprise)\r\nHash: 84552a46\r\nBranch: xcode10\r\nBuild date: 2018-09-17 21:54:33-0400\r\n\r\nXamarin.Android\r\nVersion: 9.0.0.20 (Visual Studio Enterprise)\r\nAndroid SDK: /Users/cosminstirbu/Documents/sdk\r\n\tSupported Android versions:\r\n\t\t5.1 (API level 22)\r\n\t\t6.0 (API level 23)\r\n\t\t7.0 (API level 24)\r\n\t\t7.1 (API level 25)\r\n\t\t8.0 (API level 26)\r\n\t\t8.1 (API level 27)\r\n\r\nSDK Tools Version: 26.1.1\r\nSDK Platform Tools Version: 28.0.0\r\nSDK Build Tools Version: 28.0.2\r\n\r\nJava SDK: /usr\r\njava version \"1.8.0_45\"\r\nJava(TM) SE Runtime Environment (build 1.8.0_45-b14)\r\nJava HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)\r\n\r\nAndroid Designer EPL code available here:\r\nhttps://github.com/xamarin/AndroidDesigner.EPL\r\n\r\nXamarin Inspector\r\nVersion: 1.4.3\r\nHash: db27525\r\nBranch: 1.4-release\r\nBuild date: Mon, 09 Jul 2018 21:20:18 GMT\r\nClient compatibility: 1\r\n\r\nBuild Information\r\nRelease ID: 706090022\r\nGit revision: 0a0ba3c4593e9adb1c6ff6324e641036146af376\r\nBuild date: 2018-10-05 16:38:51+00\r\nBuild branch: release-7.6\r\nXamarin extensions: f7856b13f2c03a58e08381d3a5970bba18f5c7d7\r\n\r\nOperating System\r\nMac OS X 10.13.6\r\nDarwin 17.7.0 Darwin Kernel Version 17.7.0\r\n    Thu Jun 21 22:53:14 PDT 2018\r\n    root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64\r\n\r\nEnabled user installed extensions\r\nAddinMaker 1.4.3\r\nFileNesting 0.1.1\r\nMacaque Tips 0.1.2\r\nStyleCop Support 1.1.0.0\r\nxUnit.NET 2 testing framework support 0.7.5\r\nInternet of Things (IoT) development (Preview) 7.5.3\r\n```"},"comment":{"url":"https://api.github.com/repos/xamarin/xamarin-android/issues/comments/433352850","html_url":"https://github.com/xamarin/xamarin-android/issues/2341#issuecomment-433352850","issue_url":"https://api.github.com/repos/xamarin/xamarin-android/issues/2341","id":433352850,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzM1Mjg1MA==","user":{"login":"cosminstirbu","id":7135690,"node_id":"MDQ6VXNlcjcxMzU2OTA=","avatar_url":"https://avatars1.githubusercontent.com/u/7135690?v=4","gravatar_id":"","url":"https://api.github.com/users/cosminstirbu","html_url":"https://github.com/cosminstirbu","followers_url":"https://api.github.com/users/cosminstirbu/followers","following_url":"https://api.github.com/users/cosminstirbu/following{/other_user}","gists_url":"https://api.github.com/users/cosminstirbu/gists{/gist_id}","starred_url":"https://api.github.com/users/cosminstirbu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosminstirbu/subscriptions","organizations_url":"https://api.github.com/users/cosminstirbu/orgs","repos_url":"https://api.github.com/users/cosminstirbu/repos","events_url":"https://api.github.com/users/cosminstirbu/events{/privacy}","received_events_url":"https://api.github.com/users/cosminstirbu/received_events","type":"User","site_admin":false},"created_at":"2018-10-26T09:48:12Z","updated_at":"2018-10-26T09:48:12Z","author_association":"NONE","body":"I will turn on diagnostics and when it will reproduce again I will provide the logs. Since it is fairly random, can't come back with a timeline for that, but first time it will reproduce, I'll update this issue."}}
{"actor":{"display_login":"cosminstirbu"}}