• 카테고리

    질문 & 답변
  • 세부 분야

    모바일 앱 개발

  • 해결 여부

    미해결

플러그인 'cloud_firestore, firebase_auth'는 더 이상 사용되지 않는 Android 임베딩 버전을 사용합니다.

22.03.07 14:24 작성 조회수 358

0

구글링 해봐도 어떻게 해결해야할지 이해가 안되서 질문드려요

에러코드입니다. 어떻게 해야 해결할 수 있을까요?

 

The plugins `cloud_firestore, firebase_auth` use a deprecated version of the Android embedding.

To avoid unexpected runtime failures, or future build failures, try to see if these plugins support the Android V2 embedding. Otherwise, consider removing them since a future release of Flutter will remove these deprecated APIs.

If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.

Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...

Running Gradle task 'assembleDebug'...

Plugin project :firebase_core_web not found. Please update settings.gradle.

 

FAILURE: Build failed with an exception.

 

* Where:

Build file 'C:\Users\user\StudioProjects\insta_clon\android\build.gradle' line: 27

 

* What went wrong:

A problem occurred evaluating root project 'android'.

> A problem occurred configuring project ':app'.

   > Failed to notify project evaluation listener.

      > 'org.gradle.api.file.DirectoryProperty org.gradle.api.file.ProjectLayout.directoryProperty(org.gradle.api.provider.Provider)'

      > Cannot invoke method afterEvaluate() on null object

 

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

 

* Get more help at https://help.gradle.org

 

BUILD FAILED in 23s

Exception: Gradle task assembleDebug failed with exit code 1

답변 2

·

답변을 작성해보세요.

1

goxo333님의 프로필

goxo333

질문자

2022.03.08

네 감사합니다!! 선생님 덕분에 해결했습니다:)

0

cloud_firestore, firebase_auth가 구버전 라이브러리라서 문제가 되는 것 같습니다.

강의 마지막 챕터에서 최신 라이브러리 버전으로 업그레이드 하는 방법을 소개하는데요. 그 영상들을 참고해서 버전을 어느 정도 올리고 사용방법을 수정해서 사용해야 할 것 같습니다.

소스는 https://github.com/junsuk5/flutter_insta_clon/tree/null-safety 를 참고하세요.