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에서 처리 하도록 하자.
- Total
- 317,455
- Today
- 289
- Yesterday
- 295