Re: [android-building] Build error for grouper with 4.2_r1

659 views
Skip to first unread message

Jean-Baptiste Queru

unread,
Nov 26, 2012, 2:30:45 PM11/26/12
to android-...@googlegroups.com
Which exact JDK are you using?

JBQ

On Sat, Nov 24, 2012 at 1:59 PM, Loren M. Lang <pengu...@gmail.com> wrote:
> I'm getting a build error while trying to build the latest copy of the
> android-4.2_r1 branch for full_grouper-userdebug.
>>
>> repo sync
>>
>> . build/envsetup.sh
>>
>> lunch full_grouper-userdebug
>>
>> make
>
>
> After two hours of building, I get this error:
>
>> Reading program jar
>> [/mnt/data2/lorenl/android/aosp/android-4.2_r1/out/target/common/obj/APPS/ApplicationsProvider_intermediates/classes.jar]
>> Reading library jar
>> [/mnt/data2/lorenl/android/aosp/android-4.2_r1/out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes.jar]
>> Reading library jar
>> [/mnt/data2/lorenl/android/aosp/android-4.2_r1/out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/classes.jar]
>> Reading library jar
>> [/mnt/data2/lorenl/android/aosp/android-4.2_r1/out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jar]
>> Reading library jar
>> [/mnt/data2/lorenl/android/aosp/android-4.2_r1/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar]
>> Reading library jar
>> [/mnt/data2/lorenl/android/aosp/android-4.2_r1/out/target/common/obj/JAVA_LIBRARIES/guava_intermediates/classes.jar]
>> Preparing output jar
>> [/mnt/data2/lorenl/android/aosp/android-4.2_r1/out/target/common/obj/APPS/ApplicationsProvider_intermediates/proguard.classes.jar]
>> Copying resources from program jar
>> [/mnt/data2/lorenl/android/aosp/android-4.2_r1/out/target/common/obj/APPS/ApplicationsProvider_intermediates/classes.jar]
>> target Dex: ApplicationsProvider
>> Copying:
>> out/target/common/obj/APPS/ApplicationsProvider_intermediates/proguard.classes.dex
>> target Package: ApplicationsProvider
>> (out/target/product/grouper/obj/APPS/ApplicationsProvider_intermediates/package.apk)
>>
>> 'out/target/common/obj/APPS/ApplicationsProvider_intermediates/classes.dex'
>> as 'classes.dex'...
>> Exception in thread "main" java.lang.VerifyError: class
>> org.bouncycastle.asn1.ASN1Primitive overrides final method
>> equals.(Ljava/lang/Object;)Z
>> at java.lang.ClassLoader.defineClass1(Native Method)
>> at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>> at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>> at
>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>> at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>> at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>> Could not find the main class: com.android.signapk.SignApk. Program will
>> exit.
>> make: ***
>> [out/target/product/grouper/obj/APPS/ApplicationsProvider_intermediates/package.apk]
>> Error 1
>
>
> I've trying syncing it again and starting over after a make clobber, but the
> error persists. Ideas?
>
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-...@googlegroups.com
> To unsubscribe from this group, send email to
> android-buildi...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en



--
Jean-Baptiste M. "JBQ" Queru
Technical Lead, Android Open Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

Chunlin Zhang

unread,
Feb 28, 2013, 1:15:08 AM2/28/13
to android-...@googlegroups.com
We have confirm that these PC have a jre/lib/ext/bcprov.jar file in jdk directory,that is a different version of bouncycastle,it is root cause,after remove it there is no the error in the android building.
Thanks.


On Tue, Feb 26, 2013 at 5:44 PM, Chunlin Zhang <zhangc...@gmail.com> wrote:
I get this error,too
My jdk is: 1.6.0.23,and I have test with 1.6.0.38 and got same error.We have 10+ PCs with same environment to build android,this error only happen in several PCs.
And this error only happen in android 4.2,not happen in the previous 4.1 or 4.0.

Exception in thread "main" java.lang.VerifyError: class org.bouncycastle.asn1.ASN1Primitive overrides final method equals.(Ljava/lang/Object;)Z
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
	at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: com.android.signapk.SignApk. Program will exit.

在 2012年11月27日星期二UTC+8上午3时30分53秒,Jean-Baptiste Queru写道:

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages