啊?添加 SDK 1.6 后 Android 首选项页面拒绝加载

发布于 2024-10-09 06:27:52 字数 1135 浏览 0 评论 0原文

这个实在是太奇怪了。我有一个完美工作的 Eclipse + Android 2.2 SDK,在 Windows XP 下两者管理员帐户 LUA(有限用户帐户)中工作。

然后我决定添加 Android 1.6 SDK(我只能通过管理员帐户来完成)。看起来一切顺利,因为它仍然可以完美运行——但仅限于该管理员帐户!

当我尝试在 LUA 下启动 Eclipse 时,收到以下错误消息框:

alt text

它将在 2-3 内消失秒并替换为:

alt text

然后我尝试检查“首选项”页面,但同样,我收到的只是错误消息:

alt text

和:

 alt text

知道为什么会发生这种情况以及如何解决这个问题吗?

(我希望能够继续通过 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:

alt text

Which disappears within 2-3 seconds and replaced with:

alt text

I then tried to check the Preferences page, but again, all I receive is error messages:

alt text

and:

alt text

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 技术交流群。

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

发布评论

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

评论(3

慕烟庭风 2024-10-16 06:27:52

完整的答案有些复杂,涉及 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.

深巷少女 2024-10-16 06:27:52

尝试通过下载二进制文件并解压缩并直接运行 .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...

慢慢从新开始 2024-10-16 06:27:52

找到的解决方法:以管理员身份运行 Eclipse(右键单击 exe/快捷方式,然后选择“运行为...”,然后输入管理员密码)。

这是一种解决方法,而不是解决方案,但它确实允许我在登录 LUA 时继续工作

感谢@David在这里建议了这个解决方案: Android ADT插件未显示在 Eclipse 中

更新:找到解决方案:

  1. 在 Windows XP Pro 中启用“安全”选项卡(““使用简单文件共享”。”)
  2. 将 LUA 帐户添加到 C:\具有修改权限的 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:

  1. Enable the Security tab in Windows XP Pro (""Use Simple File Sharing.")
  2. Add the LUA account to C:\eclipse with Modify permissions.

That's it. No need to run Eclipse via "Run as". Also eliminates the need for a fresh install (which takes more time).

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