Eclipse module build failing??

You must Login before you can answer or comment on any questions.

I'm am trying to build a module in Eclipse that I created in Titanium. However, I am getting an error in the build xml stating that it can't find the ant-tasks.jar? This is the highlighted line in the build.xml file.
<taskdef classname="org.appcelerator.titanium.ant.StringTask" name="ti.string" classpath="${ti.module.support.dir}/android/ant-tasks.jar"/> I located the file here C:\Users\james\AppData\Roaming\Titanium\mobilesdk\win32\2.1.0.GA\module\android. Can someone telll me how to resolve this?

— asked 10 months ago by James R
0 Comments

1 Answer

Accepted Answer

From what I read, it seems to fail in finding the necessary ressources in order to build the file.

  • Did you fill out the build.properties files with the right values?
  • Did you install ANT correctly?
  • On which platform are you trying to build your module?

This information should already be in your initial post by the way. This would give everyone a better understanding of the problem you are facing.

— answered 10 months ago by Christian Brousseau
answer permalink
3 Comments
  • Ok, can you direct me to an in depth step by step install directions because I've uninstalled and installed twice now. I am working on a Windows 7 64 bit laptop. I already had Eclipse and Android installed but if I need to uninstall/install again at this point I am willing to. I thought I updated them correctly but I am obviously missing something. Tahnks,

    — commented 10 months ago by James R

  • Well, first of all, did you follow the following guide for installing all the necessary components?

    Once this is done, I strongly suggest you use the ant commands instead of the IDE menus and buttons.

    You can list all available Ant targets using the the ant -p command:
    $ ant -p
     
    Main targets:
     
     clean                Cleans classes and dist files
     compile              Compile this module's source code
     dist                 Generate a distributable module JAR
     docgen               Generate HTML documentation from Markdown
     install              Install the module's test project to device
     process.annotations  Processes @Kroll.proxy and 
                          @Kroll.module annotations
     run                  Run the module's test project
     run.emulator         Run the android emulator

    — commented 10 months ago by Christian Brousseau

  • Well I'm not sure what it was but after uninstalling everything and reinstalling everything once again. I still got an error that the document you sent me to did not mention how to resolve. Gperf so I searched the web and found that I needed to switch my Titanium version and that didn't work. Then I saw that I needed to download Gperf and finally the module builds and I am following your advice and working from the command line. I really appreciate your help. Thank,

    — commented 10 months ago by James R

Your Answer

Think you can help? Login to answer this question!