got "java.util.zip.ZipException: duplicate entry: com/.copyarea.db" error when build

by Makson Lee » Fri, 14 Jan 2011 21:18:46 GMT


Sponsored Links
 Hi All,

for some reason we use IBM Rational ClearCase as our version control
tool, and it put a system file named ".copyarea.db" into each
directory of Android codebase, could someone tell me how to make
Android build system to ingore this file to avoid the following build
error?

target thumb C: dsprofile_get_3gpp_profiles <= vendor/qcom/proprietary/
data/tests/ds_profile/src/dsprofile_get_3gpp_profiles.c
target thumb C: libdsprofile <= vendor/qcom/proprietary/data/
ds_profile/src/ds_profile.c
target thumb C: libdsprofile <= vendor/qcom/proprietary/data/
ds_profile/src/ds_profile_3gpp2.c
target thumb C: libdsprofile <= vendor/qcom/proprietary/data/
ds_profile/src/ds_profile_3gpp2_qmi.c
target thumb C: libdsprofile <= vendor/qcom/proprietary/data/
ds_profile/src/ds_profile_3gpp.c
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
java.util.zip.ZipException: duplicate entry: com/.copyarea.db
        at java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:
163)
        at java.util.jar.JarOutputStream.putNextEntry(JarOutputStream.java:
90)
        at sun.tools.jar.Main.addFile(Main.java:608)
        at sun.tools.jar.Main.create(Main.java:412)
        at sun.tools.jar.Main.run(Main.java:142)
        at sun.tools.jar.Main.main(Main.java:903)
make: *** [out/host/common/obj/JAVA_LIBRARIES/emmalib_intermediates/
javalib.jar] Error 1
make: *** Deleting file `out/host/common/obj/JAVA_LIBRARIES/
emmalib_intermediates/javalib.jar'
make: *** Waiting for unfinished jobs....

-- 



Other Threads

1. Android opengl app

I'm having trouble getting my Android opengl app to display a quad.
Is there anything obviously wrong with this code?


        public void onDrawFrame(GL10 gl) {
                gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
                gl.glMatrixMode(GL10.GL_MODELVIEW);
                gl.glLoadIdentity();



                float[] myverts = new float[]
                                            {
                                -.77f, .58f,
                                .77f, .58f,
                                .77f, -.58f,
                                -.77f, -.58f
                                            };

                FloatBuffer[] fb = new FloatBuffer[1];
                fb[0] = FloatBuffer.wrap(myverts);



                float[] mytex = new float[]
                                          {
                                0, 0,
                                1, 0,
                                1, 1,
                                0, 1
                                          };


                FloatBuffer[] tfb = new FloatBuffer[1];
                tfb[0] = FloatBuffer.wrap(mytex);



                gl.glTranslatef(0, 0, -5);

                gl.glBindTexture(GL10.GL_TEXTURE_2D, texturesBuffer.get(0));
                gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
                gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);

                gl.glVertexPointer(2, GL10.GL_FLOAT, 0, fb[0]);
                gl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, tfb[0]);

                gl.glDrawArrays(GL10.GL_TRIANGLE_FAN, 0, 4);




                gl.glDisableClientState(GL10.GL_VERTEX_ARRAY);
                gl.glDisableClientState(GL10.GL_TEXTURE_COORD_ARRAY);


        }

-- 

2. How to use Android documentation ?

Hi guys,

I'm facing a productivity problem with Android. Basically, I can do
whatever I want with the framework, I always find out a solution to
everything I need to do.

My problem is, I never find a solution/explanation on the Android
developer web site. It just never happens.

For example, I'm just trying to save a picture to the SD card. With a
single google search, I find some code/explanation about
"getExternalStorageDirectory ()" on say StackOverflow. Look at it,
understand it, implement it on my own to be sure I grok it.

But then to be thorough, I make a second quick search and discover
MediaStore. Some people use it to store images. But no explanation at
all on what it is, what are the advantages, why I should use it. Does
it take care for me of the location/sd cars presence/sd card
mountability ?

And of course, the Android documentation is just plain useless on the
subject. Just gives me the methods and properties with laconic
sentences that are usually unhelpfull if I don't already know what it
is the purpose of the object.

So my question is : What am I missing ? How do you guys understand
what object to use and why when the documentation doesn't tell you ?

Again, I always find someone smarter than me who understood/debugged/
private investigated, so that I can always achieve what I meant to do,
but I've been developing for 20 years now and I find it tough to feel
so dumb.

Yahel

-- 

3. Trying to get my head around multi screen densities. With more info

4. Backlight is blinking.

5. Trying to get my head around multi screen densities.

6. How to get new input language in to the android? Who decides which new input languages for an IME should be added?

7. Virtual Keyboard covers EditText