Mono.AndroidTools.AdbException:没有这样的文件或目录

Posted

技术标签:

【中文标题】Mono.AndroidTools.AdbException:没有这样的文件或目录【英文标题】:Mono.AndroidTools.AdbException: No such file or directory 【发布时间】:2016-08-01 06:26:04 【问题描述】:

Xamarin 第一篇教程未部署。所以模拟器显示 Blank Screen 。谁能帮我 。请在 VS 15 中找到构建详细信息。

1>Starting deploy AVD_GalaxyNexus_ToolsForApacheCordova ...
1>Deploying AVD_GalaxyNexus_ToolsForApacheCordova ...
1>Build started.
1>C:\Program Files (x86)\MSBuild\14.0\bin\csc.exe /noconfig /nowarn:1701,1702,2008 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE;__XAMARIN_android_v1_0__;__MOBILE__;__ANDROID__;__ANDROID_1__;__ANDROID_2__;__ANDROID_3__;__ANDROID_4__;__ANDROID_5__;__ANDROID_6__;__ANDROID_7__;__ANDROID_8__;__ANDROID_9__;__ANDROID_10__;__ANDROID_11__;__ANDROID_12__;__ANDROID_13__;__ANDROID_14__;__ANDROID_15__;__ANDROID_16__;__ANDROID_17__;__ANDROID_18__;__ANDROID_19__;__ANDROID_20__;__ANDROID_21__;__ANDROID_22__;__ANDROID_23__ /errorendlocation /preferreduilang:en-US /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v6.0\Mono.Android.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\mscorlib.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.Linq.dll" /debug+ /debug:full /filealign:512 /optimize- /out:obj\Debug\Phonefirst.dll /ruleset:"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Team Tools\Static Analysis Tools\\Rule Sets\MinimumRecommendedRules.ruleset" /target:library /utf8output CodeFile1.cs MainActivity.cs PhonewordTranslator.cs Resources\Resource.Designer.cs Properties\AssemblyInfo.cs "C:\Users\Pabanas\AppData\Local\Temp\MonoAndroid,Version=v6.0.AssemblyAttributes.cs" obj\Debug\\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs obj\Debug\\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs obj\Debug\\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
1>The field 'MainActivity.count' is assigned but its value is never used
1>Phonefirst -> E:\Aims2015vesrion\Phonesoft\Phonefirst\Phonefirst\bin\Debug\Phonefirst.dll
1>  Processing: obj\Debug\res\layout\main.xml
1>  Processing: obj\Debug\res\values\strings.xml
******1>:Deployment failed
****1>Mono.AndroidTools.AdbException: No such file or directory
1>   at Mono.AndroidTools.Util.AggregateAsyncResult.CheckError(CancellationToken token)
1>   at Mono.AndroidTools.Adb.AdbSyncClient.EndPush(IAsyncResult result)
1>   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)**********
1>Deployment failed because of an internal error: No such file or directory
1>InternalError
1>Build succeeded.
1>Deploy successfully on AVD_GalaxyNexus_ToolsForApacheCordova
========== Deploy: 1 succeeded, 0 failed, 0 skipped ========== 

【问题讨论】:

你能解决这个问题吗? 面临同样的问题 问题解决了吗? 也在找这个 【参考方案1】:

尝试以管理员身份运行 Android SDK、模拟器、Visual Studio 等。这解决了我的问题,可能只是一种解决方法。

【讨论】:

以上是关于Mono.AndroidTools.AdbException:没有这样的文件或目录的主要内容,如果未能解决你的问题,请参考以下文章