Merhaba tüm android nasıl oluşturulacak projenin jar dosyası oluşturabilirim eclipse. Bu şekilde yapmış olduğum projesi -> sağ tıklatma -> dışa aktarma -> oluşturucu oluştur -> geliştirici -> sonra bu işlemden sonra build.xml oluşturulacak. Bulid.xml üzerinde yeni oluşturucu oluşturacağım.Eclipse'de android proje için jar oluştur
- Sağ proje -> özellikler -> yeni seçin -> build.xml ver ve proje yolunu seç ve tamam tuşuna bas, yeni oluşturucu oluşturulacak.
- Şimdi bu oluşturucuyu proje özelliklerinden seçin ve Tamam'a basın.
- Şimdi projenizi oluşturun ve kavanozunuz bin klasöründe oluşturulacaktır.
Yukarıdaki işlemi uyguladım ancak jar'm bin klasöründe bulunamadı. Build.xml'imin oluşturulduğunu görebiliyorum ve tüm süreçler sorunsuz geçiyor ancak yine de jar oluşturulmuyor. Kimse bana bunu nasıl yapabilirim söyler mi?
My Build.xml Eclipse
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- WARNING: Eclipse auto-generated file.
Any modifications will be overwritten.
To include a user specific buildfile here, simply create one in the same
directory with the processing instruction <?eclipse.ant.import?>
as the first entry and export the buildfile again. -->
<project basedir="." default="build" name="testtttttttttt">
<property environment="env"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.6"/>
<property name="source" value="1.6"/>
<path id="Android 2.2.libraryclasspath">
<pathelement location="C:/Program Files (x86)/Android/android-sdk/platforms/android-8/android.jar"/>
</path>
<path id="com.android.ide.eclipse.adt.LIBRARIES.libraryclasspath"/>
<path id="testtttttttttt.classpath">
<pathelement location="bin/classes"/>
<path refid="Android 2.2.libraryclasspath"/>
<path refid="com.android.ide.eclipse.adt.LIBRARIES.libraryclasspath"/>
</path>
<target name="init">
<mkdir dir="bin/classes"/>
<copy includeemptydirs="false" todir="bin/classes">
<fileset dir="src">
<exclude name="**/*.java"/>
</fileset>
</copy>
<copy includeemptydirs="false" todir="bin/classes">
<fileset dir="gen">
<exclude name="**/*.java"/>
</fileset>
</copy>
</target>
<target name="clean">
<delete dir="bin/classes"/>
</target>
<target depends="clean" name="cleanall"/>
<target depends="build-subprojects,build-project" name="build"/>
<target name="build-subprojects"/>
<target depends="init" name="build-project">
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="true" debuglevel="${debuglevel}" destdir="bin/classes" source="${source}" target="${target}">
<src path="src"/>
<classpath refid="testtttttttttt.classpath"/>
</javac>
<javac debug="true" debuglevel="${debuglevel}" destdir="bin/classes" source="${source}" target="${target}">
<src path="gen"/>
<classpath refid="testtttttttttt.classpath"/>
</javac>
</target>
<target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/>
<target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler">
<copy todir="${ant.library.dir}">
<fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
</copy>
<unzip dest="${ant.library.dir}">
<patternset includes="jdtCompilerAdapter.jar"/>
<fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
</unzip>
</target>
<target description="compile project with Eclipse compiler" name="build-eclipse-compiler">
<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
<antcall target="build"/>
</target>
</project>
Android çalıştırılabilir .apk dosyası, neden bir kavanoz dosyası gerekiyor? –
diğer projede kullanmak için – unkown
Burada build.xml ekleyebilir misiniz? –