[英]Android resource linking failed at google_play_service_version in generated menifest
When I set minifyEnabled true and build aar.当我将 minifyEnabled 设置为 true 并构建 aar. its giving error 'android resource linking failed' at google_play_services_version in manifest while integrating it to the project.
它在清单中的 google_play_services_version 中给出错误“android 资源链接失败”,同时将其集成到项目中。
I have added below code to my aar manifest.我已将以下代码添加到我的 aar 清单中。
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
and in proguard-rules.pro i have added在 proguard-rules.pro 我添加了
-keepnames class com.google.android.gms.** {*;}
And if i set minifyEnabled false than all works proper.如果我将 minifyEnabled 设置为 false ,那么一切正常。
Can anyone help me out i am stuck.谁能帮帮我,我被卡住了。
You are setting the minifyEnabled true then defined the progurad rules for all third parties and other.您将 minifyEnabled 设置为 true,然后为所有第三方和其他定义 progurad 规则。 Update each rule.
更新每条规则。
I solve this issue by keeping google_play_services_version values.xml file inside our main project.我通过在我们的主项目中保留 google_play_services_version values.xml 文件来解决这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.