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

home2 게시판 Flutter 게시판 namespace / AGP 오류 질문 드립니다.

namespace / AGP 오류 질문 드립니다.

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

    장건우
    참가자
    FAILURE: Build failed with an exception.
    * What went wrong:
    A problem occurred configuring project ':qr_code_scanner'.
    > 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 6s
    네임스페이스도 있고
    AGP도 이상 없는데(?)
    
    도통 원인을 모르겠습니다...ㅠㅠㅠ
    #131959

    codingapple
    키 마스터
    android/build.gradle 파일에 subprojects{} 항목에
    subprojects {
       afterEvaluate { project ->
           if (project.hasProperty('android')) {
               project.android {
                   if (namespace == null) {
                       namespace project.group
                   }
               }
           }
       }
    }
    이런거 추가해봅시다
    #132131

    장건우
    참가자
    allprojects {
        repositories {
            google()
            mavenCentral()
        }
    }
    rootProject.buildDir = "../build"
    subprojects {
        project.buildDir = "${rootProject.buildDir}/${project.name}"
    }
    subprojects {
        project.evaluationDependsOn(":app")
    }
    tasks.register("clean", Delete) {
        delete rootProject.buildDir
    }
    이 상태에서 두번째? 서브프로젝트 바로 밑에 추가하면 될까요?
    생초짜라 죄송합니다 ㅠㅠㅠ
    • 이 답변은 장건우에 의해 7 월, 1 주 전에 수정됐습니다.
    #132138

    codingapple
    키 마스터
    #132156

    장건우
    참가자
    * What went wrong:
    A problem occurred evaluating root project 'android'.
    > Cannot run Project.afterEvaluate(Closure) when the project is already evaluated.
    
    이번엔 요런 오류가 떠서 구글링이랑 챗GPT도 다 해봤는데 해결이 안 됩니다 ㅠㅠ
    #132159

    codingapple
    키 마스터
    https://stackoverflow.com/a/71014094 에서 android/app/build.gradle 파일에 한줄 추가하라는것도 해봅시다
    #132182

    장건우
    참가자
    * What went wrong:
    A problem occurred evaluating root project 'android'.
    > A problem occurred configuring project ':qr_code_scanner'.
       > 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.
    
    추가 할 것도 다 했는데 동일한 오류가? 뜹니다 ㅠㅠ
    • 이 답변은 장건우에 의해 7 월, 1 주 전에 수정됐습니다.
    • 이 답변은 장건우에 의해 7 월, 1 주 전에 수정됐습니다.
    • 이 답변은 장건우에 의해 7 월, 1 주 전에 수정됐습니다.
    • 이 답변은 장건우에 의해 7 월, 1 주 전에 수정됐습니다.
    #132196

    장건우
    참가자
    해결 했습니다!
    qr code scanner 모듈을 다른 모듈로 교체하고 요로코롬 하니 되었습니다 ^^!!
8 글 보임 - 1 에서 8 까지 (총 8 중에서)
  • 답변은 로그인 후 가능합니다.

About

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

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

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