MonoDroid HelloTabWidget教程未打包。
我们已经能够使用 monodroid 运行和测试除 hellotabwidget 之外的所有示例小部件。打包失败并且没有出现错误。有人可以发布选项卡小部件的工作示例或解释 monodroid 网站上的选项卡教程有什么问题吗?我们正在使用最新版本的 monodroid(刚刚发布但尚未购买)
http://mono- android.net/Tutorials/Hello_Views/Tab_Layout 是指向不起作用的教程的链接......我们编写了 monodroid,他们给了我们一种查看下面“错误”的方法,但这太疯狂了。
感谢您的任何帮助。
不幸的是,发生的情况是 Android aapt
工具报告错误,而 mandroid
无法正确捕获和报告该错误。 :-(
这将在下一个版本中修复,但与此同时,请遵循以下一系列(可怕的!)步骤来确定实际错误:
打开 Visual Studio 命令提示符 (2010),下文称为作为终端: 开始->所有程序 ->微软 Visual Studio 2010 -> Visual Studio 工具 -> Visual Studio 命令提示符 (2010)
在终端中,导航到您的项目目录。
运行以下命令:
<块引用>MSBUILD /t:安装 YOUR.csproj /p:MandroidExtraArgs=-v=10
运行在大量输出中,您想要查找如下所示的行:
运行命令: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>
- < p>运行以下命令:<块引用>
cd obj\Debug\android
运行 执行(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:
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)Within the terminal, navigate to your project directory.
Run the following command:
MSBUILD /t:Install YOUR.csproj /p:MandroidExtraArgs=-v=10
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"
Run the following command:
cd obj\Debug\android
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不知道什么是 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.
如果你只是发布了你收到的错误消息,你可以让人们更容易地提供帮助,特别是如果它真的很难得到的话。
无论如何,完整的代码是 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