알쓸전컴(알아두면 쓸모있는 전자 컴퓨터)

Flutter Execution failed for task ':firebase_core:verifyReleaseResources' 에러 본문

Flutter,Dart

Flutter Execution failed for task ':firebase_core:verifyReleaseResources' 에러

백곳 2019. 10. 23. 09:57

androidx Migration (https://flutter.dev/docs/development/androidx-migration) 후 

 

Flutter 를 사용하다가 flutter build apk --release 사용시에 아래와 같은 오류까 떳다. 

 

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':firebase_core:verifyReleaseResources'.
java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
  C:\workproject\FlutterPro\forutonafront\build\firebase_core\intermediates\res\merged\release\values\values.xml:276: error: resource android:attr/fontVariationSettings not found.
  C:\workproject\FlutterPro\forutonafront\build\firebase_core\intermediates\res\merged\release\values\values.xml:277: error: resource android:attr/ttcIndex not found.
  error: failed linking references.

 

 

원인은 

https://firebase.google.com/docs/flutter/setup?hl=ko현재 공식 사이트에서 아래와 같이 설명 하고 있다. 

 

 

 

하지만 현재 Flutter firebase_core는  0.4.0 까지 나오고  

https://pub.dev/packages/firebase_core

 

 

https://pub.dev/packages/firebase_analytics  는 5.0.2 까지 나왔다.

 

ependencies:
  flutter:
    sdk: flutter
  firebase_core: ^0.4.0 # add dependency for Firebase Core
  firebase_analytics: ^5.0.2 # add dependency for Google Analytics for Firebase

 

을 바꿔 줘야 

 

에러가 해결 된다. 

 

Comments