xmlif标签里加不加android,Androidmanifest XML不存在或有不正确的根标签

我认为它不能重命名的应用程序/ src目录/主

注释的事情永远不会发生,因为当我们同步项目,摇篮它将取代主要默认

当我将我的主转换为其他任何问题时,它无法识别清单。 所以我指定了gradle.build中的清单路径。

如果您在android的build.gradle中添加此项目,您可以构建该项目。

sourceSets {

main {

manifest.srcFile 'src/bk/AndroidManifest.xml'

}

}

我得到了这样的警告。

Error:(33, 28) No resource found that matches the given name (at 'label' with value '@string/app_name').

Error:(24, 24) No resource found that matches the given name (at 'theme' with value '@style/AppTheme').

Error:(22, 23) No resource found that matches the given name (at 'icon' with value '@drawable/ic_launcher').

Error:(23, 24) No resource found that matches the given name (at 'label' with value '@string/app_name').

由于警告应用程序无法找到与其关联的drawables/strings,因为我们间接显示了清单路径。

我可能是错的。根据我的知识,我添加了我的假设。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值