This versionName value (0.2) is not used; it is always overridden by the value specified in the Grad

This versionName value (0.2) is not used; it is always overridden by the value specified in the Gradle build script (0.0) less... (Ctrl+F1) 
The value of (for example) minSdkVersion is only used if it is not specified in the build.gradle build scripts. When specified in the Gradle build scripts, the manifest value is ignored and can be misleading, so should be removed to avoid ambiguity.

这个错误翻译成中文就是:

不使用此versionName值(0.2); 它始终被Gradle构建脚本(0.0)中指定的值覆盖...(Ctrl + F1)
(例如)minSdkVersion的值仅在build.gradle构建脚本中未指定时使用。 在Gradle构建脚本中指定时,清单值将被忽略并且可能会产生误导,因此应将其删除以避免歧义。

原因:你们在AndroidManifest和build.gradle都写了versioncode,versionname。系统在编译的过程中只会取build.gradle里面的数据,解决方法就是把manifest以下的内容删除。

每次修改versioncode,versionname在build.gradle就可以了

 

 

 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值