为什么我更新的Eclipse / Android的设置没有建立我的APK了吗? [英] Why is my updated Eclipse / Android setup not building my APK anymore?

查看:103
本文介绍了为什么我更新的Eclipse / Android的设置没有建立我的APK了吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个工作Eclipse设置与11版3.6.2和SDK工具,并已建立我的主要项目就好了好一阵子。

I had a working Eclipse setup with 3.6.2 and SDK tools from version 11, and it has been building my main project just fine for quite a while.

对于不同的项目,我想我需要升级我的SDK到最新和最伟大的 - 在这一点上API 14(ICS 4.0)

For a different project, I thought I needed to upgrade my SDK to the latest and greatest - at this point API 14 (ICS 4.0).

我甚至无法重建的步骤,我经历了,但实际情况是,我的项目似乎构建,但我会看到,它会说,这是跳绳后的编译器的步骤,并在最后我会没有APK。

I cannot even reconstruct the steps I went through, but what happened was that my project would seem to build, but I would see that it would say that it was skipping a post-compiler step, and at the end I would have no APK.

我也注意到,它更新了我的.classpath使输出路径是斌/类代替的.bin。

I also noticed that it updated my .classpath so that the output path was bin/classes instead of .bin.

随着我试图更新我的Eclipse到最新版本(3.7.1靛蓝),但是这并没有帮助。一路

Along the way I tried updating my Eclipse to the latest version (Indigo 3.7.1) but this didn't help.

推荐答案

我从这个职位上的谷歌Android论坛,终于解决了问题的帮助:

I solved the problem eventually with help from this post on the Google Android forum:

<一个href="http://$c$c.google.com/p/android/issues/detail?id=21031">http://$c$c.google.com/p/android/issues/detail?id=21031

就我个人而言,最大的问题似乎得到解决如下(在论坛上发帖qutoe从注释25) 我好像解决了与之前运行/调试时(评论#10,#11等)的apk文件没有自动生成问题转到Windows - > preferences - > Android的 - >生成,取消选择跳过包装和德兴出口前或启动,然后重新启动Eclipse。我的作品。

For me personally the biggest issue seemed to be solved as follows (qutoe from comment 25 in the forum post) "I seem to solve the problem with .apk files not being built automatically until run/debug is used (comments #10, #11 etc.). Go to Windows -> Preferences -> Android -> Build and uncheck "Skip packaging and dexing until export or launch" then restart Eclipse. Works for me."

但有没有其他有用的材料。不同的人有不同的项目似乎有不同的问题与此设置。

But there is other useful material there. Different people with different projects seem to have different problems with this setup.

我还是不明白,在类路径的变化,但它似乎并不重要。

I still don't understand the change in the classpath, but it doesn't seem to matter.

另外,我发现在安装使用Eclipse靛蓝的ADT这是有益的#1这里的讨论:

In addition, I found a discussion of installing the ADT with Eclipse Indigo which was helpful here in Stackoverflow:

<一个href="http://stackoverflow.com/questions/6482268/eclipse-indigo-cannot-install-android-adt-plugin">Eclipse靛蓝 - 无法安装Android ADT插件

我还发现,我猜是因为不同的卸载/重新安装的,由于某种原因停止从源头上排除我的.svn目录。这个帖子#1是与有帮助的:

I also found that I guess because of various uninstalls/reinstalls, for some reason it stopped excluding my .svn directories from the sources. This Stackoverflow post was helpful with that:

<一个href="http://stackoverflow.com/questions/1709810/why-is-eclipse-trying-to-copy-my-svn-folders-from-src-to-bin-and-how-can-i-mak">Why Eclipse是试图从SRC复制我的.svn文件夹仓,以及如何使它停下来?

最后:小费实实在在地卸载Eclipse的 - 大家都说没有卸载,并没有,但有一个目录的Eclipse离开你的家目录(在Windows 7下的C:\用户\)所谓.eclipse - ZAP它,如果你真的想重新开始。

Finally: a tip for really and truly uninstalling Eclipse - everybody says there is no uninstall, and there isn't, but there is a directory that Eclipse leaves in your home directory (in windows 7 under c:\users\) called .eclipse - Zap it if you really want to start fresh.

另外,对于不太极端的措施,还有项目 - >清除在Eclipse,你可以调用日食与额外的清洁效果日食-clean。不知道是什么,但各种乐于助人的人,一路上建议尝试,要解决的问题。

In addition, for less extreme measures, there is Project->Clean inside Eclipse, and you can invoke eclipse with "eclipse -clean" for additional cleansing effects. No idea what, but various helpful people along the way suggested trying that to solve problems.

是啊 - 当我第一次安装靛蓝,并试图构建,我得到了一个警告,我的Java编译器的级别是不及格,这是不正确的 - 我只有Java 1.6的安装我的机器上。 看到这个帖子的人谁也有类似的经历:

Ah yes - when I first installed Indigo and tried to build, I got a warning that my Java Compiler Compliance level was not up to snuff, which was simply not true - I have only Java 1.6 installed on my machine. See this post for somebody who had similar experience:

<一个href="http://marakana.com/forums/android/general/374.html">http://marakana.com/forums/android/general/374.html

对于我来说,什么工作只是简单地将项目属性,Java编译器,然后单击配置工作区设置,然后单击OK在对话框中。没有需要真正改变什么。只是表明这一切都ok了!

For me, what worked was simply going to Project, Properties, Java Compiler, then click on Configure Workspace Settings, and click on Ok in the dialog. Didn't need to actually change anything. Just showed it that everything was ok!

最后,我确实做了清理我的Eclipse和Android设备(包括上述.eclipse目录,另外还有在你的home目录的.android目录,你可能想要删除卸载,如果Android SDK的工具没有做到这一点 - 这其实是卸载的)。安装一切从零开始,然后用上面提供的附加信息,现在它的建立我的APK。

Eventually I indeed did clean out my Eclipse and Android installations (including the aforementioned .eclipse directory, and there's also an .android directory in your home directory which you may want to erase if uninstalling the Android SDK Tools doesn't do that - this actually is uninstallable). Installed everything from scratch and then used the additional information provided above and now it's building my APK.

我希望这可以节省有人花了我让我的版本恢复状态的时间。

I hope this saves somebody the hours I spent getting my build back in shape.

这篇关于为什么我更新的Eclipse / Android的设置没有建立我的APK了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