Build error on CtsVerifier

3,328 views
Skip to first unread message

Sam Lin

unread,
Oct 26, 2011, 4:53:50 AM10/26/11
to Android Building
Hi All,

I tried to build android after git.android.kernel.org back on line.

everything is default. under Ubuntu 10.10.

Here is error message:

Install: out/target/product/generic/system/app/Mms.apktarget

Java: CtsVerifier
(out/target/common/obj/APPS/CtsVerifier_intermediates/classes)
cts/apps/CtsVerifier/src/com/android/cts/verifier/PassFailButtons.java:
191:
onCreateDialog(int,android.os.Bundle) in android.app.Activity
cannot implement onCreateDialog(int,android.os.Bundle)
in com.android.cts.verifier.PassFailButtons.PassFailActivity;
attempting to assign weaker access privileges;
was public private static <T extends android.app.Activity &
PassFailActivity>
^
1 error
make: ***
[out/target/common/obj/APPS/CtsVerifier_intermediates/classes-full-
debug.jar]
Error 41

Any idea ?


emilliano

unread,
Oct 27, 2011, 3:56:41 AM10/27/11
to Android Building
I have the same problem. Does somebody know how to fix it ?

emilliano

unread,
Oct 27, 2011, 8:13:08 AM10/27/11
to Android Building
Hi,
I don't know if it is a nice workaround but I simply removed
function:: Dialog onCreateDialog(int id, Bundle args) from interface
PassFailActivity and then android sources compiled with success.


On 26 Paź, 10:53, Sam Lin <itrs....@gmail.com> wrote:

Rigoberto Romero

unread,
Oct 28, 2011, 1:16:38 PM10/28/11
to Android Building
Can you explain where and how you did this? I am receiving the same
Error 41

Ying Wang

unread,
Oct 28, 2011, 1:21:25 PM10/28/11
to android-...@googlegroups.com
I guess you guys are using OpenJDK.
--
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

Rigoberto Romero

unread,
Oct 28, 2011, 1:21:17 PM10/28/11
to Android Building
target Java: DownloadManagerTestApp (out/target/common/obj/APPS/
DownloadManagerTestApp_intermediates/classes)
target Java: ExternalLocAllPermsTestApp (out/target/common/obj/APPS/
ExternalLocAllPermsTestApp_intermediates/classes)
PassFailButtons.java:191: onCreateDialog(int,android.os.Bundle) in
android.app.Activity cannot implement
onCreateDialog(int,android.os.Bundle) in
com.android.cts.verifier.PassFailButtons.PassFailActivity; attempting
to assign weaker access privileges; was public
private static <T extends android.app.Activity & PassFailActivity>
^
target Java: ExternalLocPermFLTestApp (out/target/common/obj/APPS/
ExternalLocPermFLTestApp_intermediates/classes)
1 error
target Java: ExternalLocTestApp (out/target/common/obj/APPS/
ExternalLocTestApp_intermediates/classes)
make: *** [out/target/common/obj/APPS/CtsVerifier_intermediates/
classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....
DroidDoc took 403 sec. to write docs to out/target/common/docs/doc-
comment-check

Rigoberto Romero

unread,
Oct 28, 2011, 1:50:36 PM10/28/11
to Android Building
as a matter of fact I am using OpenJDK only because I am running
Oneiric 11.10 and had difficulty downloading JDK 6 directly from
Oracle's website
any help with that?

Conley Owens

unread,
Oct 28, 2011, 6:10:07 PM10/28/11
to android-...@googlegroups.com
If you follow the steps listed here
<http://source.android.com/source/initializing.html> for installing
the JDK, what issue do you run into? (You can skip the deb-src line)

SeongJae Park

unread,
Oct 29, 2011, 12:38:37 AM10/29/11
to Android Building
I'm using Ubuntu 10.10 and had same problem.
Now, it build successfully with Sun JDK.
Thanks.

Rigoberto Romero

unread,
Oct 28, 2011, 9:30:25 PM10/28/11
to Android Building
Thanks! It works now

Yegor Yefremov

unread,
Feb 8, 2012, 10:39:03 AM2/8/12
to android-...@googlegroups.com
I've installed Sun Java, but still have the issue. Java version seems not correspond to what I've installed though:

#java -version
java version "1.6.0_23"
OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b23~pre11-0ubuntu1.11.10.1)
OpenJDK Server VM (build 20.0-b11, mixed mode)

but

