只需要在报错位置所在的类上面添加: @SuppressWarnings("ResourceType") 即可实现Generate signed apk.…
error: Zip file too big (greater than 4294959102 bytes)错误解决办法.zip文件夹大于4GB,在centos下无法正常unzip,需要使用第三方工具来解压,比如7zip在SHH或者终端下输入:yum –y install p7zip(如果提示找不到资源,则要自己下载编译安装,命令如:)wget http://nchc.dl.sourceforge.net/sourceforge/p7zip/p7zip_4.65_src_all.tar.bz2…
今天在Centos下编译kapar 后执行时出错,老说: [root@dc01 ~]# kapar kapar: error while loading shared libraries: libscamperfile.so.0: cannot open shared object file: No such file or directory 刚开始还以为是64位系统的问题,换到32位的系统上以后依然如此.然后上网搜了下,发现时配置文件问题,找到了解决办法并且成功解决问题. 我使用的是下面的第…
我在 s0 主机上远程拷贝 /etc/hosts 文件到 s1 主机上,出现下面的错误提示: qiao@s0:~$ scp /etc/hosts root@s2:/etc/root@s2's password: Permission denied, please try again. 解决办法如下: 1.    sudo gedit /etc/ssh/sshd_config    注释掉 PermitRootLogin without-password,添加 PermitRootLogin ye…
(一)第一 修改 ifup-eth vi /etc/sysconfig/network-scripts/ifup-eth #if ! /sbin/arping -q -c 2 -w 3 -D -I ${REALDEVICE} ${ipaddr[$idx]} ; then #net_log $"Error, some other host already uses address ${ipaddr[$idx]}." #exit 1 #fi 重新启动网络服务: service networ…
今天准备在使用bower安装一些东西的时候,废了老半天劲,因为需要node环境以及bower平台,安装不顺利,通过百度,最解决了这些问题: 在执行bower命令的时候,总是会报错,原来需要在命令后添加 --allow-root 选项: bower install --allow-root 原文地址:[http://www.ipandao.com/articles/bower-cannot-be-run-with-sudo ]…
This inspection looks at Android API calls that have been annotated with various support annotations (such as RequiresPermission or UiThread) and flags any calls that are not using the API correctly as specified by the annotations. 在报错所在类的位置添加注解 @Sup…
有时候 ,我们在调试APK,直接Build是可以正常生成,没有报错,但是当我们将自己的签名文件加上去,就会报错.一般情况下,我们可以在build.gradle中的android{}里面添加一个东西 lintOptions { checkReleaseBuilds false abortOnError false } 整个文件如下: apply plugin: 'com.android.application' android { compileSdkVersion 16 buildToolsVe…
开发过程中,总会遇到很多坑: Gradle build finished with 101 error(s) in 1m 35s 424ms 19:23:50 Generate Signed APK: Errors while building APK. You can find the errors in the ‘Messages’ view. 这相信大家都会遇到吧,当你想打包APK时就会出现这样的一句话,而且没任何提示了,你心里顿时一万只草泥马奔腾而过…. 别慌,本大神教你: You ca…
原文地址:https://www.jianshu.com/p/9e02e55f0ba8 1.点击build栏目-并没有Generate signed apk选项 2.点击file,选中如下图所示Sync Project with Gradle Files(等需要增加的文件下载完,在重启就可以了.亲测可行[windows和Mac系统都可以]) 3.如下图所示,Generate signed就会出来…