Ant构建打破后在Eclipse中的Android项目 [英] Android project broken in Eclipse after ant build
问题描述
我有一个项目在Eclipse工作完全,但随着蚂蚁编译它才能使用Proguard的混淆了code。整个项目土崩瓦解之后。
I had a project working in Eclipse completely, but after compiling it with ant in order to use Proguard to obfuscate the code the entire project fell apart.
该项目由一个包含两个主要活动和4个助手类来处理数据库,这种单一的包。用蚂蚁后,活动做工精细但是Eclipse找不到辅助类,也不会建。即使我明确地导入类我得到的错误是
进口com.ts.routeTracking.DataHelper解决不了
同时进一步提及之类的拿到误差 DataHelper不能被解析为一个类型
。
The project consists of a single package containing two main activities and 4 helper classes to handle databases and such. After using ant the activities work fine but Eclipse cannot find the helper classes and won't build. Even if I explicitly import the classes the error I get is
The import com.ts.routeTracking.DataHelper cannot be resolved
while further mentions of the class get the error DataHelper cannot be resolved to a type
.
如何获得Eclipse和蚂蚁一起工作?
How can I get Eclipse and ant to work together?
推荐答案
这可能意味着蚂蚁和Eclipse都使用相同的输出目录。您可以通过添加这种改变输出目录的 build.properties
或 ant.properties
文件。
This probably means that ant and Eclipse are using the same output directory. You can alter the output directory by adding this to your build.properties
or ant.properties
file.
out.dir=bin-ant
要获得Eclipse的再次合作,选择项目和RARR;清洁。这应该引起重建所有的Eclipse工作的文件。
To get Eclipse working again, select Project → Clean. That should cause a rebuild of all the files that Eclipse works with.
这篇关于Ant构建打破后在Eclipse中的Android项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!