MonoDroid HelloTabWidget教程未打包。

发布于 2024-11-01 09:31:40 字数 1747 浏览 0 评论 0原文

我们已经能够使用 monodroid 运行和测试除 hellotabwidget 之外的所有示例小部件。打包失败并且没有出现错误。有人可以发布选项卡小部件的工作示例或解释 monodroid 网站上的选项卡教程有什么问题吗?我们正在使用最新版本的 monodroid(刚刚发布但尚未购买)

http://mono- android.net/Tutorials/Hello_Views/Tab_Layout 是指向不起作用的教程的链接......我们编写了 monodroid,他们给了我们一种查看下面“错误”的方法,但这太疯狂了。

感谢您的任何帮助。

不幸的是,发生的情况是 Android aapt 工具报告错误,而 mandroid 无法正确捕获和报告该错误。 :-(

这将在下一个版本中修复,但与此同时,请遵循以下一系列(可怕的!)步骤来确定实际错误:

  1. 打开 Visual Studio 命令提示符 (2010),下文称为作为终端: 开始->所有程序 ->微软 Visual Studio 2010 -> Visual Studio 工具 -> Visual Studio 命令提示符 (2010)

  2. 在终端中,导航到您的项目目录。

  3. 运行以下命令:

    <块引用>

    MSBUILD /t:安装 YOUR.csproj /p:MandroidExtraArgs=-v=10

    运行
  4. 在大量输出中,您想要查找如下所示的行:

    运行命令:E:\Applications\Android\android-sdk-windows.r10\platform-tools\aapt "package" "-f" "-M" "AndroidManifest.xml" "-J" "src" " --custom-package" "p14test.p14test" "-F" "bin\packaged_resources" "-S" “E:\tmp\VSProjects\P14Test\P14Test\obj\Debug\res”“-I”“E:\Applications\Android\android-sdk-window s.r10\platforms\android-8\android.jar”< /p>

  5. < p>运行以下命令:

    <块引用>

    cd obj\Debug\android

    运行
  6. 执行(4)中引用的命令:

    <块引用>

    E:\Applications\Android\android-sdk-windows.r10\platform-tools\aapt "package" "-f" "-M" "AndroidManifest.xml" "-J" "src" "--custom -package" "p14test.p14test" "-F" "bin\packaged_resources" "-S" “E:\tmp\VSProjects\P14Test\P14Test\obj\Debug\res”“-I”“E:\Applications\Android\android-sdk-window s.r10\platforms\android-8\android.jar”< /p>

你现在应该能够看到丢失的错误消息。

感谢您对此提供帮助......

We have been able to run and test all the example widgets with monodroid except the hellotabwidget. It fails to package and the error is not presented. Can someone please post a working example of the tab widget or explain what is wrong with the tab tutorial on the monodroid website? We are using the latest version of monodroid (just released but have not purchased yet)

http://mono-android.net/Tutorials/Hello_Views/Tab_Layout is the link to the tutorial that is not working..... We wrote monodroid and they gave us a way to see the "error" below but this is crazy.

Thanks for any assistance.

Unfortunately, what's happening is that the Android aapt tool is reporting an error and mandroid isn't properly capturing and reporting that error. :-(

This will be fixed in the next release, but in the meantime here is a (horrible!) sequence of steps to follow to determine the actual error:

  1. Open a Visual Studio Command Prompt (2010), hereinafter referred to as the terminal:
    Start -> All Programs -> Microsoft Visual Studio 2010 -> Visual Studio Tools -> Visual Studio Command Prompt (2010)

  2. Within the terminal, navigate to your project directory.

  3. Run the following command:

    MSBUILD /t:Install YOUR.csproj /p:MandroidExtraArgs=-v=10

  4. In the voluminous output, you want to look for the line that looks like:

    Running command: E:\Applications\Android\android-sdk-windows.r10\platform-tools\aapt "package" "-f" "-M" "AndroidManifest.xml" "-J" "src" "--custom-package" "p14test.p14test" "-F" "bin\packaged_resources" "-S" "E:\tmp\VSProjects\P14Test\P14Test\obj\Debug\res" "-I" "E:\Applications\Android\android-sdk-window s.r10\platforms\android-8\android.jar"

  5. Run the following command:

    cd obj\Debug\android

  6. Execute the command referenced in (4):

    E:\Applications\Android\android-sdk-windows.r10\platform-tools\aapt "package" "-f" "-M" "AndroidManifest.xml" "-J" "src" "--custom-package" "p14test.p14test" "-F" "bin\packaged_resources" "-S" "E:\tmp\VSProjects\P14Test\P14Test\obj\Debug\res" "-I" "E:\Applications\Android\android-sdk-window s.r10\platforms\android-8\android.jar"

You should now be able to see the lost error message.

Thanks for helping on this....

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

独留℉清风醉 2024-11-08 09:31:40

我不知道什么是 monodroid,但看起来该教程与 Android SDK 教程相同,但已损坏。请参阅

Android TabHost 示例的问题

了解如何修复该问题。

I've no idea what monodroid is, but it looks like the tutorial is the same as the Android SDK tutorial which is broken. See

Issues with Android TabHost Example

on how to fix it.

暮光沉寂 2024-11-08 09:31:40

如果你只是发布了你收到的错误消息,你可以让人们更容易地提供帮助,特别是如果它真的很难得到的话。

无论如何,完整的代码是 API 演示示例应用程序的一部分,它可以在我的设备上运行:

You could have made it a lot easier for people to help if you had simply posted the error message you were getting, especially if it is really hard to get.

Regardless, the full code is part of the API Demo sample app, which works on my device:

https://github.com/mono/monodroid-samples/blob/master/ApiDemo/Tutorials/TabLayoutTutorial.cs

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文