How to overwrite .java class from library project into custom project in android
<p>I am new to android development. I have created one project with some source files and made it as library project as per the instruction given on android development site. I also created custom project with different package name and given reference of library project.</p>

<p>my custom project is working properly with new resource files and layouts but when i try to add .java file with same name and package structure in custom project, it givens me following error:</p>

<pre><code>[2011-12-15 16:44:27 - my project] Dx 
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added: Lorg/my_library_package/Help;
[2011-12-15 16:44:27 - my project] Dx   at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)
[2011-12-15 16:44:27 - my project] Dx   at com.android.dx.dex.file.DexFile.add(DexFile.java:163)
[2011-12-15 16:44:27 - my project] Dx   at com.android.dx.command.dexer.Main.processClass(Main.java:486)
.
.
[2011-12-15 16:44:28 - my project] Dx 1 error; aborting
[2011-12-15 16:44:28 - my project] Conversion to Dalvik format failed with error 1
</code></pre>

<p>Please help me to know is it possible to overwrite the java file to modifiy the behaviour in custom project.</p>

<p><strong>Does ant script approach gives this feasibility to overwrite java file?</strong></p>
