<uses-permission android:content="android.permission.CHANGE_WIFI_STATE" /> 这是android studio的报的错. 提示RT信息. 找了半天,发现android:content 居然不是android:name.实在想不到什么时候被改动的.改回来就好了. 后来研究了下,发现是.当你作全局搜索"find usage"的时候,会搜索到*.xml的相关代码.替换的时候,会先提醒你,替…
DataAnnotations - Key Attribute: Key attribute can be applied to properties of a class. Default Code-First convention creates a primary key column for a property whose name is "Id" or {Class Name} + "Id". Key attribute overrides this d…
1.问题回放 使用如下代码获取局域网IP报错 (代码来源:https://github.com/diafygi/webrtc-ips 日期:2019-02-16) Uncaught (in promise) DOMException: Failed to execute 'setLocalDescription' on 'RTCPeerConnection': Failed to parse SessionDescription. a=msid:  Missing track ID in msi…
https://stackoverflow.com/questions/48266018/missing-key-prop-for-element-reactjs-and-typescript When rendering an array of elements, React needs a key prop (1) to identify elements and optimize things. Add key={topic.id} to your element in jsx: retu…
1.错误描写叙述 2014-07-08 10:27:13,939 ERROR(com.you.conn.JDBCConnection:104) -com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException:Duplicate entry '97112' for key 1 2.错误原因 插入数据时,出现主键反复 3.解决的方法 去掉主键反复的数据…
CCLuaObjcBridge是cocos2d-x系列引擎与Objective-C进行交互的"桥梁",老廖的quick-cocos2d-x在其framework进行了简单了封装,封装到了luaoc类中,大体能够看成: luaoc.callStaticMethod = CCLuaObjcBridge.callStaticMethod 函数原型例如以下: --[[ 调用Objective-C中的静态方法 @param string className 类名 @param string me…
mysql主键设置成auto_increment时,进行并发性能測试出现主键反复Duplicate entry 'xxx' for key 'PRIMARY' 解决方法: 在my.cnf的[mysqld]片段中加入设置innodb_autoinc_lock_mode=0 同一时候注意调大jdbc的活跃链接数,如设置 jdbc.maxActive=300,由于设置innodb_autoinc_lock_mode=0可能导致链接过多. 注意,这样的方式仅仅须要在并发性能測试时设置,由于这样的方式在插…
正在使用IDEA进行HIbernate开发时间,从datasource由此产生的实体映射不理想.需要手动更改. 投身于实体类的属性Setter时间.临时有红tip:'Basic' attribute type should not be a persistence entity 要么 'Basic' attribute type should not be a container. 然后,至hbm.xml添加一个文件关联后,.这红色tip将消失.…
1. Find foreign keys SELECT * FROM sys.foreign_keys WHERE referenced_object_id = object_id('Student') 2. Delete foreign keys SELECT     'ALTER TABLE ' +  OBJECT_SCHEMA_NAME(parent_object_id) +    '.[' + OBJECT_NAME(parent_object_id) +     '] DROP CON…
在编译Cocos2dx 3.6版本号时.发现编译错误: 定位代码行: debugForNormalSprite->drawPoints(positions, 4, 8, Color4F{0.0,1.0,1.0,1.0}); 改动例如以下: debugForNormalSprite->drawPoints(positions, 4, 8, Color4F<span style="color:#ff0000;">(</span>0.0,1.0,1.0,1…
今天在配置OpenStack的Glance时.前边进行的都非常顺利.当作到这一步时sudo glance-manage db_sync时出现了例如以下错误 依据错误提示,想到可能是配置问题.于是就查找了配置文档,发现须要在/etc/glance/glance-registry.conf和/etc/glance/glance-api.conf中增加以下一句话 sql_connection = mysql://glance:GLANCE_DBPASS@controller/glance 格式例如以下…
出现的问题 [2013-01-11 10:52:39 - gridlayout_v7] Unable to resolve target 'android-7' 事由:在一次做九宫格时.误使用了gridlayout布局.因此eclipse为我自己主动下载了  gridlayout_v7_2 文件,并放到工作空间文件夹. 由于不再须要,也为了文件夹结构的清晰性,须要将其删除.但在关闭(Close Project)这个文件时,eclipse自己主动编译项目出错,提示 Unable to resolv…
[size=16px][b][color=#FF0000]追索权 Eclipse + NDK  error: stray '\24' in program[/color][b][/b][/b][/size] 最近的研究JNI采纳Eclipse+NDKR7B建好开发环境 依照网上教的步骤build 什么都配好了写了个最简单的样例,clean以后就出现该异常非常是头疼.异常信息: "Compile thumb : TestNdk <= com_example_testndk_JniClient…
安装vncserver例如,会发生以下错误:  vncext:      VNC extension running!  vncext:      Listening for VNC connections on all interface(s), port 5901  vncext:      created VNC server for screen 0  Could not init font path element /usr/share/X11/fonts/misc, removing…
在导入eclipse项目到Android Studio出现这种错误, 非法字符: '\ufeff' 解决方式|错误: 须要class, interface或enum.查阅后了解到Eclipse能够智能的把UTF-8+BOM文件c=search&key=%E8%BD%AC%E4%B8%BA" target="_blank" style="margin:0px; padding:0px; color:rgb(51,51,51); text-decoration:…
Field 'id' doesn't have a default value问题解决方法 突然想温习温习对数据库的读写.于是就用mysql建了一张单独的表(见代码1),用Hibernate写了个应用,能够正常查询.改动数据了. 開始时.数据是在mysql的GUI工具里手工输入的,嫌烦,于是就想到用程序批量生成一些,于是麻烦也跟着来了-- 代码1 CREATE TABLE  `stitp`.`Ticket` ( `id` int(11) NOT NULL, `state` tinyint(1) …
在使用Navicat for MySQL还原数据库备份时.出现Incorrect integer value: '' for column 'id' at row 1的错误; 网上查资料发现5以上的版本号假设是空值应该要写NULL这样的问题一般mysql 5.x上出现. 使用Select version();查看. 我用的是mysql5.0.37,而创建备份的MySQL数据库版本号是5.6 官方解释说:得知新版本号mysql对空值插入有"bug",要在安装mysql的时候去除默认勾选的…
近期在一次MySQL数据迁移的过程中遭遇了字符集的问题,提示为"Character set 'utf8mb4' is not a compiled character set".即是字符集utf8mb4不是一个编译的字符集以及没有在Index.xml文件中指定.以下是其处理过程及解决的方法.供大家參考. 1.错误提示SHELL> mysqlbinlog --database=bs_salary --stop-datetime="2014-12-15 8:24:48&qu…
孙广东   2015.7.30 问题:   在项目平时删除资源或者脚本资源时产生的prefab的脚本引用丢失,特别是在场景scene中丢了解决方式/// 1.又一次Clone项目/// 2.删除项目的 Library 目录(推荐.解决紧急问题)/// 3.使用这个脚本解决全部问题(这个当然推荐了) http://forum.unity3d.com/threads/editor-want-to-check-all-prefabs-in-a-project-for-an-attached-monob…
xcode编译提示问题:Existing instance variable '_delegate' for property 'delegate' with  assign attribute must be __unsafe_unretained 改动为: __unsafe_unretained id<QuadCurveMenuDelegate> _delegate; 这样就能够编译通过了.…
xcode 6.3 载发生时的应用'Missing recommended icon file - The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format'. 在plist文件里 icon files加入 解决方式 : watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvYmFyb25fYmxvZ3M…
错误描写叙述 错误原因 近期,我一直都能够用SQLyog连接本地数据库,可是近几天却无法连接:而且一直都报上述错误,我查阅了非常多资料,发现有非常多中说法 总结一下 第一,MySQL中的my.ini出错: 第二.权限不够. 第三,可能是改动了MySQL自带的User表: 第四,MySQL服务停止了 解决的方法 针对上面几种原因,我也做了尝试,发现还是报这个错误: 后来,我将MySQL重装了,再次用SQLyog连接本地数据库,结果成功连接上了. $(function () { $('pre.pre…
出现了一大串错误 Error creating bean with name 'userController': Injection of autowired dependencies failed..... 查了代码后发现,原来是在UserServiceImpl中忘了写一句话@Service("userService"),以至于因此导致一系列错误. 在控制层调用业务层,必须在业务层先进行注解: @Service("userService"); 然后在控制层注入业务…
在开发的过程中因为调试的原因,在代码中增加console.info("xxxx"),而未进行删除 在IE8下測试该代码所在的页面报错,例如以下: 须要注意的是,使用console对象查看对象信息,在IE8浏览器下未打开开发者工具(F12)的情况下 会报'console'没有定义错误. 解决的方法:1.打开开发者调试工具(F12)                    2.凝视掉该代码 3.或者增加例如以下代码 window.console = window.console || (fu…
近期导入as的项目出了这种问题 这个问题困扰了我非常长时间,好吧,搜了半天全都是runProguard的.最后在stackoverflow上搜到解决的方法了: http://stackoverflow.com/questions/27735646/android-studio-gradle-dsl-method-not-found-android-error17-0 解决方法: 删掉最外层的build.gradle中的 android { compileSdkVersion 19 buildTo…
权限问题,授权 给 root  全部sql 权限 mysql> grant all privileges on *.* to root@"%" identified by "."; Query OK, 0 rows affected (0.00 sec) mysql> flush privileges; Query OK, 0 rows affected (0.00 sec)…
oracle转义字符开关:set define off   /   show define…
源代码: #include <stdio.h> #include <pthread.h> #include <sched.h> void *producter_f (void *arg); void *consumer_f (void *arg); int buffer_has_item=0; pthread_mutex_t mutex; int running =1 ; int main (void) { pthread_t consumer_t; pthread_t…
1,Tomcat启动报错例如以下: Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'memcachedClient' defined in file [/usr/local/apache-tomcat-6.0.37_6500/webapps/trade_service/WEB-INF/classes/META-INF/spring/springCo…
因为代码中使用了malloc函数和字符串函数.编译时出现错误 warning: incompatible implicit declaration of built-in function 'malloc' warning: incompatible implicit declaration of built-in function 'bzero' warning: incompatible implicit declaration of built-in function 'strncpy  …