【发布时间】:2017-04-29 18:08:22
【问题描述】:
我是 Xamarin 的新手,并尝试使用 Visual Studio 2015 构建我的第一个应用程序, 这是我正在关注的教程:Xamarin - First Application
但是,当我尝试构建/重建项目时,它似乎处于冻结状态。它不断运行(重建),不确定时间限制。 我现在很沮丧。
谁能帮我解决这个问题?
这是我的日志:
[I:sdk]: Key HKCU\SOFTWARE\Android SDK Tools\Path not found.
[I:sdk]: Key HKLM\SOFTWARE\Android SDK Tools\Path found:
Path contains adb in \platform-tools (C:\Program Files (x86)\Android\android-sdk).
[I:sdk]: Key HKCU\SOFTWARE\Novell\Mono for Android\JavaSdkDirectory not found.
[I:sdk]: Key HKLM\SOFTWARE\Novell\Mono for Android\JavaSdkDirectory not found.
[I:sdk]: Looking for Java 6 SDK..
[I:sdk]: Key HKLM\SOFTWARE\JavaSoft\Java Development Kit\CurrentVersion found.
[I:sdk]: Key HKLM\SOFTWARE\JavaSoft\Java Development Kit\1.6\JavaHome not found.
[I:sdk]: Key HKLM\SOFTWARE\JavaSoft\Java Development Kit\1.7\JavaHome found:
Path contains jarsigner.exe in \bin (C:\Program Files (x86)\Java\jdk1.7.0_55).
[I:]: Found Android SDK. API levels: 19, 21, 23
[I:]: Tracking android devices started
[D:]: Tracking avd started
[D:]: avd watcher *.ini path: 'C:\Users\hina\.android\avd'
[D:]: TrackDeviceTask got: ZY222VBJ9L device
[I:]: Got new device list from adb with 1 devices
[D:RunShellCommand]: ZY222VBJ9L getprop
[D:RunShellCommand]: ZY222VBJ9L getprop
[D:]: avd watcher: got device list from avd with 1 devices
[D:]: TrackDeviceTask got:
[I:]: Got new device list from adb with 0 devices
[D:]: TrackDeviceTask got: ZY222VBJ9L offline
[I:]: Got new device list from adb with 1 devices
[D:]: TrackDeviceTask got: ZY222VBJ9L device
[I:]: Got new device list from adb with 1 devices
[D:RunShellCommand]: ZY222VBJ9L getprop
[D:RunShellCommand]: ZY222VBJ9L getprop
[D:]: TrackDeviceTask got:
[I:]: Got new device list from adb with 0 devices
[D:]: TrackDeviceTask got: ZY222VBJ9L offline
[I:]: Got new device list from adb with 1 devices
[D:]: TrackDeviceTask got: ZY222VBJ9L device
[I:]: Got new device list from adb with 1 devices
[D:RunShellCommand]: ZY222VBJ9L getprop
[D:RunShellCommand]: ZY222VBJ9L getprop
[D:]: TrackDeviceTask got:
[I:]: Got new device list from adb with 0 devices
【问题讨论】:
-
尝试在 VS 中检查 Xamarin 和 Xamarin.Diagnostics 输出窗口以获取诊断消息。尝试检查是否有进程卡住的错误。
-
@degant:从哪里可以找到 VS 中的 Xamarin.Diagnostics?我正在使用社区版本 BTW
-
您的 输出 窗口应该有一个包含这些选项的下拉菜单。具有构建、调试、常规等选项的相同下拉列表。
-
非常感谢!@degant 我已将日志添加到问题中。
-
我似乎找不到这个日志有什么问题。您可能还需要检查其他几个窗口。该应用程序不是为您构建的,对吗?那么构建窗口说了什么?有错误信息吗?
标签: c# visual-studio xamarin visual-studio-2015 xamarin.android