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

home2 게시판 Flutter 게시판 sdkVersion 질문

sdkVersion 질문

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

    진하경
    참가자
    스크린샷 2024-11-14 111120
    유저에게 앱 권한 요청하기 3:30초 가량에 버전을 맞추라고 되어있는데, compileSdkVersion 라는 항목은 없고 다른 항목만 3개가 있는데 어떻게 처리하나요?
    우선 문자가 있으니 내버려두었습니다.
    
    재 실행 결과 이와 같은 오류 메세지가 떴습니다.
    
    FAILURE: Build failed with an exception.
    * What went wrong:
    A problem occurred configuring project ':permission_handler'.
    > Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
       > Namespace not specified. Specify a namespace in the module's build file. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.
         If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant.
    * 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 25s
    Error: Gradle task assembleDebug failed with exit code 1
    
    • 이 게시글은 진하경에 의해 8 월, 3 주 전에 수정됐습니다.
    #132332

    codingapple
    키 마스터
    https://stackoverflow.com/a/77625024 이거 따라서 android/build.gradle 파일에 추가해봅시다
    #132349

    진하경
    참가자
    스크린샷 2024-11-14 184358
    
    추가 후 오류코드입니다.
    
    FAILURE: Build failed with an exception.
    * Where:
    Build file 'C:\Users\USER\Fluuter\android\build.gradle' line: 14
    * What went wrong:
    A problem occurred evaluating root project 'android'.
    > Cannot run Project.afterEvaluate(Closure) when the project is already evaluated.
    * 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 1s
    Error: Gradle task assembleDebug failed with exit code 1
    
    
    
    #132352

    codingapple
    키 마스터
    아니면 permission_handler 패키지 버전을 좀 높여서 설치해서 테스트해봅시다
    #132366

    진하경
    참가자
    스크린샷 2024-11-15 095052
    
    최신버전으로 실행시 나는 오류입니다.
    
    FAILURE: Build failed with an exception.
    * Where:
    Build file 'C:\Users\USER\Fluuter\android\build.gradle' line: 15
    * What went wrong:
    Could not compile build file 'C:\Users\USER\Fluuter\android\build.gradle'.
    > startup failed:
      build file 'C:\Users\USER\Fluuter\android\build.gradle': 15: Unexpected input: '{\r\n    project.evaluationDependsOn(":app");\r\n    }\r\n}' @ line 15, column 1.
         }
         ^
      1 error
    * 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 1s
    Error: Gradle task assembleDebug failed with exit code 1
    
    >이후 build.gradle파일 기본 오타 수정후 오류
    
    스크린샷 2024-11-15 095353
    
    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.
    
    #132374

    codingapple
    키 마스터
    android\build.gradle 파일 15번 줄에 코드넣었던거 원래대로 다시 돌려봅시다
    #132390

    진하경
    참가자
    그거 } 가 하나 추가 되어서 난 오류입니다...
    #132401

    codingapple
    키 마스터
    뺐더니 잘됩니까
    #132413

    진하경
    참가자
    아뇨 위에 사진이 제거한건데 사진처럼 워닝이 뜨고 안 나오는데, 세팅값인지 뭔지 해제?했더니 이후로 됩니다.
9 글 보임 - 1 에서 9 까지 (총 9 중에서)
  • 답변은 로그인 후 가능합니다.

About

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

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

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