There's no error whatsoever when that happens. Apk was successfully created and signed just as if everything was fine. But when you install and run the apk, you will see the errors.
I will try to see if I could reproduce the problem with a smaller code base. On Feb 21, 1:20 pm, Xavier Ducrohet <[email protected]> wrote: > Hello, > > do you have an output from Ant when the error happens? > > Ant and Eclipse use mostly the same code to generate the apk, so I'm a > bit surprised to see this. > > thanks > Xav > > > > On Sat, Feb 21, 2009 at 9:51 AM, focuser <[email protected]> wrote: > > > On Feb 21, 8:42 am, "Mark Murphy" <[email protected]> wrote: > >> 1. Why are you "still not able to use an ant script to automate the > >> build&sign process"? > > >> 2. If you aren't able to do #1, how do you know it "triggers the bug and > >> gives you a corrupted apk"? > > > OK, to clarify: If the ant script is used to sign the apk, it might > > produce a corrupted apk, i.e. throwing ClassCastException or > > NullPointerException at some point. This seems not happening all the > > time though. However, if I export an unsigned apk using Eclipse and > > sign it manually on the exactly same source code, everything is fine. > > So we had to give up using the ant script. > > > The only "fancy" thing we do in the build script is to copy an xml > > that has the release Google Maps api key into res/values. But I think > > this should have no impact since the copy happens before compilation > > and the R.java will be regenerated by the build script: > > > =================================== > > <target name="copy-release-files"> > > <copy file="${build.resources}/api-keys-release.xml" > > tofile="$ > > {resource-dir}/values/api-keys.xml" overwrite="true"/> > > </target> > > > <target name="release" depends="copy-release-files, dex, package- > > res"> > > =================================== > > > ======================================= > > Buildfile: build.xml > > > copy-release-files: > > [copy] Copying 1 file to /workspaces/android-ws/theProject/res/ > > values > > > dirs: > > [echo] Creating output directories if needed... > > [mkdir] Created dir: /workspaces/android-ws/theProject/bin-build > > [mkdir] Created dir: /workspaces/android-ws/theProject/bin-build/ > > classes > > > resource-src: > > [echo] Generating R.java / Manifest.java from the resources... > > [exec] (skipping hidden file 'res/drawable/.DS_Store') > > ... > > ======================================= > > > I'm not saying this is the same issue as the copy protection. Just > > they look very related. > > >> 3. Do you have a reproducible scenario you can publish with code? Or does > >> the phenomenon only occur with this one app? > > > We have not put any effort to reproduce the problem in other code base > > since we can still export and sign the apk manually without any > > problems. We will submit the code if we find a way to reproduce it. > > -- > Xavier Ducrohet > Android Engineer, Google. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

