AS常见错误集合

1 Error:A problem was found with the configuration of task ‘:app:packageNormalVersionDebug’.

File ‘E:\项目\签名.keystore’ specified for property ‘signingConfig.storeFile’ does not exist.
解决方案:
找下你的签名文件夹的路径,看看是不是项目变了以后,签名文件夹路径变了,改过来就行
2 http://blog.csdn.net/u010882634/article/details/50682845
2 Warning:Conflict with dependency ‘com.google.code.findbugs:jsr305’. Resolved versions for app (3.0.1) and test app (2.0.1) differ. See http://g.co/androidstudio/app-test-app-conflict for details.
解决方式:

在您的应用程序build.gradle添加内的下列android { }:

configurations.all {
resolutionStrategy.force ‘com.google.code.findbugs:jsr305:1.3.9’
}
2 这个问题是在做扫描的时候出现的,
Error:Execution failed for task ‘:app:transformClassesWithJarMergingForRelease’.

com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/zxing/aztec/AztecDetectorResult.class
我感觉应该是
compile files(‘libs/zxing.jar’)
compile ‘com.google.zxing:core:3.2.1’
这两个引用里面的包重复了
经过多次查询,找到这个大神的博客,发现是
com.android.support:appcompat-v7:25.3.1引用和比其他包里面的引用的版本高,造成其他lib无法找到引用,后来我这样修改以后竟然好了,百思不得其解啊
compile( ‘com.android.support:appcompat-v7:25.3.1’){
exclude group: ‘com.android.support’
}
http://www.mobibrw.com/2016/3777
1

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值