संकलन के लिए क्लासपाथ्रफ़ के रूप में कॉम्पैइल द्वारा उपयोग किए जाने वाले दो पथ हैं लेकिन इनमें से एक का उपयोग डिस्क्सिंग में नहीं किया जाता है।
<target name="-compile" depends="-build-setup, -pre-build, -code-gen, -pre-compile">
<do-only-if-manifest-hasCode elseText="hasCode = false. Skipping...">
<!-- merge the project's own classpath and the tested project's classpath -->
<path id="project.javac.classpath">
<path refid="project.all.jars.path" />
<path refid="tested.project.classpath" />
</path>
<javac encoding="${java.encoding}"
source="${java.source}" target="${java.target}"
debug="true" extdirs="" includeantruntime="false"
destdir="${out.classes.absolute.dir}"
bootclasspathref="project.target.class.path"
verbose="${verbose}"
classpathref="project.javac.classpath"
fork="${need.javac.fork}">
<src path="${source.absolute.dir}" />
<src path="${gen.absolute.dir}" />
<compilerarg line="${java.compilerargs}" />
</javac>
…
</target>
इन रास्तों "project.all.jars.path" और "tested.project.classpath" लेकिन पथ "tested.project.classpath" Dexing में उपयोग नहीं कर रहा है तो आप पूर्व में इसे संशोधित कर सकते हैं इस तरह -compile लक्ष्य:
<target name="-pre-compile" >
<path id="tmp">
<pathelement path="${toString:tested.project.classpath}"/>
<fileset dir=“${exported.jars.dir}” >
<include name="*.jar" />
</fileset>
</path>
<path id="tested.project.classpath"><pathelement path="${toString:tmp}"/></path>
<path id="tmp"/>
</target>
यहाँ, आप अपने निर्यात जार के पथ जोड़ "tested.project.classpath" से पहले संकलन शुरू होता है आप "exported.jars.dir" अपने चींटी में डाल सकते हैं करने के लिए।। गुण फ़ाइल
उत्तर के लिए धन्यवाद - मैं समझता हूं कि आप क्या कह रहे हैं, और यह काम करना चाहिए ... यदि कोई कक्षा है संकलन के लिए प्रयोग किया जाता है लेकिन डीएक्स उपकरण द्वारा कार्य नहीं किया जाता है। जब भी मैं संकलन वर्गपाथ में जार प्राप्त करता हूं, यह डीएक्स द्वारा भी किया जाता है। क्या आप उन्हें अलग करने का तरीका जानते हैं? – user1103993
आम तौर पर, संकलन क्लासपाथ में मौजूद फ़ोल्डर _not_ को 'classes। Dex' में जोड़ा जाता है। आपको उन जेएआरएस को स्पष्ट रूप से निर्यात करने की आवश्यकता है जिन्हें आप डीईएक्स में संकलित करना चाहते हैं। हालांकि, एक सुविधा के रूप में, एसडीके उपकरण एक विशेष मामले के रूप में 'libs/'फ़ोल्डर पर विचार करते हैं। इस फ़ोल्डर में कुछ भी स्वचालित रूप से 'classes। Dex' में जोड़ा जाता है। इसलिए, एक अलग नाम के साथ फ़ोल्डर बनाने का प्रयास करें और इसे कक्षापथ में जोड़ें। अधिक जानकारी के लिए [यह] पढ़ें (http://tools.android.com/recent/dealingwithdependenciesinandroidprojects)। ध्यान दें कि इन परिवर्तनों को एसडीके टूल्स आर 17 में पेश किया गया था। – curioustechizen
मदद के लिए फिर से धन्यवाद। मैं आपको वोट दूंगा, लेकिन एक नौसिखिया के रूप में, मेरे पास पर्याप्त प्रतिष्ठा नहीं है। – user1103993