Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Building android service jar

Simon,

I had to update the Java client for MQTT 3.1.1 support but the Android service hadn't been updated to match. I've now updated the Android service in the master branch, so you should be able to build the service with the 1.0.0 Java client.

Let me know if that works for you.

Thanks

Ian


On 06/25/2014 09:09 PM, Simon Vincent wrote:
I can't find the android service jar file in the downloads section so I assume I have to build it from source. Does anyone have a recent set of the client and android service jar files which I can use to develop an android application as the build looks broken at the moment?

Or can anyone give any guidance on how to build the android service?

I have built the mqttv3 client using mvn clean install which gives me a jar file:
org.eclipse.paho.client.mqttv3-1.0.0.jar

I then copyed this to org.eclipse.paho.mqtt.java/org.eclipse.paho.android.service/org.eclipse.paho.android.service/libs
and tried to build using ant debug

I end up with the following errors:
-compile:
[javac] Compiling 15 source files to /home/simon/xsi_workspace/org.eclipse.paho.mqtt.java/org.eclipse.paho.android.service/org.eclipse.paho.android.service/bin/classes [javac] /home/simon/xsi_workspace/org.eclipse.paho.mqtt.java/org.eclipse.paho.android.service/org.eclipse.paho.android.service/src/org/eclipse/paho/android/service/MqttTokenAndroid.java:27: error: MqttTokenAndroid is not abstract and does not override abstract method getResponse() in IMqttToken
    [javac] class MqttTokenAndroid implements IMqttToken {
    [javac] ^
[javac] /home/simon/xsi_workspace/org.eclipse.paho.mqtt.java/org.eclipse.paho.android.service/org.eclipse.paho.android.service/src/org/eclipse/paho/android/service/MqttDeliveryTokenAndroid.java:25: error: MqttDeliveryTokenAndroid is not abstract and does not override abstract method getResponse() in IMqttToken
    [javac] class MqttDeliveryTokenAndroid extends MqttTokenAndroid
    [javac] ^
    [javac] 2 errors



_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/paho-dev

--
Ian Craggs
icraggs@xxxxxxxxxx                 IBM United Kingdom
Committer on Paho, Mosquitto



Back to the top