Comments (10)
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.
from paho.mqtt.android.
适配到 Android 14 , https://github.com/mayzs/paho.mqtt.android
from paho.mqtt.android.
from paho.mqtt.android.
适配到 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.
from paho.mqtt.android.
适配到 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.
适配到 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.
适配到 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.
适配到 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)
- How to keep mq connection, after cpu hibernate. HOT 1
- use ssl:// scheme,return password or username error
- ca-signedserver set
- MqttException on android 12 HOT 6
- MQTT Exception not supported on Android 12 HOT 6
- Start the device without a network, then connect to the network, it will crash
- Solution of PendingIntent FLAG_IMMUTABLE exception on Android version 31 HOT 13
- Not Supporting from Android 12 onwards HOT 1
- Mqtt disconnect after setting the system time
- Mqtt Callback Error
- Enhancement Request - support MQTT V5.0 HOT 2
- Unregister alarmreceiver to MqttService
- Dead Repo? HOT 4
- java.lang.IllegalArgumentException: no NetworkModule installed for scheme "mqtt" of URI "mqtt://mqtt.
- Cannot receive Push Message due to disconnection (No PINGREQ)
- org.eclipse.paho.client.mqttv3.internal.websocket.WebSocketHandshake
- Android api 33 crash HOT 3
- Mqtt Client Can't connect through http proxy
- Upgrade to AndroidX SDK
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paho.mqtt.android.