收到“许可证文件丢失。请激活 Android 版 Mono。”从 VS2010 部署到模拟器时
我刚刚开始使用 Mono for Android,并使用此处的步骤安装它 http://mono-android.net /Installation/Visual_Studio 并遵循所有步骤 http://mono-android.net/Tutorials/ Hello_World 创建我的 Hello World 但我没有看到任何东西,直到我发现这篇文章启用调试日志 http://mono-android.net/Documentation/Troubleshoot 日志中的所有内容似乎都正常,除了我收到上述错误。
这是完整的日志
-- 启动过程 - 5/20/2011 7:48:39 PM -- 可执行文件: C:\Program Files\MSBuild\Novell\mandroid.exe 参数:-激活 附加 Java 路径:C:\Program Files\Java\jdk1.6.0_25\bin [STDERR] 许可证文件丢失。请激活 Android 版 Mono。 -- 启动过程 - 5/20/2011 7:48:40 PM -- 可执行文件: C:\Program Files\MSBuild\Novell\mandroid.exe 参数:-激活 附加 Java 路径:C:\Program Files\Java\jdk1.6.0_25\bin [STDERR] 许可证文件丢失。请激活 Android 版 Mono。 -- 启动过程 - 5/20/2011 7:48:40 PM -- 可执行文件:C:\Program Files\Android\android-sdk\platform-tools\adb.exe 参数:启动服务器 附加 Java 路径:C:\Program Files\Java\jdk1.6.0_25\bin [标准错误] -- 进程已完成 [5000] -- -- 启动过程 - 5/20/2011 7:48:40 PM -- 可执行文件:C:\Program Files\Android\android-sdk\platform-tools\adb.exe 参数:设备 附加 Java 路径:C:\Program Files\Java\jdk1.6.0_25\bin [STDOUT] 连接的设备列表 [标准输出] -- 启动过程 - 5/20/2011 7:48:42 PM -- 可执行文件:C:\Program Files\Android\android-sdk\platform-tools\adb.exe 参数:启动服务器 附加 Java 路径:C:\Program Files\Java\jdk1.6.0_25\bin [标准输出] [标准错误] -- 进程已完成 [5000] -- -- 启动过程 - 5/20/2011 7:48:42 PM -- 可执行文件:C:\Program Files\Android\android-sdk\platform-tools\adb.exe 参数:设备 附加 Java 路径:C:\Program Files\Java\jdk1.6.0_25\bin [STDOUT] 连接的设备列表 [标准输出] -- 启动过程 - 5/20/2011 7:48:43 PM -- 可执行文件:C:\Program Files\Android\android-sdk\tools\android.bat 参数:列出 avd 附加 Java 路径:C:\Program Files\Java\jdk1.6.0_25\bin [STDOUT] 可用的 Android 虚拟设备: [标准输出]名称:MonoDroid [STDOUT] 路径:C:\Users\Zubair.android\avd\MonoDroid.avd [STDOUT] 目标:Android 2.2(API 级别 8) [标准输出] 皮肤:HVGA [标准输出] SD卡:512M -- 启动过程 - 5/20/2011 7:48:44 PM -- 可执行文件:C:\Program Files\Android\android-sdk\platform-tools\adb.exe 参数:启动服务器 附加 Java 路径:C:\Program Files\Java\jdk1.6.0_25\bin [标准输出] [标准错误] -- 进程已完成 [5000] -- -- 启动过程 - 5/20/2011 7:48:44 PM -- 可执行文件:C:\Program Files\Android\android-sdk\platform-tools\adb.exe 参数:设备 附加 Java 路径:C:\Program Files\Java\jdk1.6.0_25\bin [STDOUT] 连接的设备列表 [标准输出] -- 启动过程 - 5/20/2011 7:48:45 PM -- 可执行文件:C:\Program Files\Android\android-sdk\tools\emulator.exe 参数:-partition-size 512 -avd MonoDroid -prop monodroid.avdname=MonoDroid 附加 Java 路径:C:\Program Files\Java\jdk1.6.0_25\bin -- 启动过程 - 5/20/2011 7:48:46 PM -- 可执行文件:C:\Program Files\Android\android-sdk\platform-tools\adb.exe 参数:启动服务器 附加 Java 路径:C:\Program Files\Java\jdk1.6.0_25\bin -- 进程已完成 [5000] -- -- 启动过程 - 5/20/2011 7:48:46 PM -- 可执行文件:C:\Program Files\Android\android-sdk\platform-tools\adb.exe 参数:设备 附加 Java 路径:C:\Program Files\Java\jdk1.6.0_25\bin [STDOUT] 连接的设备列表 [STDOUT] emulator-5554 离线 [标准输出] -- 启动过程 - 5/20/2011 7:48:46 PM -- 可执行文件:C:\Program Files\Android\android-sdk\platform-tools\adb.exe 参数:-s emulator-5554 shell getprop monodroid.avdname 附加 Java 路径:C:\Program Files\Java\jdk1.6.0_25\bin [STDERR] 错误:设备离线 -- 进程仍在运行 [5000] -- -- 启动过程 - 5/20/2011 7:48:52 PM -- 可执行文件:C:\Program Files\Android\android-sdk\platform-tools\adb.exe 参数:启动服务器 附加 Java 路径:C:\Program Files\Java\jdk1.6.0_25\bin [标准输出] [标准错误] -- 进程已完成 [5000] -- -- 启动过程 - 5/20/2011 7:48:52 PM -- 可执行文件:C:\Program Files\Android\android-sdk\platform-tools\adb.exe 参数:设备 附加 Java 路径:C:\Program Files\Java\jdk1.6.0_25\bin [STDOUT] 连接的设备列表 [标准输出]
I'm just starting with Mono for Android and installed it using the steps here http://mono-android.net/Installation/Visual_Studio and followed all the steps http://mono-android.net/Tutorials/Hello_World to create my Hello World abut I was not seeing anything, until I found this post to enable debug log http://mono-android.net/Documentation/Troubleshoot everything in the log seems to be ok except that I get the above error.
Here's the full log
-- Starting Process - 5/20/2011 7:48:39 PM --
Executable: C:\Program Files\MSBuild\Novell\mandroid.exe
Arguments: -activated
Appending Java path: C:\Program Files\Java\jdk1.6.0_25\bin
[STDERR] License file is missing. Please activate Mono for Android.
-- Starting Process - 5/20/2011 7:48:40 PM --
Executable: C:\Program Files\MSBuild\Novell\mandroid.exe
Arguments: -activated
Appending Java path: C:\Program Files\Java\jdk1.6.0_25\bin
[STDERR] License file is missing. Please activate Mono for Android.
-- Starting Process - 5/20/2011 7:48:40 PM --
Executable: C:\Program Files\Android\android-sdk\platform-tools\adb.exe
Arguments: start-server
Appending Java path: C:\Program Files\Java\jdk1.6.0_25\bin
[STDERR]
-- Process Finished [5000] --
-- Starting Process - 5/20/2011 7:48:40 PM --
Executable: C:\Program Files\Android\android-sdk\platform-tools\adb.exe
Arguments: devices
Appending Java path: C:\Program Files\Java\jdk1.6.0_25\bin
[STDOUT] List of devices attached
[STDOUT]
-- Starting Process - 5/20/2011 7:48:42 PM --
Executable: C:\Program Files\Android\android-sdk\platform-tools\adb.exe
Arguments: start-server
Appending Java path: C:\Program Files\Java\jdk1.6.0_25\bin
[STDOUT]
[STDERR]
-- Process Finished [5000] --
-- Starting Process - 5/20/2011 7:48:42 PM --
Executable: C:\Program Files\Android\android-sdk\platform-tools\adb.exe
Arguments: devices
Appending Java path: C:\Program Files\Java\jdk1.6.0_25\bin
[STDOUT] List of devices attached
[STDOUT]
-- Starting Process - 5/20/2011 7:48:43 PM --
Executable: C:\Program Files\Android\android-sdk\tools\android.bat
Arguments: list avd
Appending Java path: C:\Program Files\Java\jdk1.6.0_25\bin
[STDOUT] Available Android Virtual Devices:
[STDOUT] Name: MonoDroid
[STDOUT] Path: C:\Users\Zubair.android\avd\MonoDroid.avd
[STDOUT] Target: Android 2.2 (API level 8)
[STDOUT] Skin: HVGA
[STDOUT] Sdcard: 512M
-- Starting Process - 5/20/2011 7:48:44 PM --
Executable: C:\Program Files\Android\android-sdk\platform-tools\adb.exe
Arguments: start-server
Appending Java path: C:\Program Files\Java\jdk1.6.0_25\bin
[STDOUT]
[STDERR]
-- Process Finished [5000] --
-- Starting Process - 5/20/2011 7:48:44 PM --
Executable: C:\Program Files\Android\android-sdk\platform-tools\adb.exe
Arguments: devices
Appending Java path: C:\Program Files\Java\jdk1.6.0_25\bin
[STDOUT] List of devices attached
[STDOUT]
-- Starting Process - 5/20/2011 7:48:45 PM --
Executable: C:\Program Files\Android\android-sdk\tools\emulator.exe
Arguments: -partition-size 512 -avd MonoDroid -prop monodroid.avdname=MonoDroid
Appending Java path: C:\Program Files\Java\jdk1.6.0_25\bin
-- Starting Process - 5/20/2011 7:48:46 PM --
Executable: C:\Program Files\Android\android-sdk\platform-tools\adb.exe
Arguments: start-server
Appending Java path: C:\Program Files\Java\jdk1.6.0_25\bin
-- Process Finished [5000] --
-- Starting Process - 5/20/2011 7:48:46 PM --
Executable: C:\Program Files\Android\android-sdk\platform-tools\adb.exe
Arguments: devices
Appending Java path: C:\Program Files\Java\jdk1.6.0_25\bin
[STDOUT] List of devices attached
[STDOUT] emulator-5554 offline
[STDOUT]
-- Starting Process - 5/20/2011 7:48:46 PM --
Executable: C:\Program Files\Android\android-sdk\platform-tools\adb.exe
Arguments: -s emulator-5554 shell getprop monodroid.avdname
Appending Java path: C:\Program Files\Java\jdk1.6.0_25\bin
[STDERR] error: device offline
-- Process Still Running [5000] --
-- Starting Process - 5/20/2011 7:48:52 PM --
Executable: C:\Program Files\Android\android-sdk\platform-tools\adb.exe
Arguments: start-server
Appending Java path: C:\Program Files\Java\jdk1.6.0_25\bin
[STDOUT]
[STDERR]
-- Process Finished [5000] --
-- Starting Process - 5/20/2011 7:48:52 PM --
Executable: C:\Program Files\Android\android-sdk\platform-tools\adb.exe
Arguments: devices
Appending Java path: C:\Program Files\Java\jdk1.6.0_25\bin
[STDOUT] List of devices attached
[STDOUT]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我发现我在按 Ctrl+F5 后没有选择设备,这样做了并且它可以工作,但是需要一段时间才能在模拟器上部署文件并运行。
I figured out that I wasn't selecting the device after hitting Ctrl+F5, did it and it works, it does however take a while to deploy the files on the emulator and run.
我不认为这是你真正的错误。我认为对于尚未激活的机器来说这是正常的消息。
您能否详细说明一下发生了什么,并告诉我们哪里发生了您没有预料到的事情?
I don't think that's your actual error. I think that's a normal message for a machine that hasn't been activated.
Can you walk through what does happen, and tell us where something is happening that you are not expecting?