任务':google_sign_in:verifyReleaseResources'的执行失败 [英] Execution failed for task ':google_sign_in:verifyReleaseResources'

查看:70
本文介绍了任务':google_sign_in:verifyReleaseResources'的执行失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,所以我一直在构建我的flutter应用程序,但是,在出现此错误的情况下,我不知道该怎么办.我一直在关注此博客 https://flutter.dev/docs/deployment/android ,我的应用程序的发布版本.一切正常,直到我添加

Ok so I have been building my flutter application , however, i can't figure you what to do in case of this error. I have been following this blog https://flutter.dev/docs/deployment/android , for the release build of my app .Everything worked fine , until i added

flutter build apk --split-per-abi

它给了我以下错误,


FAILURE: 
Build failed with an exception.                                                        '
Execution failed for task ':google_sign_in:verifyReleaseResources'.             
> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
  /Users/shuvayan/Desktop/test/srijan2020-app/build/google_sign_in/intermediates/res/merged/release/values/values.xml:276:
 error: resource android:attr/fontVariationSettings not found.
  /Users/shuvayan/Desktop/test/srijan2020-app/build/google_sign_in/intermediates/res/merged/release/values/values.xml:277: error: resource android:attr/ttcIndex not found.
  error: failed linking references.

我为我的应用程序安装了facebook_flutter_plugin和google_sign_in插件.经过一些Google搜索后,一个github问题指出我在android/app/build.gradle中添加了强制使用compileSDKVersion 27,即使它被赋予28.

I had the facebook_flutter_plugin and google_sign_in plugins installed for my application. After some google search a github issue pointed me to add in the android/app/build.gradle to force use compileSDKVersion 27 even it was given 28.

configurations.all {
    resolutionStrategy {
        force 'com.android.support:support-v4:27.1.0'
    }
}

但是,这不能解决我的问题,并且错误仍然出现.在这个问题上,我会有所帮助.

However, this didn't solve my issue and my the error's still showing up. I would appreciate a little help on this matter.

推荐答案

问题出在插件上,它具有指定的compileSdkVersion依赖关系,该依赖项已设置为Android 27

The problem lies with the plugin with it's specified dependency of compileSdkVersion which have been set to Android 27

更新到该插件的最新版本(截至4.2.0)

update to the most recent version of the plugin, as of now 4.2.0

参考文献:

https://pub.dev/packages/google_sign_in#-changelog-tab- https://github.com/flutter/plugins/blob/master/packages/google_sign_in/google_sign_in/android/build.gradle

https://github.com/flutter/flutter/issues/32595

这篇关于任务':google_sign_in:verifyReleaseResources'的执行失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