코틀린(Kotlin)/TIL

[코틀린(Kotlin)] android uri is not registered 에러

초보왕보초 2024. 1. 3. 22:39
728x90

레이아웃을 공부한답시고 무지성 레이아웃 생성하다가 android uri is not registered 에러가 떴다

 

 

android uri is not registered

<manifest xmlns:android="https://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">

 

android uri is not registered 에러는 manifest 파일에서 xmlns에 해당하는 uri를 인식하지 못해서 생긴다고 한다

 

 

해결법

File → settings languages and frameworks schemas and DTDS 선택 후

ignoredschemas and DTDs에 에러가 뜬 uri를 추가해 주고 OK 한다

(xmlns 다 안치고 큰 따옴표("") 안에 있는 것들만 추가해 주면 된다)

728x90