dpkg -l | grep java
ii ca-certificates-java 20110912ubuntu3 Common CA certificates (JKS keystore)
ii java-common 0.42ubuntu2 Base of all Java packages
ii libaccess-bridge-java 1.26.2-6 Java Access Bridge for GNOME
ii libaccess-bridge-java-jni 1.26.2-6 Java Access Bridge for GNOME (jni bindings)
ii sun-java6-bin 6.26-2lucid1 Sun Java(TM) Runtime Environment (JRE) 6 (architecture dependent files)
ii sun-java6-jdk 6.26-2lucid1 Sun Java(TM) Development Kit (JDK) 6
ii sun-java6-jre 6.26-2lucid1 Sun Java(TM) Runtime Environment (JRE) 6 (architecture independent files)
ii tzdata-java 2011n-0ubuntu0.11.10 time zone and daylight-saving time data for use by java runtimes

Any idea?

Yegor Yefremov

unread,
Feb 9, 2012, 3:05:13 AM2/9/12
to android-...@googlegroups.com
I've fixed the problem with Java installation. Sun JDK should be enabled via

sudo update-alternatives --config java

see this post for details:

http://superuser.com/questions/353983/how-do-i-install-the-sun-java-sdk-in-ubuntu-11-10-oneric

Perhaps the info on http://source.android.com/source/initializing.html should be updated.

But I still face the same error. Should I somehow make clean, so that everything is built against the same JDK?

Is it planned to support OpenJDK?

Conley Owens

unread,
Feb 10, 2012, 5:21:01 PM2/10/12
to android-...@googlegroups.com
On Thu, Feb 9, 2012 at 12:05 AM, Yegor Yefremov <yegor...@gmail.com> wrote:
> I've fixed the problem with Java installation. Sun JDK should be enabled via
>
> sudo update-alternatives --config java
>
> see this post for details:
>
> http://superuser.com/questions/353983/how-do-i-install-the-sun-java-sdk-in-ubuntu-11-10-oneric
>
> Perhaps the info on http://source.android.com/source/initializing.html should be updated.

That would be helpful. Please note that our documentation is
available in AOSP under docs/source.android.com so patches are always
welcome.

>
> But I still face the same error. Should I somehow make clean, so that everything is built against the same JDK?

You should probably try that. You can clean by running `make clean`
or `rm -rf out`

>
> Is it planned to support OpenJDK?
>

Yegor Yefremov

unread,
Feb 14, 2012, 4:11:57 AM2/14/12
to android-...@googlegroups.com
> > I've fixed the problem with Java installation. Sun JDK should be enabled via
> >
> > sudo update-alternatives --config java
> >
> > see this post for details:
> >
> > http://superuser.com/questions/353983/how-do-i-install-the-sun-java-sdk-in-ubuntu-11-10-oneric
> >
> > Perhaps the info on http://source.android.com/source/initializing.html should be updated.
>
> That would be helpful. Please note that our documentation is
> available in AOSP under docs/source.android.com so patches are always
> welcome.

I submitted the patch: https://android-review.googlesource.com/#/c/32521/


> > But I still face the same error. Should I somehow make clean, so that everything is built against the same JDK?
>
> You should probably try that. You can clean by running `make clean`
> or `rm -rf out`

It doesn't help. But I workarounded this by disabling the build of this test.

> > Is it planned to support OpenJDK?

I could compile rowboat's Gingerbread without a problem with OpenJDK.

Yegor

Ran Meyerstein

unread,
Feb 23, 2015, 4:47:31 AM2/23/15
to android-...@googlegroups.com
Change the Java Version

sudo update-alternatives --config java

select /usr/lib/jvm/java-6-oracle/jre/bin/java




On Thursday, August 30, 2012 at 8:29:15 AM UTC+3, Suraj Sur wrote:
Hi,

I am using Android ICS for beagleboard-xm on ubuntu 10.04 LTS and I am getting the same error

Java: CtsVerifier
(out/target/common/obj/APPS/
CtsVerifier_intermediates/classes)
cts/apps/CtsVerifier/src/com/android/cts/verifier/PassFailButtons.java:
191:
onCreateDialog(int,android.os.Bundle) in android.app.Activity
cannot implement onCreateDialog(int,android.os.Bundle)
in com.android.cts.verifier.PassFailButtons.PassFailActivity;
attempting to assign weaker access privileges;
was public private static <T extends android.app.Activity &
PassFailActivity>
                           ^
1 error
make: ***
[out/target/common/obj/APPS/CtsVerifier_intermediates/classes-full-
debug.jar]
Error 41
Any suggestion?

Regards

Suraj
 
Reply all
Reply to author
Forward
0 new messages