본문 바로가기

Android/Android Error

AAPT2 error: check logs for details AAPT2 error: check logs for details 현재 안드로이드 스튜디오 3.3.1을 쓰고 있는데 run시 에러가 발생해서 구글링해봐도 프로젝트 내에 gradle.properties 파일을 열고 수정해 주라는 글만 있었다. android.enableAapt2=false 그런데 2018년도 까지만 쓸 수 있는 거다. 이러면서 문제 해결이 되지 않았다. 프로젝트 build.gradle 내에 gradle버전을 올려주고 dependencies { classpath 'com.android.tools.build:gradle:3.3.2' // NOTE: Do not place your application dependencies here; they belong // in the individual m.. 더보기
appbar_scrolling_view_behavior not found. 에러 책 예제를 따라치던 중 이런 에러가 발생했다. error: attribute 'com.zxcv5500.toyproject:contentScrim' not found. error: attribute 'com.zxcv5500.toyproject:layout_scrollFlags' not found. error: attribute 'com.zxcv5500.toyproject:layout_collapseMode' not found. error: resource string/appbar_scrolling_view_behavior (aka com.zxcv5500.toyproject:string/appbar_scrolling_view_behavior) not found. 에러가 나는 원인은 사용하는 라이브러리를 ap.. 더보기
cardUseCompatPadding' not found 에러 책 소스를 따라 치던 중 컴파일 시 이런 에러가 났다cardUseCompatPadding' not found. 이 에러는 cardview를 쓰는데 지원하는 라이브러리를 모듈에 추가해주지 않았을 때 나타난다.app 모듈 단에 있는 build.gradle에 다음 라인을 추가해 주면 해결이 된다.implementation 'com.android.support:cardview-v7:27.1.1' 더보기
Error:(16, 0) Gradle DSL method not found: 'runProguard()' Error:(16, 0) Gradle DSL method not found: 'runProguard()' Possible causes:The project 'Chapter05' may be using a version of Gradle that does not contain the method.Gradle settingsThe build file may be missing a Gradle plugin.Apply Gradle plugin 이 에러 메시지는 안드로이드 난독화 프로그램 중에 Proguard의 변경이 생겨서 발생하는 에러이다.안드로이드 스튜디오 툴의 버전이 올라가면서 변경된 사항이기 때문에 간혹 이런 사소한 에러로 고생하는 경우가 생긴다. 안드로이드 스튜디오는 프로젝트 안에 모듈이라는 단위로 구.. 더보기