Flutter:资源链接失败

时间:2019-02-28 09:14:51

标签: android flutter

在将flutter应用程序连接到Firebase时,我遇到此错误。我不知道是什么原因,但出现此错误:

FAILURE: Build failed with an exception.
 What went wrong:
Execution
     failed for task :app:process Debug Resources.
     Android resource linking failed

1 个答案:

答案 0 :(得分:0)

就我而言,我遇到此错误:

Execution failed for task ':google_sign_in:verifyReleaseResources'.

出现以下错误:

> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
  Output:  D:\flutter\dashboard_app\dashboad_app\build\google_sign_in\intermediates\res\merged\release\values\values.xml:197: error: resource android:attr/fontVariationSettings not f
ound.
  D:\flutter\dashboard_app\dashboad_app\build\google_sign_in\intermediates\res\merged\release\values\values.xml:198: error: resource android:attr/ttcIndex not found.
  error: failed linking references.

所以我将google_sign_in sdk从google_sdk更新为:google_sign_in 4.0.1+1