jitsi / jitsi-android

Jitsi for Android is an Android port of the Jitsi project: The most feature-rich communicator with support for encrypted audio/video, chat and presence over SIP and XMPP
Apache License 2.0
415 stars 258 forks source link

error after run command "ant setup-libs" #57

Open hnyashiro opened 7 years ago

hnyashiro commented 7 years ago

D:\XMPP\jitsi-android-master\jitsi-android-master>ant setup-libs Buildfile: D:\XMPP\jitsi-android-master\jitsi-android-master\build.xml

define-jarjar:

create-asset-dex: [getbuildtools] Using latest Build Tools: 18.1.0 [delete] Deleting directory D:\XMPP\jitsi-android-master\jitsi-android-master\bin\asset-libs [copy] Copying 20 files to D:\XMPP\jitsi-android-master\jitsi-android-master\bin\asset-libs [jarjar] Building jar: D:\XMPP\jitsi-android-master\jitsi-android-master\bin\asset-libs\protocol-sip.jar [jarjar] Building jar: D:\XMPP\jitsi-android-master\jitsi-android-master\bin\asset-libs\smacklib.jar [jarjar] Building jar: D:\XMPP\jitsi-android-master\jitsi-android-master\bin\asset-libs\protocol-jabber.jar [dex] input: D:\XMPP\jitsi-android-master\jitsi-android-master\bin\asset-libs [dex] Converting compiled files and external libraries into D:\XMPP\jitsi-android-master\jitsi-android-master\bin\jitsi_bundles_dex_dir\classes.dex... [dx] 'E:\Program' 不是内部或外部命令,也不是可运行的程序 [dx] 或批处理文件。

BUILD FAILED D:\XMPP\jitsi-android-master\jitsi-android-master\build.xml:152: null returned: 1

Total time: 2 seconds

D:\XMPP\jitsi-android-master\jitsi-android-master>

hnyashiro commented 7 years ago

D:\XMPP\jitsi-android-master>ant setup-libs Buildfile: D:\XMPP\jitsi-android-master\build.xml

BUILD FAILED Target "setup-libs" does not exist in the project "LauncherActivity".

Total time: 0 seconds

saghul commented 7 years ago

Please note this project has been unmaintained for a while: https://github.com/jitsi/jitsi-android#unmaintained

diegobill commented 7 years ago

@hnyashiro , Did you have this problem?

$ ant setup-libs -Dsdk.dir=$ANDROID_HOME
Buildfile: /home/felix/workspace/jitsi-android-459below/build.xml

BUILD FAILED
/home/felix/workspace/jitsi-android-459below/build.xml:49: Cannot find /home/felix/Android/Sdk/tools/ant/build.xml imported from /home/felix/workspace/jitsi-android-459below/build.xml

Total time: 0 seconds

I think this is the problem https://github.com/processing/processing-android/issues/307

What sdk version do you using?

uniqueid001 commented 7 years ago

https://stackoverflow.com/a/42921645/1172714

You are correct: Google removed the ant build system from Android SDK 25.3.0. You either need to use an older Android SDK which still includes the ant scripts, or you need to update jitsi-android's build to use Gradle.