views:

239

answers:

3

I'm compiling using android tools without eclipse.

I compile launching "ant debug" from command line.

I have found many many instructions around the web about how to remove with annoying warning, but I haven't been able to make any of them work.

I've tried -D option, I've tried randomly tweaking build.* files, I've tried exporting an environment variable... nothing.

I guess some of these methods just don't work, and some others would work but I've been doing them incorrectly. Anything is possible and I can't stand it any more: any advice on how to do it?

A: 

Do you have a javac task in your build.xml? If so, you can set the encoding attribute to the encoding your Java files are in.

robinst
nope, there's nothing like that :/
Lo'oris
A: 

can't fix? can dodge!

Lo'oris
+2  A: 

I had the same problem. This is how I solved it:

When I launch ant release, there is this line in the output: [setup] Importing rules file: tools/ant/ant_rules_r3.xml. I edited ant_rules_r3.xml and replaced "ascii" with "UTF8".

fhucho
OMG IT WORKED!! gg!
Lo'oris
for the record, here the file was named `android-sdk/platforms/android-8/ant/ant_rules_r2.xml`
Lo'oris