啊?添加 SDK 1.6 后 Android 首选项页面拒绝加载
这个实在是太奇怪了。我有一个完美工作的 Eclipse + Android 2.2 SDK,在 Windows XP 下两者管理员帐户和 LUA(有限用户帐户)中工作。
然后我决定添加 Android 1.6 SDK(我只能通过管理员帐户来完成)。看起来一切顺利,因为它仍然可以完美运行——但仅限于该管理员帐户!
当我尝试在 LUA 下启动 Eclipse 时,收到以下错误消息框:
它将在 2-3 内消失秒并替换为:
然后我尝试检查“首选项”页面,但同样,我收到的只是错误消息:
和:
知道为什么会发生这种情况以及如何解决这个问题吗?
(我希望能够继续通过 LUA 工作)
更新:我已上传错误日志文件 (参考消息框中的“显示错误日志”),供您专家检查。希望这能揭开这个谜团。
This one is really weird. I had a perfectly working Eclipse + Android 2.2 SDK working in both Administrator account and LUA (Limited User Account) under Windows XP.
Then I decided to add the Android 1.6 SDK (I could do it from an Administrator account only). It seemed to have gone well, since it still works perfectly -- but only in that Administrator account!
When I try to start Eclipse under a LUA, I receive the following error message box:
Which disappears within 2-3 seconds and replaced with:
I then tried to check the Preferences page, but again, all I receive is error messages:
and:
Any idea why this is happening and how to fix this?
(I would love to be able to continue working from a LUA)
Update: I have uploaded the error log file (referred to in the "Show Error Log" in the message boxes), for your expert examination. Hopefully this can shed some light on the mystery.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
完整的答案有些复杂,涉及 Eclipse 的配置区域、工作区等。如果您有兴趣,这些都记录在 Eclipse 站点上。
但是有一种更简单、更直接的方法,因为您不会尝试通过网络在同一个副本上同时运行多个用户 - 在这种情况下您需要完整的答案。
只需将 Eclipse 安装在一个目录中,例如 C:/dev/Eclipse。确保您的受限用户和管理员都拥有对所有内容的写入权限。以受限用户身份运行 Eclipse。它应该立即启动,因为 Eclipse 不需要任何特权。
此时,如果您愿意,可以将其锁定为只读。默认情况下,所有配置都存储在 Eclipse 安装目录中。
我建议此时开始全新安装,以消除您可能引入的任何不一致之处。尽管您应该能够通过删除configure/目录的所有子目录(但不是config.ini)来重置内容。有一种官方方法可以做到这一点,但这是完整答案的一部分。 :=)
我还建议为每个用户使用不同的工作区,以避免任何权限问题。
但我的重要建议是——升级到 Windows 7,并且不要以管理员身份运行 Eclipse!
不管怎样,一旦你让它工作起来——将来升级,让受限用户完全可写 Eclipse 目录,然后以受限用户身份更新,然后在需要时再次使其只读。
注意:这是作弊方式。真正的答案是为每个用户提供自己的配置目录。这是唯一可行的,因为您可以控制两个用户并且可以协调任何更新。
The full answer is somewhat complex, concerning Eclipse's configuration area, the workspace area, etc. This is all documented on the Eclipse site, if you're interested.
But there's a simpler, more immediate approach, since you're not trying to run multiple users simultaneously on the same copy, over a network -- in which case you'd need the full answer.
Simply install Eclipse in a directory, say, C:/dev/Eclipse. Make sure both your limited user and your admin have write access to everything. Run Eclipse as the limited user. It should start right up, as there's nothing privileged that is needed by Eclipse.
At this point, you can lock it down as read-only if you desire. By default, all the configuration is stored within the Eclipse installation directory.
I'd suggest starting with a fresh install at this point, to eliminate any inconsistencies that you may have introduced. Though you should be able to reset things by deleting all the subdirectories of the configure/ directory (but not the config.ini). There's an official way to do that, but that's part of the full answer. :=)
I'd also suggest using a different workspace for each user, to avoid any permissions problems.
But my BIG suggestion is -- upgrade to Windows 7, and do NOT run Eclipse as an administrator!
Anyway, once you have it working -- to upgrade in the future, make the Eclipse directory completely writable by the limited user, and then update as the limited user, and then make it read-only again if needed.
Note: This is the cheating way. The REAL answer is to give each user their own configuration directory. This is only viable because you have control over both users and can coordinate any updates.
尝试通过下载二进制文件并解压缩并直接运行 .exe 而不是“安装”它来运行 eclipse。如果您配置了适当的路径,android工具应该以这种方式工作,并且如果eclipse没有“安装”,而是简单地从存档文件夹运行,它应该尝试将插件等下载到它自己的目录中(由您拥有)用户),这可能会解决您的问题。
我怀疑构建在 LUA 下运行的工具的 Android 开发人员,所以他们可能没有遇到这个问题......
Try running eclipse by downloading the binary and unzipping and directly running the .exe rather than "installing" it. The android tools should work this way if you configure the appropriate paths to them, and if eclipse isn't "installed" but simply run from a the archive folder, it should try to download plugins and such into its own directory (owned by your user), which may solve your problem.
I doubt the Android developers who built the tools run under LUAs, so they probably didn't run into this problem...
找到的解决方法:以管理员身份运行 Eclipse(右键单击 exe/快捷方式,然后选择“运行为...”,然后输入管理员密码)。
这是一种解决方法,而不是解决方案,但它确实允许我在登录 LUA 时继续工作。
感谢@David在这里建议了这个解决方案: Android ADT插件未显示在 Eclipse 中
更新:找到解决方案:
无需通过“运行方式”运行 Eclipse,也无需重新安装(这需要更多时间)。
Workaround found: Run Eclipse as Administrator (Right-click exe/shortcut, then select "Run as...", then enter Administrator's password).
This is a workaround, not a solution, but it does allow me to continue working while logged in LUA.
Thanks to @David who suggested this solution here: Android ADT Plugin doesn't show up in Eclipse
Update: Solution found:
That's it. No need to run Eclipse via "Run as". Also eliminates the need for a fresh install (which takes more time).