Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!news-transit.tcx.org.uk!news.netcologne.de!newsfeed-fusi2.netcologne.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Dirk Bruere at NeoPax Newsgroups: comp.lang.java.programmer Subject: Re: Android Build Quirks Date: Thu, 31 Mar 2011 02:54:00 +0100 Organization: Dirk Bruere at Neopax Lines: 20 Message-ID: <8vi55kFicsU1@mid.individual.net> References: Reply-To: dirk.bruere@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net 62fgph2HAGhbJ5ZApjTA/AFL9asgunLR0waS1q7PKg1BJaf5gj Cancel-Lock: sha1:jgGj8kEKXLBcvdeohQOFoTInUF4= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 In-Reply-To: Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:2622 On 25/03/2011 04:54, Lawrence D'Oliveiro wrote: > Every time I add a new resource to an Android project (layout, string etc), > it seems to misbehave and invoke the wrong resources. After I do an ant > clean and rebuild and reinstall, it works fine. > > I think what’s happening is that compiled classes are being included that > were built against the old version of R.java. What should happen if > resources change, is that R.java should be the the first thing regenerated, > before any Java source files are compiled. That will then trigger the > recompiling of all the necessary sources. There are oddities. And the emulator is not to be trusted 100%, esp not with networking stuff. I have spent days trying to find a bug that wasn't there when the s/w was debugged on a real machine -- Dirk http://www.neopax.com/technomage/ - My new book - Magick and Technology