아주 간단하게 하는 방법 1. 안드로이드 스튜디오 좌측 프로젝트 패널에서 톱니 아이콘 클릭 2. Compact Middle Packages 해제 3. 원하는 패키지명을 누른 뒤, 우클릭 -> refactor -> rename 4. 경고 팝업이 뜨면 전체(all) 선택 5. 깊은 경로 일 경우 아래로 내려 가면서 하나씩 변경 6. 기존 5개 경로에서 3개로 변경 하고 싶다면 6.1. 예) com.a.b.c.d --> com.a.b 6.2 상위 패키지 명을 변경 한 후 , 하위 디렉토리 및 파일을 선택 해서 refactor -> move -> 가장 아래에 있는 all directory 옮기기로 옮기면 됨. 7. 남은 껍데기 폴더는 지워 주면 된다. 8. 그래들과, 매니페스트를 보면 자동으로 바뀌어 있음 9...
android studio Gradle 3.1.0 업데이트 후 1. error: resource style/TextAppearance.AppCompat.Notification.Title 발생android:textAppearance="@style/TextAppearance.AppCompat.Notification" --> 로 변경 android:textAppearance="@style/TextAppearance.Compat.Notification2. error: cannot find symbol class NotificationCompat import android.support.v7.app.NotificationCompat; --> 로 변경 import android.support.v4.app.Notif..
please fix the version conflict either by updating the version of the google-services plugin (9.0.0) 에러를 만난다면 최상위 gradle에 dependencies { classpath 'com.android.tools.build:gradle:3.0.1' classpath 'com.google.gms:google-services:3.0.0' // for firebase }요렇게 작성 하지 않았거나,build.gradle 에 apply plugin: 'com.google.gms.google-services' 을 파일의 맨 아래 줄에 작성 하지 않으면 발생 한다.
Exception raised during rendering: Could not initialize class android.graphics.Typeface 보통 안드로이드 스튜디오를 업데이트 할때 생긴다. xml preview가 되지 않는 현상이다. 이번에도 여지 없이 2.3에서 3.0으로 올렸더니 발생 했다. 맥 기준 이때의 해결 방법은1. 홈디렉토리의 .android를 지워주거나,2. .metadata를 지워주라는데 이건 이클립스 같고,3. 클린 리 빌드4. font 문제 등등 많은 방법 그런데 해결이 안되네? 그냥 다 지우고 다시 설치 하면 된다. 괜히 시간 낭비 하지 말자, 터미널에서 지울 필요 없다!그냥 응용프로그램 폴더에서 안드로이드 스튜디오를 휴지통으로 보낸 뒤, android studio..
Failed to resolve: com.android.support:support-v4:26.0.0 26 부터는 allprojects { repositories { jcenter() maven { url "https://maven.google.com" } } } 요렇게 url "https://maven.google.com" 을 마지막에 배치 해주어야 한다.
AsynkTask를 쓰다보면 자주 만나는 에러다. Caused by: android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. doInBackground에서는 UI 스레드에 직접 접근해서는 안되는데 발생한다. 즉, setText 같은 작업은 onPostExecute에서 처리 하도록 하자.