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

home2 게시판 Flutter 게시판 contacts_service 오류?

contacts_service 오류?

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

    꺄륵
    참가자
    실행해보면
    
    Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
    Running Gradle task 'assembleDebug'...
    FAILURE: Build failed with an exception.
    * What went wrong:
    A problem occurred configuring project ':contacts_service'.
    > 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 963ms 이런 에러가 발생합니다..
    
    
    #131130

    codingapple
    키 마스터
    android/build.gradle 파일에 subprojects{} 항목에
    
    subprojects {
       afterEvaluate { project ->
           if (project.hasProperty('android')) {
               project.android {
                   if (namespace == null) {
                       namespace project.group
                   }
               }
           }
       }
    }
    이런거 추가하면 잘됩니까
    #131142

    꺄륵
    참가자
    Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
    Running Gradle task 'assembleDebug'...
    Incorrect package="flutter.plugins.contactsservice.contactsservice" found in source AndroidManifest.xml: C:\Users\psh01\AppData\Local\Pub\Cache\hosted\pub.dev\contacts_service-0.6.3\android\src\main\AndroidManifest.xml.
    Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported.
    Recommendation: remove package="flutter.plugins.contactsservice.contactsservice" from the source AndroidManifest.xml: C:\Users\psh01\AppData\Local\Pub\Cache\hosted\pub.dev\contacts_service-0.6.3\android\src\main\AndroidManifest.xml.
    FAILURE: Build failed with an exception.
    * What went wrong:
    Execution failed for task ':contacts_service:processDebugManifest'.
    > A failure occurred while executing com.android.build.gradle.tasks.ProcessLibraryManifest$ProcessLibWorkAction
       > Incorrect package="flutter.plugins.contactsservice.contactsservice" found in source AndroidManifest.xml: C:\Users\psh01\AppData\Local\Pub\Cache\hosted\pub.dev\contacts_service-0.6.3\android\src\main\AndroidManifest.xml.
         Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported.
         Recommendation: remove package="flutter.plugins.contactsservice.contactsservice" from the source AndroidManifest.xml: C:\Users\psh01\AppData\Local\Pub\Cache\hosted\pub.dev\contacts_service-0.6.3\android\src\main\AndroidManifest.xml.
    * 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 
    추가했더니 이런 오류가 뜹니다. 싹 지우고 다시 깔아도 
    permission_handler, contacts_service 이런거 추가하면 무한 에러가 발생해요ㅠㅜㅠ
    
    #131154

    codingapple
    키 마스터
    에러메세지에 있는 경로에 있는 AndroidManifest.xml 파일안에 
    package="flutter.plugins.contactsservice.contactsservice" 부분 지우라는거같습니다
4 글 보임 - 1 에서 4 까지 (총 4 중에서)
  • 답변은 로그인 후 가능합니다.

About

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

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

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