首页 文章 精选 留言 我的

精选列表

搜索[安装],共10000篇文章
优秀的个人博客,低调大师

安装openstack过程中的又一次libvirt错误

2012-05-08 09:27:35.674+0000: 6128: error : virConfError:106 : /etc/libvirt/qemu.conf:343: expecting a value 2012-05-08 09:27:35.674+0000: 6128: error : virStateInitialize:854 : Initialization of QEMU state driver failed 2012-05-08 09:27:35.985+0000: 6128: error : virExecWithHook:328 : Cannot find 'pm-is-supported' in path: No such file or directory 2012-05-08 09:27:35.985+0000: 6128: warning : lxcCapsInit:77 : Failed to get host power management capabilities 2012-05-08 09:27:35.985+0000: 6128: error : virExecWithHook:328 : Cannot find 'pm-is-supported' in path: No such file or directory 2012-05-08 09:27:35.985+0000: 6128: warning : umlCapsInit:87 : Failed to get host power management capabilities 2012-05-08 09:27:35.986+0000: 6128: error : daemonRunStateInit:1157 : Driver state initialization failed 2012-05-08 09:27:36.824+0000: 6181: info : libvirt version: 0.9.8 2012-05-08 09:27:36.824+0000: 6181: error : virConfError:106 : /etc/libvirt/qemu.conf:343: expecting a value 2012-05-08 09:27:36.824+0000: 6181: error : virStateInitialize:854 : Initialization of QEMU state driver failed 本文转自 jxwpx 51CTO博客,原文链接:http://blog.51cto.com/jxwpx/858150,如需转载请自行联系原作者

优秀的个人博客,低调大师

移植SlidingMenu Android library,和安装example出现的问题解决

很多项目都用到类似左侧滑动菜单的效果,比如facebook,evernote,VLC for android等等,这很酷 源代码可以从GitHub的https://github.com/jfeinstein10/slidingmenu上下载。 移植过程中会用到Actionbarsherlock这个项目,去http://actionbarsherlock.com/download.html下载。(两个下的都是最新版本) 步骤: 1.将下载的Actionbarssherlock中/library下的文件解压到workspace(你的项目目录),改项目名称为Actionbarssherlock,从eclipse中操作new->project->Android Project from Existing Code将项目添加进去,target改为api14以上。 2.将下载的slidingmenu中/library解压到workspace(你的项目目录),改名SlidingMenu,import该项目,右键->properties->android->api14以上。或者打开project.properties:target=Google Inc.:Google APIs:14或更高。 3.这样SlidingMenu就可以用在自己项目中了。让我们来运行例子。解压slidingmenu中/example。import该项目,设置api14或更高,并add你的SlidingMenu。运行看看效果。2.1以上的系统都可以运行。 虽然是开源项目,但使用过程中还是可能会出现各种问题: 一、修复SlidingMenu library project里出现的错误 Console error:Unable to resolve target ‘Google Inc.:Google APIs:16. Fix:进入Properties检查Target sdk是否选择了Google APIs. List of errors:ACTION_POINTER_INDEX_MASK cannot be resolved android. HONEYCOMB cannot be resolved or is not a field LAYER_TYPE_HARDWARE cannot be resolved or is not a field LAYER_TYPE_NONE cannot be resolved or is not a field MATCH_PARENT cannot be resolved or is not a field The method getLayerType() is undefined for the type View The method setLayerType(int, null) is undefined for the type View Fix:将manifest里面的min sdk version 改为你当前用到的sdk版本,7以上. 二、修复example project里出现的错误 Console error:Found 2 versions of android-support-v4.jar in the dependency list,but not all the versions are identical (check is based on SHA-1 only at this time). Jar mismatch! Fix your dependencies Fix:这是由于jar包版本不一致导致的,检查SlidingMenu和Actionbarsherlock中的\libs文件夹里的哪个android-support-v4.jar版本比较新,用新的替换掉其中的老版本. 如果错误还是会出现,就clean项目并重启eclipse. List of errors:The method getSupportActionBar() is undefined for the type BaseActivity The method getSupportMenuInflater() is undefined for the type BaseActivity The method onCreateOptionsMenu(Menu) of type BaseActivity must override or implement a supertype method The method onOptionsItemSelected(MenuItem) in the type Activity is not applicable for the arguments The method onOptionsItemSelected(MenuItem) of type BaseActivity must override or implement a supertype method The method onOptionsItemSelected(MenuItem) of type ResponsiveUIActivity must override or implement a supertype method Fix:打开SlidingMenu library project里SlidingFragmentActivity这个类并在声明前添加以下代码: importcom.actionbarsherlock.app.SherlockFragmentActivity; 然后,将下面这个父类: publicclassSlidingFragmentActivityextendsFragmentActivityimplementsSlidingActivityBase{ 换成Actionbarsherlock里的另外一个父类: publicclassSlidingFragmentActivityextendsSherlockFragmentActivityimplementsSlidingActivityBase{ 如果错误还是会出现,就clean项目并重启eclipse. 没错误以后运行出下面效果: 原文:http://blog.csdn.net/zoeice/article/details/8721137 本文转自欢醉博客园博客,原文链接http://www.cnblogs.com/zhangs1986/p/3660353.html如需转载请自行联系原作者 欢醉

资源下载

更多资源
腾讯云软件源

腾讯云软件源

为解决软件依赖安装时官方源访问速度慢的问题,腾讯云为一些软件搭建了缓存服务。您可以通过使用腾讯云软件源站来提升依赖包的安装速度。为了方便用户自由搭建服务架构,目前腾讯云软件源站支持公网访问和内网访问。

Spring

Spring

Spring框架(Spring Framework)是由Rod Johnson于2002年提出的开源Java企业级应用框架,旨在通过使用JavaBean替代传统EJB实现方式降低企业级编程开发的复杂性。该框架基于简单性、可测试性和松耦合性设计理念,提供核心容器、应用上下文、数据访问集成等模块,支持整合Hibernate、Struts等第三方框架,其适用范围不仅限于服务器端开发,绝大多数Java应用均可从中受益。

Sublime Text

Sublime Text

Sublime Text具有漂亮的用户界面和强大的功能,例如代码缩略图,Python的插件,代码段等。还可自定义键绑定,菜单和工具栏。Sublime Text 的主要功能包括:拼写检查,书签,完整的 Python API , Goto 功能,即时项目切换,多选择,多窗口等等。Sublime Text 是一个跨平台的编辑器,同时支持Windows、Linux、Mac OS X等操作系统。

WebStorm

WebStorm

WebStorm 是jetbrains公司旗下一款JavaScript 开发工具。目前已经被广大中国JS开发者誉为“Web前端开发神器”、“最强大的HTML5编辑器”、“最智能的JavaScript IDE”等。与IntelliJ IDEA同源,继承了IntelliJ IDEA强大的JS部分的功能。

用户登录
用户注册