每个android studio下都有build.gradle文件,这里有工程构建的一些信息:
如果我们要得到一个工程的版本号,我们可以这样来获取:
那我们在build.gradle里,这里默认的函数都可以使用DefaultGroovyMethods,里面有很多有用的方法可以调用,
我们采用
public static java.lang.Process...
分类:
其他好文 时间:
2014-07-27 11:53:33
阅读次数:
300
今天用maven新建一个项目导入到MyEclipse中,项目前面显示了一个小叉叉,代码中却没有任何错误。于从 problems 视图中查看错误信息,错误信息的“Description”显示:
Java compiler level does not match the version of the installed Java project facet.
该问题的解决方案有如下两种:
...
分类:
编程语言 时间:
2014-07-27 11:23:22
阅读次数:
212
1 概览 /*@version Bootstrap3*/ 1.1 HTML5文档类型Bootstrap 使用到的HTML/CSS元素和属性需要将页面设置为HMTL5文档类型,格式如下:1 2 3 ...4 1.2 移动设备优先从V3.0开始,Bootstrap 是移动设备优先的.为了确保...
分类:
其他好文 时间:
2014-07-27 10:04:02
阅读次数:
230
Compared with I version, the tree could be incomplete. The only difference is that, we connect current node's child to next non-childrenless' node's f...
分类:
其他好文 时间:
2014-07-26 17:02:11
阅读次数:
316
今天在redhat5.4_64系统替换yum源的时候出现:[root@mailyum.repos.d]#yumcleanmetadataTherewasaproblemimportingoneofthePythonmodulesrequiredtorunyum.Theerrorleadingtothisproblemwas:/usr/lib/python2.4/site-packages/_sqlitecache.so:wrongELFclass:ELFCLASS32Pleasei..
分类:
其他好文 时间:
2014-07-26 15:39:48
阅读次数:
278
TeXpen 现在支持多条命令流水执行了,但我本人仍然喜欢使用脚本来处理。 echo "texbuild - build your article in one command."
echo "version 0.1 (c) MengChang (Maxwell) Wang, 2014"
echo "at Nanyang Tech...
分类:
其他好文 时间:
2014-07-26 03:33:37
阅读次数:
194
grub-install--boot-directory=/mnt/boot/dev/sdaunrecognizedoption--boot-directory=/mnt/bootError8r:KernelmustbeloadedbeforebootingSwitchingtolocksourcetscregisteredtaskstatsversion1inputimps/2GenericWheelMouseas/devices/platform/i802/serio1/input/input3/ftc_..
分类:
其他好文 时间:
2014-07-26 03:11:17
阅读次数:
404
linux split 命令 功能说明:切割文件。 语 法:split [--help][--version][-][-b ][-C ][-l ][要切割的文件][输出文件名] 【前缀】 补充说明:split可将文件切成较小的文件,预设每1000行会切成一个小文件。 参 数: -或-l...
分类:
系统相关 时间:
2014-07-26 01:42:36
阅读次数:
293
The table below details the versions of Apache, MySQL, and PHP included in each version of XAMPP.XAMPPApacheMySQLPHP 5PHP 41.8.32.4.95.6.165.5.111.8.2...
分类:
数据库 时间:
2014-07-26 01:31:16
阅读次数:
305
使用nuget管理程序包,有可能在不同时间安装不同版本的Entity Framework:在项目创建初期安装的是6.0.0.0版本,后来添加的类库,安装了6.1.1版本,所以出现这个问题。解决办法:1. 工具 -> 库程序包管理器 -> 管理解决方案的nuget程序包2. 在选中已安装的包中找到En...
分类:
其他好文 时间:
2014-07-26 01:04:26
阅读次数:
239