我无法获得客户。我开始进行 Android 开发,所以可能是配置/新手错误,但我尝试过/搜索过的都没有。每次我调用“RxBleClient.create(context);”时,我都会收到以下错误:
FATAL EXCEPTION: Thread-34217
Process: es.ralcaidev.arduinobt, PID: 15488
java.lang.IncompatibleClassChangeError: The method
'void com.polidea.rxandroidble.internal.radio.RxBleRadioImpl.com_polidea_rxandroidble_internal_radio_RxBleRadioImpl_lambda$new$0()'
was expected to be of type direct but instead was found to be of type virtual
(declaration of 'com.polidea.rxandroidble.internal.radio.RxBleRadioImpl'
appears in /data/app/es.ralcaidev.arduinobt-2/base.apk)
at com.polidea.rxandroidble.internal.radio.RxBleRadioImpl.access$lambda$0(Unknown)
at com.polidea.rxandroidble.internal.radio.RxBleRadioImpl$$Lambda$1.run(Unknown)
at java.lang.Thread.run(Thread.java:818)
我已经切换到 JDK 1.8 并在 gradle 上启用了 Jack。
有任何想法吗?