如何从已有android编译工程,得到一个新的eclipse工程

用eclipse导入import工程, bulid path---> add externel libraties-->sdk-android 包-> 如果没错 在bin目录下自动生成 apk (若想重新生成,project -->clean)

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Conversion to Dalvik format failed with error 1

Android 的ADT还是有待改进,还是dex有问题,反正这个问题就是这么解决的:

Conversion to Dalvik format failed with error 1

解决办法是 Project >Clean... > Clean project selected below > Ok

另外当加入多个jar包也可能出现这个问题,可以将jar包放在assert中,然后用add lib加入jar包可以解决这个问题..

最后解决方案(Grant):

Go to Project » Properties » Java Build Path » Libraries and remove all except the "Android X.Y" (in my case Android 1.5). click OK. Go to Project » Clean » Clean projects selected below » select your project and click OK. That should work.


i solved the problem.

i seems that is have two jars on my buildpath that include the same package and classes.

i used smack.jar and android_maps_lib-1.0.2

delete this package from one jar solved the problem.

someone got an idea for a better solution?

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

更多相关文章

  1. No resource found that matches the given name 'Theme.AppComp
  2. 阅读《Android(安卓)从入门到精通》(22)——网格视图
  3. android工程gen目录中R.java包名是怎么确定
  4. Android函数计算器(含源码,Android测试工程)
  5. eclipse工程转入android studio后碰见的问题及解决方式.
  6. 搭建NDK环境,运行samples
  7. ffmpeg--把一个eclipse目录结构的Android工程转为Android(安卓)S
  8. 解决eclipse开发的android工程在linux上编译不过的@Override问题
  9. Android的开发环境搭建及新建工程

随机推荐

  1. ubuntu系统下,搭建Android开发环境!!
  2. Android编译源码时出现的错误: “_FORTIFY
  3. 【Android(安卓)UI】状态栏和toolbar颜色
  4. Android面试总结(持续更新)
  5. 面试题5:椭圆里面有个内切圆,内切圆中有文
  6. Android(安卓)点击back键两次退出程序
  7. Android中ps命令各字段的含义
  8. TextView内容太长怎么办?
  9. Android(安卓)Studio第三十一期 - 记录Re
  10. Android(安卓)Service详解(二)第一个Servic