www.91084.com

GVKun编程网logo

android-LiveData’dispatchingValue’方法中的致命异常:无虚拟方法iteratorWithAdditions()

10

关于android-LiveData’dispatchingValue’方法中的致命异常:无虚拟方法iteratorWithAdditions()的问题就给大家分享到这里,感谢你花时间阅读本站内容,更

关于android-LiveData’dispatchingValue’方法中的致命异常:无虚拟方法iteratorWithAdditions()的问题就给大家分享到这里,感谢你花时间阅读本站内容,更多关于100.In which situations does the Oracle Data Pump use external tables and not the direct path load w、141.Which tablespaces are mandatory in an Oracle database for it to be operational? (Choose all that、Adversarial Heterogeneous Network Embedding with Metapath Attention Mechanism、Android BLE 4.3 onDescriptorWrite returns status 128 on enabling characteristics notification等相关知识的信息别忘了在本站进行查找喔。

本文目录一览:

android-LiveData’dispatchingValue’方法中的致命异常:无虚拟方法iteratorWithAdditions()

android-LiveData’dispatchingValue’方法中的致命异常:无虚拟方法iteratorWithAdditions()

我有一个带有viewmodel的视图,该视图可以观察我的LiveData.我从存储库(从Room或WebAPI获取数据)中获取数据.
我已经实现了NetworkBoundResource抽象类,因此我可以管理
以更干净的方式加载数据.此类使用MediatorLiveData对象:

private final MediatorLiveData<Resource<ResultType>> result = new MediatorLiveData<>();

崩溃发生在构造函数的第一行:

@MainThread
public NetworkBoundResource() {

    result.setValue(Resource.<ResultType>loading(null));

    final LiveData<ResultType> dbSource = loadFromDb();

    result.addSource(dbSource, new Observer<ResultType>() {
        @Override
        public void onChanged(@Nullable ResultType newData) {
            result.removeSource(dbSource);
            if(shouldFetch(newData))
            {
                fetchFromNetwork(dbSource);
            } else {
                result.setValue(Resource.success(newData));
            }
        }
    });
}

这是错误消息:

java.lang.NoSuchMethodError: No virtual method iteratorWithAdditions()Landroid/arch/core/internal/SafeIterableMap$ListIterator; in class Landroid/arch/core/internal/SafeIterableMap; or its super classes (declaration of 'android.arch.core.internal.SafeIterableMap' appears in /data/app/com.example.smostofi.upswing-XxPvhI837wneIYVTOrU2Dw==/split_lib_dependencies_apk.apk:classes25.dex)
                                                                            at android.arch.lifecycle.LiveData.dispatchingValue(LiveData.java:145)
                                                                            at android.arch.lifecycle.LiveData.setValue(LiveData.java:293)
                                                                            at android.arch.lifecycle.mutablelivedata.setValue(mutablelivedata.java:33)
                                                                            at com.example.smostofi.upswing.data.Util.NetworkBoundResource.<init>(NetworkBoundResource.java:44)

第一次在这里提问,希望我提供了足够的信息!
提前致谢!

解决方法:

您必须在Gradle中多次添加相同的依赖项.

我有一个同样的问题.原因是,我在Gradle中两次添加了Appcompact库,如下所示:

implementation 'com.android.support:appcompat-v7:26.1.0'
compile rootProject.ext.supportLibAppCompat

通过删除一个,问题得到解决.

请检查您的Gradle是否相同.希望能帮助到你 :)

100.In which situations does the Oracle Data Pump use external tables and not the direct path load w

100.In which situations does the Oracle Data Pump use external tables and not the direct path load w

100.In which situations does the Oracle Data Pump use external tables and not the direct path load while exporting a table? (Choose all that apply.) A.if a table is not in a cluster B.if a table has an active trigger C.if a table has an encrypted column D.if a table has a column of data type LONG defined on it E.if a table has a referential integrity constraint defined on it 答案:BCE 参考:https://docs.oracle.com/cd/B19306_01/server.102/b14215/dp_overview.htm#i1010293 The default method that Data Pump uses for loading and unloading data is direct path,when the structure of a table allows it. Note that if the table has any columns of datatype LONG,then direct path must be used.(排除D) Situations in Which Direct Path Load Is Not Used A table is in a cluster(排除A) There is an active trigger on a pre-existing table. (B正确) The table has encrypted columns(C正确) A referential integrity constraint is present on a pre-existing table.(E正确) --这里只是列出一部分,具体查看文档

