[Android] Unsupported Modules Detected

2022. 11. 21. 09:58·Android/이슈 처리
반응형

패키지 명을 변경한 것을 적용하기 위해 build.gradle(:app)에서 applicationId를 변경하고 sync를 했는데,

Unsupported Modules Detected: Compilation is not supported for following modules: . Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project.

라는 에러가 발생했다.

 

이상하게 빌드는 성공했는데 Binding을 import 하는 부분부터 빨간줄이 사라지지 않았다.

Clean Project와 Rebuild Project를 해도 사라지지 않았는데, 해당 프로젝트의 .idea 폴더를 삭제하고 안드로이드 스튜디오를 다시 켜니 해결되었다.

 

.iml 파일에 포함되지 않은 모듈이 프로젝트에 있을 때 해당 오류가 나타난다고 하는데,

폴더를 지우고 IDE를 재실행하면 .iml 파일이 완전히 다시 작성되기 때문에 오류가 해결되는 것 같다.

반응형

'Android > 이슈 처리' 카테고리의 다른 글

[Android] Permission denied (publickey).  (0) 2023.03.08
[Android] error: To use Coroutine features, you must ···  (0) 2023.01.26
[Android] Duplicate class androidx.lifecycle ···  (0) 2023.01.09
[Android] Could not find method kapt() for arguments ···  (0) 2023.01.06
[Android] Could not resolve all files for configuration ':app:debugCompileClasspath'.  (0) 2022.12.26
'Android/이슈 처리' 카테고리의 다른 글
  • [Android] error: To use Coroutine features, you must ···
  • [Android] Duplicate class androidx.lifecycle ···
  • [Android] Could not find method kapt() for arguments ···
  • [Android] Could not resolve all files for configuration ':app:debugCompileClasspath'.
O_Gyong
O_Gyong
안드로이드 기술 정리
  • O_Gyong
    O_Gyong's TECH
    O_Gyong
    • 분류 전체보기 (79)
      • Android (56)
        • ADB (4)
        • AddView (1)
        • Architecture (1)
        • Bluetooth (2)
        • BuildConfig (1)
        • Calendar (3)
        • Camera (2)
        • Cipher (1)
        • Compose (1)
        • ConstraintSet (1)
        • DataStore (1)
        • Dialog (1)
        • DrawerLayout (1)
        • Flow (1)
        • Glide (1)
        • MQTT (2)
        • Paging3 (4)
        • Permission (1)
        • SharedPreferences (3)
        • RecyclerView (5)
        • Room (1)
        • Splash (1)
        • TabLayout (2)
        • TextWatcher (1)
        • Update (1)
        • 이슈 처리 (13)
      • Android Studio (5)
      • Firebase (1)
      • Git (3)
      • 작업 일지 (13)
  • 최근 글

  • 인기 글

  • 태그

    firebase
    Pagination
    Navigation
    CalendarView
    webview
    Bluetooth
    github
    recyclerview
    MQTT
    hilt
    loading
    Kotlin
    Room
    해상도
    TabLayout
    compose
    BLE
    Android
    Andoird
    Paging3
    in-app update
    flow
    paging
    ADB
    kizitonwose
    CameraX
    Android Studio
    SharedPreferences
    GIT
    issue
  • 링크

    • GitHub
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • hELLO· Designed By정상우.v4.10.4
O_Gyong
[Android] Unsupported Modules Detected
상단으로

티스토리툴바