无法构建 Xamarin.Forms 项目
Can't build Xamarin.Forms project
构建时出现以下错误。我收到源代码的 "Build Succeeded" 消息,但显然在尝试输出源文件时出了点问题。有人有什么想法吗?
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets:
Error: Tool exited with code: 1. Output: unknown output extension: obj/Debug/android/bin
usage:
dx --dex [--debug] [--verbose] [--positions=<style>] [--no-locals]
[--no-optimize] [--statistics] [--[no-]optimize-list=<file>] [--no-strict]
[--keep-classes] [--output=<file>] [--dump-to=<file>] [--dump-width=<n>]
[--dump-method=<name>[*]] [--verbose-dump] [--no-files] [--core-library]
[--num-threads=<n>] [--incremental] [--force-jumbo]
[<file>.class | <file>.{zip,jar,apk} | <directory>]
...Convert a set of classfiles into a dex file, optionally embedded in a
jar/zip.
Output name must end with one of: .dex .jar .zip .apk.
Positions
options: none, important, lines.
dx --annotool --annotation=<class> [--element=<element types>]
[--print=<print types>]
dx --dump [--debug] [--strict] [--bytes] [--optimize]
[--basic-blocks | --rop-blocks | --ssa-blocks | --dot] [--ssa-step=<step>]
[--width=<n>] [<file>.class | <file>.txt] ...
Dump classfiles, or transformations thereof, in a human-oriented format.
dx --find-usages <file.dex> <declaring type> <member>
Find references and declarations to a field or method.
declaring type: a class name in internal form, like Ljava/lang/Object;
member: a field or method name, like hashCode
dx -J<option> ... <arguments, in one of the above forms>
Pass VM-specific options to the virtual machine that runs dx.
dx --version
Print the version of this tool (1.7).
dx --help
Print this message.
(Zint.AddIt.Forms.Droid)
在 Xamarin Studio 下 -> 首选项 -> 项目 -> SDK 位置 -> Andorid 指向一个目录,我不再使用该目录进行更新的 SDK 更新。将其更改为指向正确的 SDK 目录并构建成功。
构建时出现以下错误。我收到源代码的 "Build Succeeded" 消息,但显然在尝试输出源文件时出了点问题。有人有什么想法吗?
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets:
Error: Tool exited with code: 1. Output: unknown output extension: obj/Debug/android/bin
usage:
dx --dex [--debug] [--verbose] [--positions=<style>] [--no-locals]
[--no-optimize] [--statistics] [--[no-]optimize-list=<file>] [--no-strict]
[--keep-classes] [--output=<file>] [--dump-to=<file>] [--dump-width=<n>]
[--dump-method=<name>[*]] [--verbose-dump] [--no-files] [--core-library]
[--num-threads=<n>] [--incremental] [--force-jumbo]
[<file>.class | <file>.{zip,jar,apk} | <directory>]
...Convert a set of classfiles into a dex file, optionally embedded in a
jar/zip.
Output name must end with one of: .dex .jar .zip .apk.
Positions
options: none, important, lines.
dx --annotool --annotation=<class> [--element=<element types>]
[--print=<print types>]
dx --dump [--debug] [--strict] [--bytes] [--optimize]
[--basic-blocks | --rop-blocks | --ssa-blocks | --dot] [--ssa-step=<step>]
[--width=<n>] [<file>.class | <file>.txt] ...
Dump classfiles, or transformations thereof, in a human-oriented format.
dx --find-usages <file.dex> <declaring type> <member>
Find references and declarations to a field or method.
declaring type: a class name in internal form, like Ljava/lang/Object;
member: a field or method name, like hashCode
dx -J<option> ... <arguments, in one of the above forms>
Pass VM-specific options to the virtual machine that runs dx.
dx --version
Print the version of this tool (1.7).
dx --help
Print this message.
(Zint.AddIt.Forms.Droid)
在 Xamarin Studio 下 -> 首选项 -> 项目 -> SDK 位置 -> Andorid 指向一个目录,我不再使用该目录进行更新的 SDK 更新。将其更改为指向正确的 SDK 目录并构建成功。