android 开发遇到的奇难杂症

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/WPR13005655989/article/details/89467257
  1. Gradle 构建报错 Corrupted DataBlock 2944000 found in cache xxxx taskArtifacts fileHashes.bin  
  2. Corrupted DataBlock 1788408 found in cache xxxxxxxxxx\fileHashes.bin'
  3. Could not execute build using Gradle distribution http://xxxxxxxxxxx

解决办法:把项目下的.gradle 目录删掉 再构建 

2. 安装apk失败: installation failed since the device already has an application with the same package but  a different signature in order to proceed........

博主出现这个错误的主要原因是应用的包名改了,在清单上改了包名,但是build.gradle上的applicationdi没有更改,导致出现这个问题,改为一致就解决了

猜你喜欢

转载自blog.csdn.net/WPR13005655989/article/details/89467257