ADT causing CDT to build all C projects on Android app launch??

by Robert Green » Sat, 28 Aug 2010 10:30:00 GMT

Sponsored Links
 Hey guys,

I doubt there are too many people who run CDT in eclipse for native
apps also with ADT installed for Android, but in the off-chance that
someone here knows anything about this, my problem is that any time I
run any android app, my C builder kicks in for projects totally
unrelated.  I have no idea why and have been digging through settings
on everything, unable to find out why.  All I can think is that the
ADT pre-launch process triggers it via a refresh or some kind of catch-
all type call in eclipse API land that I'm unaware of.

Does anyone know anything about this?  It's very annoying to have a C
builder run for a different project than the one you're working on
every time you launch the app.


ADT causing CDT to build all C projects on Android app launch??

by Jason » Sat, 28 Aug 2010 18:33:35 GMT


I am one of the elusive few running this exact setup, and I too have
been a bit annoyed by this "feature".

I did just find this:


There is a checkbox option entitled:

"Build configurations only when there are Eclipse resource changes
within the project and its references"

I tried checking this at it seemed to eliminate these extra builds.

I also tried making a small change to a C++ source file in my project
and it picked up the change when I ran the app.. so seems to work.


Sponsored Links

ADT causing CDT to build all C projects on Android app launch??

by Robert Green » Sun, 29 Aug 2010 03:36:10 GMT


Perfect!  I don't know how I missed that.  I'm glad a configurable
option was able to fix it.  I just tested and things seem to be
working correctly again.

Thanks for figuring it out!


ADT causing CDT to build all C projects on Android app launch??

by Xavier Ducrohet » Mon, 30 Aug 2010 14:21:03 GMT

 I'm glad there's an option to fix it.

build before launch. I think at the time we expected that it would
only build the launching project, not the whole workspace. We should
probably change it to not require a full workspace build. I'll have to
check if the launching project is rebuilt no matter what.



Other Threads

1. SAXException while parsing XML file


The following code generates the SAXParseException exception  
"InputSource needs either stream or reader".

    DocumentBuilderFactory factory =  

    DocumentBuilder parser = factory.newDocumentBuilder();
    Document document = parser.parse(fileName);
catch(IOException e)
catch(SAXException e)
catch(ParserConfigurationException e)

The exception is thrown when "Document document =  
parser.parse(fileName)" is invoked. The same code executes  
successfully on my Windows XP machine.

I believe the exception is thrown because the parser can't find the  
file... However, "filename" points to an xml file located in  
<app_data>/files/. I have also tried to put the file directly in the / 
sdcard/ folder but I get the same exception.

Is there a specific folder to be used by the XML parsers? How to  
direct the parser to <app_data>/files?



2. Loading app on emulator

Ups, skipped the bridge....
Thanks Mark


Hugo Rafael Augusto


3. Who can help porting tslib to Android 1.5r2

4. Using Alarm Service - Getting Started

5. Another Core VM Problem

6. eclipse adt plugin