#保持所有实现 Serializable 接口的类成员 -keepclassmembers class * implements java.io.Serializable { static final long serialVersionUID; private static final java.io.ObjectStreamField[] serialPersistentFields; private void writeObject(java.io.ObjectOutputStream); private void readObject(java.io.ObjectInputStream); java.lang.Object writeReplace(); java.lang.Object readResolve(); }
#Fragment不需要在AndroidManifest.xml中注册,需要额外保护下 -keep public class * extends android.support.v4.app.Fragment -keep public class * extends android.app.Fragment
CREATE TABLE `action` ( `action_id` int NOT NULL , `action_user_id` int NOT NULL , `action_time` time NOT NULL , `action_content` varchar(50) NOT NULL , PRIMARY KEY (`action_id`) )ENGINE=InnoDB DEFAULT CHARSET=utf8;
ERROR: [3] bootstrap checks failed #文件句柄太少,至少要65536 [1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536] #最大线程数太少,至少2048个(经典的2048游戏) [2]: max number of threads [1024] for user [king] is too low, increase to at least [2048] #虚拟内存太少,至少262144 [3]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
[1]解决方案:
1 2 3 4 5 6 7
[root]# vi /etc/security/limits.conf
# 添加如下配置: * soft nofile 65536 * hard nofile 131072 * soft nproc 2048 * hard nproc 4096
[2]解决方案:
1 2 3 4 5 6
[root]# vi /etc/security/limits.d/90-nproc.conf
将 * soft nproc 1024 改成 * soft nproc 2048
[3]解决方案:
1 2 3 4 5 6
[root]# vim /etc/sysctl.conf 添加如下代码: vm.max_map_count=655360
保存后,执行 sysctl -p
最后,还有一个错:
1
system call filters failed to install; check the logs and fix your configur ation or disable system call filters at your own risk