본문 바로가기

android error

[Android Error] This Activity already has an action bar supplied by the window decor. [Error] java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead. 안드로이드 스튜디오에서 위와 같은 에러가 발생했다. 저 에러는 ActionBar가 있는 테마를 사용중인 프로젝트에서 툴바를 사용하려고 할 때 발생한다. 그러니까, 툴바를 사용하지 말던지, ActionBar를 사용하지 않는 테마를 설정해줘야 한다. 크게 두가지 방법이 있는데, 1. themes.x.. 더보기
[Android Error] FileNotFoundException: open failed: ENOENT ( No such file or directory) [FileNotFoundException: open failed: ENOENT] 1. 안드로이드 개발 중 (텍스트) 파일을 쓰고 읽는 중에 아래와 같은 에러가 발생했다. [해결방법] 1. 해결방법은 생각보다 간단했다. 매니페스트 파일(Manifest.xml)에서 태그에 requestLegacyExternalStorage="true" 속성을 추가해주면 된다. 더보기
[Error] Some problems were found with the configuration of task ':app:processDebugGoogleServices' [Error] Some problems were found with the configuration of task ':app:processDebugGoogleServices' (type 'GoogleServicesTask'). - Type 'com.google.gms.googleservices.GoogleServicesTask' field 'intermediateDir' without corresponding getter has been annotated with @OutputDirectory. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. .. 더보기
[Error] Execution failed for task ':app:stripDebugDebugSymbols' [Error] * What went wrong: Execution failed for task ':app:stripDebugDebugSymbols'. > No version of NDK matched the requested version 20.0.5594570. Versions available locally: 23.1.7779620 * Try: Run with --stacktrace option to get the stack trace. [해결방법] NDK 버전이 맞지 않아 발생한 오류이다. File - Settings - Appearance & Behavior - System Settings - Android SDK 이동 'SDK Tools' 탭에서 필요한 (에러로그에서 표시된) 버전을 instal.. 더보기
[Error] Execution failed for task 'appcompileDebugJavaWithJavac' [Error] 1 Task failed with an exception. ----------- What went wrong Execution failed for task 'appcompileDebugJavaWithJavac'. javaxxmlbindJAXBException 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. ================================================================= [해결방법] 1. File - Project S.. 더보기
[Error] but repository 'maven' was added by build file 'build.gradle' [Error] A problem occurred evaluating root project '{projectName}'. > Build was configured to prefer settings repositories over project repositories but repository 'maven' was added by build file 'build.gradle' 아래 노란색 체크 표시가 에러 났다는 부분이다. [해결방법] repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) -> repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS) 로 수정 더보기