Android project works fine with Ant but gives runtime error

I am using ANT to build android project, add external jar to lib folder and try to build the project that it builds fine, but I get runtime error ... I saw some groups that they said build.xml should be modified with these changes

<target name="dex" depends="compile"> 
    <exec executable="${dx}" failonerror="true"> 
        <arg value="-JXmx384M" /> 
        <arg value="--dex" /> 
        <arg value="--output=${basedir}/${intermediate-dex}" /> 
        <arg value="--locals=full" /> 
        <arg value="--positions=lines" /> 
        <arg path="${basedir}/${outdir-classes}" /> 
    </exec> 
</target> 

      

Add a new argument after the last one:   

but when I add the same thing that it doesn't build, any body happened with the same problem ...... and the error is not listed in the command

-1


a source to share


1 answer


error handling "javax / xml / XMLConstants.class": [2009-05-11 09:24:13 - ChitMeAndroidClient] Try to include the main VM class in something other than the main library.

You've probably tried to include the core library from the desktop virtual machine in an application that will surely not work. If you really intend to build a core library, which is only suitable for creating a complete virtual machine binary and not compiling your application, then use the option --core-library

to suppress this error message. If you keep using --core-library

but are actually building the application, then please be aware that your build will still fail at some point; you will simply be denied the pleasure of reading this helpful error message.



this is a compile time error .......

-1


a source







All Articles