[{"data":1,"prerenderedAt":417},["ShallowReactive",2],{"article-starting-emulator-for-avd-phone-x86-toolsforapachecordova":3},{"article":4,"tags":272,"previous":287,"next":378},{"id":5,"title":6,"author":7,"body":8,"createdAt":261,"description":262,"extension":263,"img":22,"meta":264,"navigation":265,"path":266,"seo":267,"stem":268,"tags":269,"updatedAt":261,"__hash__":271},"articles\u002Farticles\u002Fstarting-emulator-for-avd-phone-x86-toolsforapachecordova.md","Starting emulator for AVD 'Phone_x86_ToolsForApacheCordova","[object Object]",{"type":9,"value":10,"toc":259},"minimark",[11,25,34,71,74,77,86,101,112,119,122,125,133,144,153,156,166,169,183,186,196,199,209,212,221,224,232,242,249,252,255],[12,13,16],"a",{"href":14,"style":15},"\u002Farticles\u002Fimages\u002Fopen-live-writer-starting-emulator-for-avd-phone_x86_tool_a9fa-xam_2.png","display:none;",[17,18],"img",{"title":19,"style":20,"border":21,"alt":19,"src":22,"width":23,"height":24},"xam","border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px",0,"\u002Farticles\u002Fimages\u002Fopen-live-writer-starting-emulator-for-avd-phone_x86_tool_a9fa-xam_thumb.png",132,121,[26,27,28,29,33],"p",{},"Starting emulator with ",[30,31,32],"u",{},"Visual Studio 2017 RC"," error -",[35,36,41],"pre",{"className":37,"code":38,"language":39,"meta":40,"style":40},"language-html shiki shiki-themes github-light github-dark","“Starting emulator for AVD 'Phone_x86_ToolsForApacheCordova'emulator: \nERROR: x86 emulation currently requires hardware acceleration!Please ensure \nIntel HAXM is properly installed and usable.CPU acceleration status: \nPlease disable Hyper-V before using the Android Emulator. \n","html","",[42,43,44,53,59,65],"code",{"__ignoreMap":40},[45,46,49],"span",{"class":47,"line":48},"line",1,[45,50,52],{"class":51},"sVt8B","“Starting emulator for AVD 'Phone_x86_ToolsForApacheCordova'emulator: \n",[45,54,56],{"class":47,"line":55},2,[45,57,58],{"class":51},"ERROR: x86 emulation currently requires hardware acceleration!Please ensure \n",[45,60,62],{"class":47,"line":61},3,[45,63,64],{"class":51},"Intel HAXM is properly installed and usable.CPU acceleration status: \n",[45,66,68],{"class":47,"line":67},4,[45,69,70],{"class":51},"Please disable Hyper-V before using the Android Emulator.\n",[26,72,73],{},"Start a command prompt as Administrator, run 'bcdedit \u002Fset hypervisorlaunchtype off', reboot.”",[26,75,76],{},"References:",[26,78,79,82],{},[12,80],{"title":81,"href":81},"http:\u002F\u002Fstackoverflow.com\u002Fquestions\u002F26355645\u002Ferror-in-launching-avd-with-amd-processor",[12,83,81],{"href":81,"rel":84},[85],"nofollow",[35,87,89],{"className":37,"code":88,"language":39,"meta":40,"style":40},"C:\\Program Files (x86)\\Android\\android-sdk\\extras\\intel\\Hardware_Accelerated_Execution_Manager >intelhaxm-android.exe \nDisable Hyper V - dism.exe \u002FOnline \u002FDisable-Feature:Microsoft-Hyper-V  \n",[42,90,91,96],{"__ignoreMap":40},[45,92,93],{"class":47,"line":48},[45,94,95],{"class":51},"C:\\Program Files (x86)\\Android\\android-sdk\\extras\\intel\\Hardware_Accelerated_Execution_Manager >intelhaxm-android.exe \n",[45,97,98],{"class":47,"line":55},[45,99,100],{"class":51},"Disable Hyper V - dism.exe \u002FOnline \u002FDisable-Feature:Microsoft-Hyper-V\n",[26,102,103],{},[12,104,106],{"href":105},"\u002Farticles\u002Fimages\u002Fopen-live-writer-starting-emulator-for-avd-phone_x86_tool_a9fa-image_2.png",[17,107],{"title":108,"style":20,"border":21,"alt":108,"src":109,"width":110,"height":111},"image","\u002Farticles\u002Fimages\u002Fopen-live-writer-starting-emulator-for-avd-phone_x86_tool_a9fa-image_thumb.png",334,255,[26,113,114],{},[12,115,118],{"href":116,"target":117},"http:\u002F\u002Fhttps:\u002F\u002Fsoftware.intel.com\u002Fen-us\u002Fandroid\u002Farticles\u002Finstallation-instructions-for-intel-hardware-accelerated-execution-manager-windows","_blank","Installation Instructions for Intel® Hardware Accelerated Execution Manager (Intel® HAXM) - Microsoft Windows*",[26,120,121],{},"At this point, I felt that it must have been disabled in my BIOS. Taking another moment I started looking for the Visual Studio Android emulator (this is the one that I had used after Xamarin Player was deprecated. I found that I could start this manually by searching for Visual Studio Emulator for Android.",[26,123,124],{},"It would start fine but Visual Studio would not allow me to deploy to it.  I went back to the Visual Studio 2017 installer and then found an individual component “Visual Studio Emulator for Android” that was not installed. I selected and proceeded to install. You can follow these instructions on how to find the 2017 installer",[26,126,127,130],{},[12,128],{"title":129,"href":129},"https:\u002F\u002Fdeveloper.xamarin.com\u002Fguides\u002Fcross-platform\u002Ftroubleshooting\u002Fquestions\u002Fvisualstudio-2017-rc\u002F",[12,131,129],{"href":129,"rel":132},[85],[26,134,135],{},[12,136,138],{"href":137},"\u002Farticles\u002Fimages\u002Fopen-live-writer-starting-emulator-for-avd-phone_x86_tool_a9fa-image_4.png",[17,139],{"title":108,"style":140,"border":21,"alt":108,"src":141,"width":142,"height":143},"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px","\u002Farticles\u002Fimages\u002Fopen-live-writer-starting-emulator-for-avd-phone_x86_tool_a9fa-image_thumb_1.png",336,294,[26,145,146],{},[12,147,149],{"href":148},"\u002Farticles\u002Fimages\u002Fopen-live-writer-starting-emulator-for-avd-phone_x86_tool_a9fa-image_6.png",[17,150],{"title":108,"style":140,"border":21,"alt":108,"src":151,"width":152,"height":24},"\u002Farticles\u002Fimages\u002Fopen-live-writer-starting-emulator-for-avd-phone_x86_tool_a9fa-image_thumb_2.png",240,[26,154,155],{},"Now after above installation it found on the Tools menu",[26,157,158],{},[12,159,161],{"href":160},"\u002Farticles\u002Fimages\u002Fopen-live-writer-starting-emulator-for-avd-phone_x86_tool_a9fa-image_16.png",[17,162],{"title":108,"style":140,"border":21,"alt":108,"src":163,"width":164,"height":165},"\u002Farticles\u002Fimages\u002Fopen-live-writer-starting-emulator-for-avd-phone_x86_tool_a9fa-image_thumb_7.png",298,350,[26,167,168],{},"Launch – so I returned to my simple template App and hit debug run with “7 KitKat (4.5)..” emulator. This time the Visual Studio Android emulator started. This is small progress. Watching the Output window however I noticed the following error.",[26,170,171],{},[172,173,174,175,178,179],"em",{},"02-04 12:47:32.605 D\u002FMono ( 1267): AOT module 'mscorlib.dll.so' not found: dlopen failed: library \"\u002Fdata\u002Fapp-lib\u002FApp1.Droid-2\u002Flibaot-mscorlib.dll.so\" not found02-04 12:47:32.605 D\u002FMono ( 1267): AOT module '\u002FUsers\u002Fbuilder\u002Fdata\u002Flanes\u002F4009\u002F3d959b66\u002Fsource\u002Fmonodroid\u002Fbuilds\u002Finstall\u002Fmono-x86\u002Flib\u002Fmono\u002Faot-cache\u002Fx86\u002Fmscorlib.dll.so' not found: dlopen failed: library \"\u002Fdata\u002Fapp-lib\u002FApp1.Droid-2\u002Flibaot-mscorlib.dll.so\" not found02-04 12:47:32.621 D\u002FMono ( 1267): Config attempting to parse: 'mscorlib.dll.config'.02-04 12:47:32.621 D\u002FMono ( 1267): Config attempting to parse: '\u002FUsers\u002Fbuilder\u002Fdata\u002Flanes\u002F4009\u002F3d959b66\u002Fsource\u002Fmonodroid\u002Fbuilds\u002Finstall\u002Fmono-x86\u002Fetc\u002Fmono\u002Fassemblies\u002Fmscorlib\u002Fmscorlib.config'.02-04 12:47:32.677 D\u002FMono ( 1267): Assembly mscorlib",[45,176,177],{},"0xb85ce5c0"," added to domain RootDomain, ref_count=1",[180,181,182],"strong",{},"Could not connect to the debugger.",[26,184,185],{},"At least now, the Android emulator started and it would deploy to the device. I also could run the App on the device. So why would the debugger not attach?",[26,187,188],{},[12,189,191],{"href":190},"\u002Farticles\u002Fimages\u002Fopen-live-writer-starting-emulator-for-avd-phone_x86_tool_a9fa-image_8.png",[17,192],{"title":108,"style":140,"border":21,"alt":108,"src":193,"width":194,"height":195},"\u002Farticles\u002Fimages\u002Fopen-live-writer-starting-emulator-for-avd-phone_x86_tool_a9fa-image_thumb_3.png",376,138,[26,197,198],{},"I disabled “Fast Deploy” and retried. Well it would deploy the app but again the debugger was not attached.",[26,200,201],{},[12,202,204],{"href":203},"\u002Farticles\u002Fimages\u002Fopen-live-writer-starting-emulator-for-avd-phone_x86_tool_a9fa-image_10.png",[17,205],{"title":108,"style":140,"border":21,"alt":108,"src":206,"width":207,"height":208},"\u002Farticles\u002Fimages\u002Fopen-live-writer-starting-emulator-for-avd-phone_x86_tool_a9fa-image_thumb_4.png",373,28,[26,210,211],{},"Looking at the Hyper-V manager",[26,213,214],{},[12,215,217],{"href":216},"\u002Farticles\u002Fimages\u002Fopen-live-writer-starting-emulator-for-avd-phone_x86_tool_a9fa-image_12.png",[17,218],{"title":108,"style":140,"border":21,"alt":108,"src":219,"width":152,"height":220},"\u002Farticles\u002Fimages\u002Fopen-live-writer-starting-emulator-for-avd-phone_x86_tool_a9fa-image_thumb_5.png",47,[26,222,223],{},"Reading the reference blog indicated that I need to ‘Migrate to a physical computer with a different processor version” Reference:",[26,225,226,229],{},[12,227],{"title":228,"href":228},"https:\u002F\u002Fdzone.com\u002Farticles\u002Ffix-for-could-not-connect-to-the-debugger-while-de",[12,230,228],{"href":228,"rel":231},[85],[26,233,234],{},[12,235,237],{"href":236},"\u002Farticles\u002Fimages\u002Fopen-live-writer-starting-emulator-for-avd-phone_x86_tool_a9fa-image_14.png",[17,238],{"title":108,"style":140,"border":21,"alt":108,"src":239,"width":240,"height":241},"\u002Farticles\u002Fimages\u002Fopen-live-writer-starting-emulator-for-avd-phone_x86_tool_a9fa-image_thumb_6.png",396,142,[26,243,244,245,248],{},"Retrying ",[45,246,247],{},">"," Debug run the emulator within Visual Studio 2017, the emulator started correctly..waiting..’is the debugger going to attach?’..suspense now waiting for the build-deploy process. And as the above reference article mentioned Visual Studio was stuck in the preparing stage.",[26,250,251],{},"It recommended that internet connection sharing enabled, so I would need to figure out how\u002Fwhere to disable\u002Fenable ‘Internet Sharing’ Using “services.msc” I found ‘Internet Connection Sharing” mine was set to Manual (Trigger Start) –which should be ok? Oddly, I was stuck here and had no idea why it was stuck in the deploy phase. After another hour I enabled by WIFI on my pc. I had it disabled to ensure I was connected via hard-wire.",[26,253,254],{},"Well once I enabled WIFI, then closed the emulators and restarted it all started working, and I could step through my Xamarin Forms app once again with Visual Studio 2017.",[256,257,258],"style",{},"html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":40,"searchDepth":55,"depth":55,"links":260},[],"2017-02-04T06:37:38.8900000-05:00","Starting Android Emulator with AVD","md",{},true,"\u002Farticles\u002Fstarting-emulator-for-avd-phone-x86-toolsforapachecordova",{"title":6,"description":262},"articles\u002Fstarting-emulator-for-avd-phone-x86-toolsforapachecordova",[270],"xamarin","-TAnMuDFqTG96UmSEUfTvEzvYi2HrDmTKpNmnIK5nFs",[273],{"id":274,"title":275,"body":276,"description":280,"extension":263,"img":281,"meta":282,"name":270,"navigation":265,"path":283,"seo":284,"stem":285,"__hash__":286},"tags\u002Ftags\u002Fxamarin.md","Xamarin",{"type":9,"value":277,"toc":278},[],{"title":40,"searchDepth":55,"depth":55,"links":279},[],"Xamarin is an open-source platform for building modern and performant applications for iOS, Android, and Windows with . NET. Xamarin is an abstraction layer that manages communication of shared code with underlying platform code.","https:\u002F\u002Fimages.unsplash.com\u002Fphoto-1598313183973-4effcded8d5e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=675&q=80",{},"\u002Ftags\u002Fxamarin",{"description":280},"tags\u002Fxamarin","deVB66I7cJMtWvqybFh5POf9LBCBwHNe-5ZGMOzV5G4",{"id":288,"title":289,"author":7,"body":290,"createdAt":370,"description":371,"extension":263,"img":294,"meta":372,"navigation":265,"path":373,"seo":374,"stem":375,"tags":376,"updatedAt":370,"__hash__":377},"articles\u002Farticles\u002Fvisual-studio-2017-ios-build-debug-error.md","Visual Studio 2017 IOS Build Debug Error",{"type":9,"value":291,"toc":368},[292,295,298,341,344,347,355,366],[17,293],{"title":19,"style":20,"border":21,"alt":19,"src":294,"width":23,"height":24},"\u002Farticles\u002Fimages\u002Fopen-live-writer-visual-studio-2017ios-build-debug-error_c406-xam_thumb.png",[26,296,297],{},"Ok, I got my Visual Studio Android emulator working, see prior blog post. Now focusing on IOS debug-run with a connected Mac.\nI got the following error..  Severity Code Description Project File Line Suppression State",[35,299,301],{"className":37,"code":300,"language":39,"meta":40,"style":40},"Error Could not copy the assembly '\u002FLibrary\u002FFrameworks\u002FXamarin.iOS.framework\u002FVersions\u002F10.4.0.97\u002Flib\u002Fmono\u002FXamarin.iOS\u002Fmscorlib.dll' to \n'\u002FUsers\u002Fdavidyardy\u002FLibrary\u002FCaches\u002FXamarin\u002Fmtbs\u002Fbuilds\u002FApp1.iOS\u002F820c43b5a93f812c648bedcbb5cd7ad5\u002Fbin\u002FiPhoneSimulator\u002FDebug\u002FApp1.iOS.app\u002F.monotouch-64\u002Fmscorlib.dll': \n\nAccess to the path \n\"\u002FLibrary\u002FFrameworks\u002FXamarin.iOS.framework\u002FVersions\u002F10.4.0.97\u002Flib\u002Fmono\u002FXamarin.iOS\u002Fmscorlib.dll.mdb\" \nor \"\u002FUsers\u002Fdavidyardy\u002FLibrary\u002FCaches\u002FXamarin\u002Fmtbs\u002Fbuilds\u002FApp1.iOS\u002F820c43b5a93f812c648bedcbb5cd7ad5\u002Fbin\u002FiPhoneSimulator\u002FDebug\u002FApp1.iOS.app\u002F.monotouch-64\u002Fmscorlib.dll.mdb\" is denied. \nApp1.iOS   \n",[42,302,303,308,313,318,323,329,335],{"__ignoreMap":40},[45,304,305],{"class":47,"line":48},[45,306,307],{"class":51},"Error Could not copy the assembly '\u002FLibrary\u002FFrameworks\u002FXamarin.iOS.framework\u002FVersions\u002F10.4.0.97\u002Flib\u002Fmono\u002FXamarin.iOS\u002Fmscorlib.dll' to \n",[45,309,310],{"class":47,"line":55},[45,311,312],{"class":51},"'\u002FUsers\u002Fdavidyardy\u002FLibrary\u002FCaches\u002FXamarin\u002Fmtbs\u002Fbuilds\u002FApp1.iOS\u002F820c43b5a93f812c648bedcbb5cd7ad5\u002Fbin\u002FiPhoneSimulator\u002FDebug\u002FApp1.iOS.app\u002F.monotouch-64\u002Fmscorlib.dll': \n",[45,314,315],{"class":47,"line":61},[45,316,317],{"emptyLinePlaceholder":265},"\n",[45,319,320],{"class":47,"line":67},[45,321,322],{"class":51},"Access to the path \n",[45,324,326],{"class":47,"line":325},5,[45,327,328],{"class":51},"\"\u002FLibrary\u002FFrameworks\u002FXamarin.iOS.framework\u002FVersions\u002F10.4.0.97\u002Flib\u002Fmono\u002FXamarin.iOS\u002Fmscorlib.dll.mdb\" \n",[45,330,332],{"class":47,"line":331},6,[45,333,334],{"class":51},"or \"\u002FUsers\u002Fdavidyardy\u002FLibrary\u002FCaches\u002FXamarin\u002Fmtbs\u002Fbuilds\u002FApp1.iOS\u002F820c43b5a93f812c648bedcbb5cd7ad5\u002Fbin\u002FiPhoneSimulator\u002FDebug\u002FApp1.iOS.app\u002F.monotouch-64\u002Fmscorlib.dll.mdb\" is denied. \n",[45,336,338],{"class":47,"line":337},7,[45,339,340],{"class":51},"App1.iOS\n",[26,342,343],{},"I made sure that my Mac Agent was connected and all seemed good there. I opened the with Xamarin Studio (on the Mac) and had the exact same error. Ok so this error is not isolated to only Visual Studio (or worse yet just 2017). I now have the problem on both Mac and Windows.",[26,345,346],{},"This could be related to the beta release\u002Fchannel of Xamarin. Ok, so the resolution was found with this bug\u002Fresolution posted here",[26,348,349,352],{},[12,350],{"title":351,"href":351},"https:\u002F\u002Fbugzilla.xamarin.com\u002Fshow_bug.cgi?id=52113",[12,353,351],{"href":351,"rel":354},[85],[26,356,357,358,361,362,365],{},"The full workaround is:",[359,360],"br",{},"\nsudo chmod 0644 \u002FLibrary\u002FFrameworks\u002FXamarin.iOS.framework\u002FVersions\u002FCurrent\u002Flib\u002Fmono\u002F",[172,363,364],{},"\u002F",".mdb",[256,367,258],{},{"title":40,"searchDepth":55,"depth":55,"links":369},[],"2017-02-05T04:02:44.7100000-05:00","Visual Studio and building IOS application",{},"\u002Farticles\u002Fvisual-studio-2017-ios-build-debug-error",{"title":289,"description":371},"articles\u002Fvisual-studio-2017-ios-build-debug-error",[270],"4aE_tqAmn0sxAwUmT9lVPkIatZrjaCo1WRB0ak5dzjA",{"id":379,"title":380,"author":7,"body":381,"createdAt":409,"description":410,"extension":263,"img":406,"meta":411,"navigation":265,"path":412,"seo":413,"stem":414,"tags":415,"updatedAt":409,"__hash__":416},"articles\u002Farticles\u002Fbuild-action-embeddedresource.md","Build action 'EmbeddedResource'",{"type":9,"value":382,"toc":407},[383,386,389,392],[26,384,385],{},"If you have seen the following the following build errors within Xamarin Forms application…",[26,387,388],{},"“Build action 'EmbeddedResource' is not supported by one or more of the project's targets.”",[26,390,391],{},"The resolution is to open the properties on the xaml file, change the build action to something else other than Embedded Resource then change it back. ",[26,393,394,395,397,398,400],{},"The build error goes away and everything is good.  The error however does not stop building\u002Frunning the solution however it can be avoided to.",[359,396],{},"\n ",[359,399],{},[12,401,403],{"href":402},"\u002Farticles\u002Fimages\u002Fopen-live-writer-build-action-embeddedresource_8fb4-xam_2.png",[17,404],{"style":405,"src":406,"border":21,"alt":19,"title":19,"width":23,"height":24},"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border: 0px;","\u002Farticles\u002Fimages\u002Fopen-live-writer-build-action-embeddedresource_8fb4-xam_thumb.png",{"title":40,"searchDepth":55,"depth":55,"links":408},[],"2017-02-03T03:16:12.9500000-05:00",null,{},"\u002Farticles\u002Fbuild-action-embeddedresource",{"title":380,"description":410},"articles\u002Fbuild-action-embeddedresource",[270],"wt8tNrcjYv7LyIwiCgmGm9SubVJWPaRsHMKv_TYDmjU",1781574770643]