月度存档: 9 月 2016

app:mergeDebugResources报错解决方法

AndroidStudio 导入eclipse项目出现 app:mergeDebugResources
解决方法:

Module:app 的 build.gradle 中加入

aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false

例如:

apply plugin: ‘com.android.application’

android {
compileSdkVersion 21
buildToolsVersion “23.0.2”

aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false

defaultConfig {
applicationId “xxxxxxxxxxxxxxxxxxxxxxxxxxx”
minSdkVersion 8
targetSdkVersion 21
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.txt’
}
}
}

其实你不必走的太快,停下脚步静静感受初秋的凉风,掠过树叶,闪过身旁,留下江水涟漪…… 时间或许就像这清风,不去感受它,它就这么悄无声息的走了,消失不见……

[转]Ubuntu Server 上安裝 NFS Server

安裝所須套件
# apt-get install nfs-common nfs-kernel-server

建立要分享及掛載的目錄
# mkdir /home/partimag

修改設定檔 /etc/exports
加入下面一列
# vim /etc/exports
/home/partimag 192.168.66.0/24(rw,sync,no_subtree_check)

啟動 NFS Server
# /etc/init.d/nfs-kernel-server start
* Exporting directories for NFS kernel daemon… [ OK ]
* Starting NFS kernel daemon [ OK ]
檢查是是有啟動成功
# showmount -e localhost
Export list for localhost:
/home/partimag 192.168.66.0/24

2days before & after G20