Giter Site home page Giter Site logo

Comments (10)

sahityadubey avatar sahityadubey commented on June 6, 2024

No, this repo is not supported anymore.

To resolve android14 issue follow this document
https://developer.android.com/about/versions/14/changes/schedule-exact-alarms

and to give it a quick try your code is working or not
enable Alarm and reminder from app info
https://developer.android.com/training/scheduling/alarms#exact-user-grant

from paho.mqtt.android.

ZouZLong avatar ZouZLong commented on June 6, 2024

from paho.mqtt.android.

mayzs avatar mayzs commented on June 6, 2024

适配到 Android 14 , https://github.com/mayzs/paho.mqtt.android

from paho.mqtt.android.

ZouZLong avatar ZouZLong commented on June 6, 2024

from paho.mqtt.android.

wboykron avatar wboykron commented on June 6, 2024

适配到 Android 14 , https://github.com/mayzs/paho.mqtt.android

引入出现这个错误Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.

Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
Could not find :unspecified:.
Required by:
project :app > io.github.mayzs:paho.mqtt.android:1.1.2,大佬如何解决?

from paho.mqtt.android.

ZouZLong avatar ZouZLong commented on June 6, 2024

from paho.mqtt.android.

mayzs avatar mayzs commented on June 6, 2024

适配到 Android 14 , https://github.com/mayzs/paho.mqtt.android

引入出现这个错误Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.

Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
Could not find :unspecified:.
Required by:
project :app > io.github.mayzs:paho.mqtt.android:1.1.2,大佬如何解决?

你项目中 gradle版本低, 可以使用 io.github.mayzs:paho.mqtt.android:1.1.2@aar 进行引用

from paho.mqtt.android.

wboykron avatar wboykron commented on June 6, 2024

适配到 Android 14 , https://github.com/mayzs/paho.mqtt.android

引入出现这个错误Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.

Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
Could not find :unspecified:.
Required by:
project :app > io.github.mayzs:paho.mqtt.android:1.1.2,大佬如何解决?

你项目中 gradle版本低, 可以使用 io.github.mayzs:paho.mqtt.android:1.1.2@aar 进行引用
引入成功了,连接就出现:
java.lang.IllegalArgumentException: foregroundServiceType 0x00000001 is not a subset of foregroundServiceType attribute 0x00000000 in service element of manifest file

from paho.mqtt.android.

mayzs avatar mayzs commented on June 6, 2024

适配到 Android 14 , https://github.com/mayzs/paho.mqtt.android

引入出现这个错误Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.

Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
Could not find :unspecified:.
Required by:
project :app > io.github.mayzs:paho.mqtt.android:1.1.2,大佬如何解决?

你项目中 gradle版本低, 可以使用 io.github.mayzs:paho.mqtt.android:1.1.2@aar 进行引用
引入成功了,连接就出现:
java.lang.IllegalArgumentException: foregroundServiceType 0x00000001 is not a subset of foregroundServiceType attribute 0x00000000 in service element of manifest file

参考 sample中 manifest 配置Service方式

from paho.mqtt.android.

wboykron avatar wboykron commented on June 6, 2024

适配到 Android 14 , https://github.com/mayzs/paho.mqtt.android

引入出现这个错误Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.

Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
Could not find :unspecified:.
Required by:
project :app > io.github.mayzs:paho.mqtt.android:1.1.2,大佬如何解决?

你项目中 gradle版本低, 可以使用 io.github.mayzs:paho.mqtt.android:1.1.2@aar 进行引用
引入成功了,连接就出现:
java.lang.IllegalArgumentException: foregroundServiceType 0x00000001 is not a subset of foregroundServiceType attribute 0x00000000 in service element of manifest file

参考 sample中 manifest 配置Service方式

感谢,能连接上了,但是心跳时间后就不停重连,报错如下:2024-01-29 16:34:22.091 15893-18934/com.ynnskj.dinggong.member D/AlarmPingSender: Unregister alarmreceiver to MqttServiceGID_dingo@@@PASS0000003bc99ff84eb89d281c5b2b
2024-01-29 16:34:22.127 15893-15893/com.ynnskj.dinggong.member E/mqtt: callback connectionLost
已断开连接 (32109) - java.io.EOFException
at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:197)
at java.lang.Thread.run(Thread.java:1012)
Caused by: java.io.EOFException
at java.io.DataInputStream.readByte(DataInputStream.java:275)
at org.eclipse.paho.client.mqttv3.internal.wire.MqttInputStream.readMqttWireMessage(MqttInputStream.java:92)
at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:137)
at java.lang.Thread.run(Thread.java:1012) 

from paho.mqtt.android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.