草庐IT

incompatibility

全部标签

ios - : "Property type "JSQMessagesCollectionView"is incompatible with type "UICollectionView",继承自 "UICollectionViewLayout"是什么意思

我目前正在用Swift编写一个iOS应用程序,我在ObjectiveC中使用了一些东西,比如JSQMessages和JSQSystemSoundPlayer。当我在我的代码中引入它们时,我使用的是Xcode6.2,它运行良好。我下载了Xcode6.3.4以使用Swift1.2,但现在我有40条警告,例如:“属性类型“JSQMessagesCollectionView”与类型“UICollectionView”不兼容,继承自“UICollectionViewLayout”我已经制作了一个桥接header来调用ObjectiveC文件。非常感谢 最佳答案

iOS 10 : NSInvalidLayoutConstraintException: Constraint improperly relates anchors of incompatible types

更新到iOS10后,我在我的一个应用程序上遇到了一堆错误NSInvalidLayoutConstraintException:Constraintimproperlyrelatesanchorsofincompatibletypes:我以前在使用这样的约束时从未遇到过问题,而且我只在我的iOS10设备上遇到过它。有什么想法吗? 最佳答案 你可能正在做这样的事情:NSLayoutConstraint(item:viewA,attribute:.leading,relatedBy:.equal,toItem:parentView,att

java - 使用 Putty、Gradle 和 Gradle Git 插件时如何修复 "incompatible JNA native library"?

我有这个简单的构建脚本:importorg.ajoberstar.grgit.Grgitapplyplugin:'application'applyplugin:'org.ajoberstar.release-opinion'taskwrapper(type:Wrapper){gradleVersion='2.1'}buildscript{repositories{mavenCentral()}dependencies{classpath'org.ajoberstar:gradle-git:0.11.+'}}release{grgit=Grgit.open(project.file('

java - 错误 : incompatible types: unexpected return value : Java 8

这个问题在这里已经有了答案:error:incompatibletypes:unexpectedreturnvalueCharcomparetoString(3个答案)关闭4年前。我写了一个返回boolean值的简单方法。privatebooleanisActionAvailable(CollectionstudentConfigs){if(studentConfigs!=null){studentConfigs.forEach(studentConfig->{if(studentConfig.action()==null||!studentConfig.action().equals

java - java.lang.ClassCastException : someClass incompatible with someClass 的含义

我在XPages应用程序中遇到偶尔的异常:java.lang.ClassCastException:someClassincompatiblewithsomeClass.两个提到的类是相同的,都是用作sessionbean的类。我无法用谷歌搜索任何涵盖我的问题的内容。对此的通常解释是设计元素的变化,而不是我的情况。从那一刻起,XPage应用程序变得不可用(页面使用sessionbeansomeClass),直到重新启动http任务或重新保存faces-config.xml。在某些情况下,这与其他异常有关:com.ibm.jscript.InterpretException:Script

java - 无效类异常 : <class>; incompatible types for field <fieldname>

当从一个VM向另一个VM进行轮询RMI调用时,我遇到了一些零星的异常。类路径在VM之间看起来是一致的。我使用的是64位java-jres是一致的(jdk/v1.6.0_23-64bit)。VM之间的-XX:+UseCompressedOops标志和-XX:+UseConcMarkSweepGC存在不一致,但我不知道这是否是根本原因?调用(客户端)VM设置了-XX:+UseCompressedOops&-XX:+UseConcMarkSweepGC,调用getStatistics()的服务器VM没有。有几点需要注意:-遇到异常后,后续调用相同VM在几天内都正常-即InvalidClass

python - flask /SQLAlchemy 错误 : TypeError: Incompatible collection type: [model] is not list-like

我在非常简单的应用程序中遇到了棘手的问题。我尝试了许多不同的方法,但仍然无法弄清楚我做错了什么。我使用Flask+flask.ext.sqlalchemy,我的模型关系也是多对多。authorship=db.Table('authorship',db.Column('author_id',db.Integer,db.ForeignKey('author.id')),db.Column('book_id',db.Integer,db.ForeignKey('book.id')))classBook(db.Model):id=db.Column(db.Integer,primary_key

python - matplotlib 堆叠条形图 AssertionError : incompatible sizes: argument 'bottom' must be length 3 or scalar

我需要像这样想出不同列表的条形图importmathimportnumpyasnpimportmatplotlib.pyplotaspltmonth=["dec-09","jan","feb"]n=len(month)kitchen=[57.801,53.887,49.268]laundry=[53.490,56.568,53.590]air=[383.909,395.913,411.714]other=[519.883,483.293,409.956]ind=np.arange(n)width=0.35p1=plt.bar(ind,kitchen,width,color="cyan"

Python 错误信息 "Incompatible library version"libxml 和 etree.so

更新2:发现主要问题和我想的不一样,求助于此。我将新问题移至新帖子:Installcustompythonpackageinvirtualenv更新:好的,所以我不小心搞砸了我的非虚拟环境。我可以通过删除手动安装(通过pip)lxml并运行来轻松修复非virtualenv(普通bash)condainstalllxml--force但出于某种原因,这在virtualenv中不起作用。在那里,奔跑着condainstalllxml--force工作时没有错误消息,但是当我运行python并简单地说>>>importlxmlTraceback(mostrecentcalllast):Fil

python - 值错误 : Input 0 of node incompatible with expected float_ref. **

我在尝试导入优化的卡住图时遇到异常。#readpbintograph_defwithtf.gfile.GFile(pb_file,"rb")asf:graph_def=tf.GraphDef()graph_def.ParseFromString(f.read())#importgraph_defwithtf.Graph().as_default()asgraph:tf.import_graph_def(graph_def)获取这一行的异常:tf.import_graph_def(graph_def)Traceback(mostrecentcalllast):File"/home/aut