目前我正在处理从FTP服务器上传和下载文件到Android设备的问题,现在我有一个需要在应用程序中使用的jar文件,请问您如何将jar文件添加到项目路径中。
试试这个:
右键单击 project
-> 属性
-> Java Build Path
-> 库
-> 添加外部JAR
-> 选择存储在计算机上的JAR文件-> 点击确定。
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK" />
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK" />
<classpathentry kind="output" path="bin"/>
</classpath>
<classpathentry kind="lib" path="<path to your .jar file>"/>