141.Which tablespaces are mandatory in an Oracle database for it to be operational? (Choose all that

141.Which tablespaces are mandatory in an Oracle database for it to be operational? (Choose all that

141.Which tablespaces are mandatory in an Oracle database for it to be operational? (Choose all that apply.) A.Undo tablespace B.USERS tablespace C.SYSAUX tablespace D.SYstem tablespace E.Temporary tablespace 答案:CD 解析:题目说的是哪些表空间必须有 oracle至少安装2个表空间(system,sysaux),默认安装6个表空间 表空间分类 1.系统表空间 a.system 不能设置为脱机,不能设置为只读 b.sysaux 可以设置为脱机以执行表空间的恢复,不能设置为只读 2.非系统表空间 A:undo表空间,这个可以没有,如果设置为手动管理的话,那么undo信息会放置到system表空间下 B:users表空间,是默认创建用户表空间,可以进行修改 E:临时表空间,如果没有临时表空间,那么它的信息也会放置到system表空间下

Adversarial Heterogeneous Network Embedding with Metapath Attention Mechanism

Adversarial Heterogeneous Network Embedding with Metapath Attention Mechanism

论文传送门

作者

复旦大学

  • Chun-Yang Ruan
  • Yanchun Zhang
  • Xin-Tian Chen

国防科技大学

  • Ye Wang

澳大利亚联邦大学

  • Jiangang Ma

摘要

异构信息网络(HIN) 为真实世界中的实际应用提供了有效的模型。网络嵌入是支持基于网络的分析和预测任务的基础。当前流行的网络嵌入方法通常无法有效保留HIN的语义。在这个研究中,我们提出了AGA2Vec,这是一种用于HIN嵌入的生成对抗模型,它使用注意力机制和元路径。为了从HIN中的多类型实例和关系中捕获语义信息,我们研发了加权元路径策略来保持HIN邻近性。然后,我们使用自动编码器和生成对抗模型来获得HIN的可靠表示形式。在多个实际数据集上的实验结果表明,该方法胜过HIN嵌入的最新方法。

Android BLE 4.3 onDescriptorWrite returns status 128 on enabling characteristics notification

Android BLE 4.3 onDescriptorWrite returns status 128 on enabling characteristics notification

question:

A question on enabling characteristics using the new android BLE 4.3:

I am not getting any notification from the BLE device though I enable notification on characteristics one by one asynchronously using a queue. 

I also write the descriptor with UUID "00002902-0000-1000-8000-00805f9b34fb" with ENABLE_NOTIFICATION_VALUE. 

I have followed the recommendation from Google sdk doc and as well suggestions from various forums. 

By the way I get status = 128 on "onDescriptorWrite". Any idea as what this status means?

I went thru google code and did not see any info on this. Even the source code does not throw any light as how this status is being set. 

Let me know if any of you have experienced this when you enabled notifications for the body media device. Also at times I get status 133 on descriptor write. I use latest Nexus 7 for my tests.

answer:

A very late answer, but this might prove valuable to anyone encountering status 128 (GATT_NO_RESOURCES) on a gatt.writedescriptor() call.

In my case status 128 showed up when trying to write a descriptor with a value of ENABLE_NOTIFICATION_VALUE for a characteristic that required a subscription for an indication via ENABLE_INDICATION_VALUE instead.

So instead of

BluetoothGattDescriptor descriptor = bluetoothGattCharacteristic.getDescriptor(DESCRIPTOR_UUID);
descriptor.setValue(ENABLE_NOTIFICATION_VALUE);
mGatt.writeDescriptor(descriptor);

going for

BluetoothGattDescriptor descriptor = bluetoothGattCharacteristic.getDescriptor(DESCRIPTOR_UUID);
descriptor.setValue(ENABLE_INDICATION_VALUE);
mGatt.writeDescriptor(descriptor);

Fixed the problem. I assume the other way around will produce the same error status 128.

今天关于android-LiveData’dispatchingValue’方法中的致命异常:无虚拟方法iteratorWithAdditions()的讲解已经结束,谢谢您的阅读,如果想了解更多关于100.In which situations does the Oracle Data Pump use external tables and not the direct path load w、141.Which tablespaces are mandatory in an Oracle database for it to be operational? (Choose all that、Adversarial Heterogeneous Network Embedding with Metapath Attention Mechanism、Android BLE 4.3 onDescriptorWrite returns status 128 on enabling characteristics notification的相关知识,请在本站搜索。

本文标签: