Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Failing to compile AndroidCanvasUI.java

8 views
Skip to first unread message

Malcolm Bryant

unread,
Jul 9, 2011, 11:41:01 AM7/9/11
to microemulator-developers
Hi Bartek,

I've been using microemu since last year to successfully compile my
midlets into apk files. Thank you for all the hard work you've put
into making this tool available.

Today, I decided to checkout the latest version. I've downloaded and
installed as before, but I'm now getting the following compilation
error. Any idea what could be going wrong?

Thanks & best regards,
Malcolm

C:\microemu-read-only\microemulator\microemu-android>\apache-
ant-1.8.1\bin\ant
Buildfile: C:\microemu-read-only\microemulator\microemu-android
\build.xml

clean:
[delete] Deleting directory C:\microemu-read-only\microemulator
\microemu-andr
oid\bin

check:

dirs:
[mkdir] Created dir: C:\microemu-read-only\microemulator\microemu-
android\bi
n
[mkdir] Created dir: C:\microemu-read-only\microemulator\microemu-
android\bi
n\assets
[mkdir] Created dir: C:\microemu-read-only\microemulator\microemu-
android\bi
n\classes
[mkdir] Created dir: C:\microemu-read-only\microemulator\microemu-
android\bi
n\producer
[mkdir] Created dir: C:\microemu-read-only\microemulator\microemu-
android\bi
n\res
[mkdir] Created dir: C:\microemu-read-only\microemulator\microemu-
android\bi
n\libs

compile-producer:
[javac] C:\microemu-read-only\microemulator\microemu-android
\build.xml:133:
warning: 'includeantruntime' was not set, defaulting to
build.sysclasspath=last;
set to false for repeatable builds
[javac] Compiling 6 source files to C:\microemu-read-only
\microemulator\micr
oemu-android\bin\producer

read-jad:
[echo] midlet.name = [JabpLite]
[echo] midlet.icon.totrim = [icons/JabpLite.png]
[echo] midlet.icon = [icons/JabpLite.png]
[echo] midlet.class.totrim = [JabpLite.JabpLite]

prepare-jars:

prepare-assets:
[unzip] Expanding: C:\microemu-read-only\microemulator\microemu-
examples\mic
roemu-demo\target\JabpLite.jar into C:\microemu-read-only\microemulator
\microemu
-android\bin\assets
[copy] Copying 1 file to C:\microemu-read-only\microemulator
\microemu-andro
id\bin\assets

prepare-res:
[mkdir] Created dir: C:\microemu-read-only\microemulator\microemu-
android\bi
n\res\values
[mkdir] Created dir: C:\microemu-read-only\microemulator\microemu-
android\bi
n\res\drawable
[unjar] Expanding: C:\microemu-read-only\microemulator\microemu-
examples\mic
roemu-demo\target\JabpLite.jar into C:\microemu-read-only\microemulator
\microemu
-android\bin
[copy] Copying 1 file to C:\microemu-read-only\microemulator
\microemu-andro
id\bin\res\drawable

package-res:

compile:
[javac] C:\microemu-read-only\microemulator\microemu-android
\build.xml:226:
warning: 'includeantruntime' was not set, defaulting to
build.sysclasspath=last;
set to false for repeatable builds
[javac] Compiling 35 source files to C:\microemu-read-only
\microemulator\mic
roemu-android\bin\classes
[javac] C:\microemu-read-only\microemulator\microemu-android\src
\org\microem
u\android\device\ui\AndroidCanvasUI.java:67: method does not override
a method f
rom its superclass
[javac] @Override
[javac] ^
[javac] C:\microemu-read-only\microemulator\microemu-android\src
\org\microem
u\android\device\ui\AndroidCanvasUI.java:99: method does not override
a method f
rom its superclass
[javac] @Override
[javac] ^
[javac] C:\microemu-read-only\microemulator\microemu-android\src
\org\microem
u\android\device\ui\AndroidCanvasUI.java:292: method does not override
a method
from its superclass
[javac] @Override
[javac] ^
[javac] Note: C:\microemu-read-only\microemulator\microemu-android
\src\org\m
icroemu\android\MicroEmulator.java uses unchecked or unsafe
operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 3 errors

BUILD FAILED
C:\microemu-read-only\microemulator\microemu-android\build.xml:226:
Compile fail
ed; see the compiler error output for details.

Total time: 2 seconds
C:\microemu-read-only\microemulator\microemu-android>

Bartek Teodorczyk

unread,
Jul 11, 2011, 4:04:28 AM7/11/11
to microemulato...@googlegroups.com
Hi,

Do you obfuscate also some microemulator jars before running ant task?

BR,
Bartek Teodorczyk

> --
> You received this message because you are subscribed to the Google Groups "microemulator-developers" group.
> To post to this group, send email to microemulato...@googlegroups.com.
> To unsubscribe from this group, send email to microemulator-deve...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/microemulator-developers?hl=en.
>
>

Malcolm Bryant

unread,
Jul 12, 2011, 3:13:58 AM7/12/11
to microemulator-developers
No, I don't obfuscate any jars. I can still successfully compile the
older version (from last August, I think). But the latest version is
failing with the compilation errors below. Any other ideas welcome.

Best regards,
Malcolm
> > For more options, visit this group athttp://groups.google.com/group/microemulator-developers?hl=en.- Hide quoted text -
>
> - Show quoted text -

Bartek Teodorczyk

unread,
Jul 12, 2011, 3:53:00 AM7/12/11
to microemulato...@googlegroups.com
Hi,

I just fixed this problem, you can try to build your project now.

BR,
Bartek Teodorczyk

Reply all
Reply to author
Forward
0 new messages