• 로그인
  • 장바구니에 상품이 없습니다.

home2 게시판 Flutter 게시판 bigPictureStyle.bigLargeIcon(null) 앱 실행 오류

bigPictureStyle.bigLargeIcon(null) 앱 실행 오류

3 글 보임 - 1 에서 3 까지 (총 3 중에서)
  • 글쓴이
  • #139606

    싱가리
    참가자
    PIXEL 5 API 36을 가상머신으로 만들고
    플러터 버전은 3.32입니다.
    
    근데 앱을 실행하려는에 아래와 같은 에러메세지가 뜨면서 실행이 안됩니다 ㅠㅠ
    
    
    warning: [options] source value 8 is obsolete and will be removed in a future release
    warning: [options] target value 8 is obsolete and will be removed in a future release
    warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    C:\Users\Ryanl\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_local_notifications-14.1.1\android\src\main\java\com\dexterous\flutterlocalnotifications\FlutterLocalNotificationsPlugin.java:995: error: reference to bigLargeIcon is ambiguous
          bigPictureStyle.bigLargeIcon(null);
                         ^
      both method bigLargeIcon(Bitmap) in BigPictureStyle and method bigLargeIcon(Icon) in BigPictureStyle match
    1 error
    3 warnings
    FAILURE: Build failed with an exception.
    * What went wrong:
    Execution failed for task ':flutter_local_notifications:compileDebugJavaWithJavac'.
    > Compilation failed; see the compiler output below.
      warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.warning: [options] source value 8 is obsolete and will be removed in a future releasewarning: [options] target value 8 is obsolete and will be removed in a future releaseC:\Users\Ryanl\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_local_notifications-14.1.1\android\src\main\java\com\dexterous\flutterlocalnotifications\FlutterLocalNotificationsPlugin.java:995: error: reference to bigLargeIcon is ambiguous
            bigPictureStyle.bigLargeIcon(null);
                           ^
        both method bigLargeIcon(Bitmap) in BigPictureStyle and method bigLargeIcon(Icon) in BigPictureStyle match
      1 error
      3 warnings
    * Try:
    > Check your code and dependencies to fix the compilation error(s)
    > Run with --scan to get full insights.
    BUILD FAILED in 36s
    Error: Gradle task assembleDebug failed with exit code 1
    
    
    도무지 어떻게 해결해야될지를 모르겠습니다
    #139609

    싱가리
    참가자
    챗gpt한테도 물어봤는데
    
    C:\Users\Ryanl\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_local_notifications-14.1.1\android\src\main\java\com\dexterous\flutterlocalnotifications\FlutterLocalNotificationsPlugin.java
    들어가서
    
    
    bigPictureStyle.bigLargeIcon(null);
    이거를
    
    bigPictureStyle.bigLargeIcon((Bitmap) null);
    이거로 바꾸라고 하길래 바꿔서 해결했습니다...
    
    뭐 나중에 flutter clean 하면 날아갈거라 임시방편이라고 하는데, 문제가 될까요??
    
    
    
    
    #139612

    codingapple
    키 마스터
    패키지 17버전 이후걸로 설치하면 해결됩니다
3 글 보임 - 1 에서 3 까지 (총 3 중에서)
  • 답변은 로그인 후 가능합니다.

About

현재 월 700명 신규수강중입니다.

  (09:00~20:00) 빠른 상담은 카톡 플러스친구 코딩애플 (링크)
  admin@codingapple.com
  이용약관
ⓒ Codingapple, 강의 예제, 영상 복제 금지
top

© Codingapple, All rights reserved. 슈퍼로켓 에듀케이션 / 서울특별시 강동구 고덕로 19길 30 / 사업자등록번호 : 212-26-14752 온라인 교육학원업 / 통신판매업신고번호 : 제 2017-서울강동-0002 호 / 개인정보관리자 : 박종흠