본문 바로가기
React Native

ERROR Looks like you have configured linking in multiple places. This is likely an error since deep links should only be handled in one place to avoid conflicts. Make sure that:

by 어느새벽 2026. 2. 25.
반응형

이 에러는 폴더블 기기를 접거나 펴면서 화면 크기가 변할 때,
안드로이드 시스템이 Activity를 재시작(Recreate)하려고 하면서
발생합니다. 이때 expo-router의 루트 내비게이션 설정이
중복으로 감지되는 것이 원인입니다.

 

에러의 주된 원인은 폴더블 기기에서 화면을 펼칠 때 발생하는
'Configuration Change'로 인해 Activity가 재시작되면서
expo-router의 초기화 로직이 꼬이는 경우입니다.

 

이를 해결하기 위해 AndroidManifest.xml에서 configChanges
옵션을 보강하고, 가로/세로 전환 시 Activity가 재시작되지
않도록 설정해야 합니다.

 

1. android:configChanges에 smallestScreenSize, screenLayout
등이 잘 포함되어 있는지 확인하고, 누락된 항목을 채웁니다.
2. android:screenOrientation="portrait"가 고정되어 있으면
폴더블을 펼쳤을 때 부자연스러울 수 있으므로 user나
sensor로 변경하는 것이 폴더블 대응에는 더 좋습니다.
(사용자가 꼭 세로로 고정하고 싶은 것이 아니라면요.)

 

<activity android:name=".MainActivity"             
    android:configChanges="keyboard|keyboardHidden|orien 
    tation|screenSize|screenLayout|uiMode|locale|layoutD 
    irection" android:launchMode="singleTask"            
    android:windowSoftInputMode="adjustResize"           
    android:theme="@style/Theme.App.SplashScreen"        
    android:exported="true"                              
    android:screenOrientation="portrait"> 
    
//아래처럼 변경

<activity android:name=".MainActivity"             
    android:configChanges="keyboard|keyboardHidden|orien 
    tation|screenSize|screenLayout|smallestScreenSize|ui 
    Mode|locale|layoutDirection"                         
    android:launchMode="singleTask"                      
    android:windowSoftInputMode="adjustResize"           
    android:theme="@style/Theme.App.SplashScreen"        
    android:exported="true"                              
    android:screenOrientation="user">
반응형