Android Ant Build Java.util.zip.zipexception Error In Opening Zip File
Contents |
here for a quick overview of the site Help Center java.util.zip.zipexception: error reading zip file Detailed answers to any questions you might have Meta
Java.util.zip.zipexception Error In Opening Zip File Linux
Discuss the workings and policies of this site About Us Learn more about Stack Overflow
Java.util.zip.zipexception: Zip File Is Empty
the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x
Java.util.zip.zipexception Error In Opening Zip File Websphere
Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up How do I fix this ZipException while compiling an Android project on Jenkins? up vote 7 down vote java.util.zip.zipexception: error in opening zip file gradle favorite I recently updated the Android SDK on the Jenkins machine to rev15 from rev13, and had to redo some of our custom build stuff in build.xml to fit in with the changes made in rev14. I worked this out on my workstation, and checked it in expecting everything to be peachy. Instead, the build fails with the following error: -obfuscate: -dex: [dex] Converting compiled files and external libraries into /export/home/hudson/jobs/path/to/the/file/classes.dex... [dx] [dx] UNEXPECTED TOP-LEVEL EXCEPTION: [dx] java.util.zip.ZipException: error in opening zip file [dx] at java.util.zip.ZipFile.open(Native Method) [dx] at java.util.zip.ZipFile.
here for a quick overview of the site Help Center Detailed java.lang.runtimeexception: java.util.zip.zipexception: error in opening zip file answers to any questions you might have Meta Discuss java.util.zip.zipexception error in opening zip file eclipse the workings and policies of this site About Us Learn more about Stack Overflow the java.util.zip.zipexception: archive is not a zip archive company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss http://stackoverflow.com/questions/7935837/how-do-i-fix-this-zipexception-while-compiling-an-android-project-on-jenkins Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up When compiling scala from source, ant is not functioning as expected up vote 0 down vote favorite I am trying http://stackoverflow.com/questions/17500635/when-compiling-scala-from-source-ant-is-not-functioning-as-expected to compile the scala compiler suite. not a scala source file. the scala compiler itself. I have downloaded the scala source from github and readme file is not helping. I installed ant and run ant in the root of scala source directory. but it shows errors... I am new to ant build system. this is the first time. kindly help. don tell me to install scala from repositories. I am really trying to compile. thanks in advance. arulmozhi@koparakesari:~/repo/scala-stuff/scala-master $ ant build Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk-amd64/lib/tools.jar Buildfile: /home/arulmozhi/repo/scala-stuff/scala-master/build.xml desired.jars.uptodate: boot: init: Unable to obtain resource from /home/arulmozhi/repo/scala-stuff/scala-master/lib/ant/ant-contrib.jar: java.util.zip.ZipException: error in opening zip file [taskdef] Unable to obtain resource from /home/arulmozhi/repo/scala-stuff/scala-master/lib/ant/ant-contrib.jar: [taskdef] java.util.zip.ZipException: error in opening zip file [taskdef] at java.util.zip.ZipFile.open(Native Method) [taskdef] at java.util.zip.ZipFile.
from GoogleSign inHidden fieldsSearch for groups or messages
22970: dx silently excludes class files targeting Java 7 55 people starred this issue and may be notified of changes. Back to list Status: Released Owner: x...@android.com Closed: Aug 2013 Cc: b...@google.com, e...@google.com, jeff...@google.com, limpbizkit, x...@android.com Type-Defect Priority-Medium ReportedBy-Developer Component-Dalvik Sign in to add a comment Reported by candrews...@gmail.com, Dec 15, 2011 If you include a jar in the lib directory that contains classes targeting Java 7 (such classes have a major of 51 and minor of 0 when queried with javap), dex silently excludes these files classes from the classes.dex file generated duration compilation. This means that when developing (using Eclipse), everything will seem alright - but when the app is run on a device or emulator, the classes that are targeting Java 1.7 are not available, resulting in messages such as this appear in the logcat: java.lang.NoSuchMethodException Unable to resolve superclass of L.. Link of class 'L...' failed Unable to match class for part: 'L...' Dex should fail when it encounters class files it doesn't understand how to process. This issue exists through SDK 16. Dec 15, 2011 Project Member #1 e...@google.com (No comment was entered for this change.) Cc: b...@google.com e...@google.com jessewil...@google.com jeff...@google.com Labels: Component-Dalvik Dec 16, 2011 #2 jessewil...@google.com There are two potential problems with Java 7 + Android interop: 1. Building Java 7 class files. 2. Compiling against Java 7 APIs. For #1, I tested dx. It rejects Java 7 class files like this: $ ../android-sdk-linux_x86/platform-tools/dx --dex ~/Desktop/Hello7/ -out=hello.jar trouble processing: bad class file magic (cafebabe) or version (0033.0000) ...while parsing Hello7.class ...while processing Hello7.class UNEXPECTED TOP-LEVEL EXCEPTION: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.