본문 바로가기

안드로이드(Android )5

[ 에러 ] The value of attribute "android:text" associated with an element type "TextView" must not contain the '<' character. The value of attribute "android:text" associated with an element type "TextView" must not contain the ' 2022. 9. 10.
[ 에러 ] Error while waiting for device: ~ is already running. Error while waiting for device: ~ is already running. 안드로이드 스튜디오 실행 시, 다음과 같은 에러가 발생했습니다. Error while waiting for device: AVD 360x740_API_31 is already running. If that is not the case, delete the files at ~\.android\avd/360x740_API_31.avd/*.lock and try again. 원인 안드로이드 스튜디오가 락(lock)이 걸렸습니다. 해결책 해당 경로 들어가서 *. lock으로 시작하는 파일을 삭제해 줍니다. 그리고 다시 실행해 보면 정상적으로 실행이 됩니다. 하지만, 그래도 안된다면? Device Manager에 가서.. 2022. 9. 9.
[ 에러 ] Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined 안드로이드 빌드시, 다음과 같은 에러가 발생하였습니다. 해결책 AndroidManifest.xml에서 MainActivity가 되는 부분에 android:exported="true"를 추가해 줍니다. android:exported란? 다른 애플리케이션의 구성요소로 액티비티를 시작할 수 있으면 true 아니라면 false를 선언합니다. 기본적으로 true를 추천합니다. 감사합니다. export 명사 [ˈekspɔːt;.. 2022. 2. 13.
[ 에러 ] Execution failed for task ':app:mergeDebugResources' Execution failed for task ':app:mergeDebugResources' 안드로이드 스튜디오 build를 할 때, Execution failed for task ':app:mergeDebugResources'라고 뜨면서 빌드가 에러가 났습니다. 원인을 찾아보니 다음과 같습니다. 원인 색상코드를 잘못입력을 했습니다. 즉, colors.xml에 색깔 코드를 잘못 입력하여 옆에 색상이 표시가 안되었습니다. 해결책 그래서 색상표를 수정을 하여서 색상이 표시되도록 수정을 완료하였습니다. 결과적으로 '허용되지 않는 값' 등을 포함하고 있을 때 에러가 발생합니다. 감사합니다. 2022. 2. 3.