打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
eclipse Camera app
Unable to execute dex: Java heap space解决方案 
项目开发,在编译工程的过程中发现了Unable to execute dex: Java heap space 这个问题,最后导致eclipse 工作很卡,工程编译不通过: 
    解决方案: 
   1. eclipse.int 添加内存,eclipse.ini to this: -Xms128m -Xmx512m 
   2. 导入工程的jar通过 add User Library方式导入 
       右键工程->build path->add Library->user Library->user Libraries->new->随便取个名字->add JARs->ok 
       添加过程中记得将 user systemLibrary选中 


1.建立AndroidManifest.xml

2.res/layout/增加gl_root_group.xml

3.res/layout/layout-port/pano_review.xml
 <com.android.camera.ui.RotateImageView android:id="@id/pano_review_cancel_button"改为 <com.android.camera.ui.RotateImageView android:id="@+id/pano_review_cancel_button"

4.res/xml/camera_preferences.xml
xmlns:camera="http://schemas.android.com/apk/res/com.android.gallery3d"改为xmlns:camera="http://schemas.android.com/apk/res/com.android.camera"

5.res/xml/camera_preferences.xml
xmlns:camera="http://schemas.android.com/apk/res/com.android.gallery3d"改为xmlns:camera="http://schemas.android.com/apk/res/com.android.camera"

6.去掉代码中import com.android.gallery3d.common.ApiHelper;使用

7.switch.java
this(context, attrs, R.attr.switchStyle);
增加:
styles.xml:20:   <item name="switchStyle">@android:style/Widget.CompoundButton</item>
attrs.xml:19:        <attr name="switchStyle" format="reference" />



gallery3d
1.ScreenNail
Gallery2/src/com/android/gallery3d/ui/ScreenNail.java



本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
xmlns:android作用以及自定义布局属性
Android之xml文档中的命名空间
Android动画效果translate(位移)、scale(缩放)、alpha(淡入淡出)、rotate(旋转)
详解Android动画之Tween Animation
Selector中使用颜色不成功的原因
Android SeekBar
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服