java.lang.incompatibleclasschangeerror android.support.v4.content.contextcompat

2016. 9. 23. 13:44·Android Development
반응형

Android Studio is upgrade to version 2.2 from 2.1.x.

But it happened critical problem for Authorization of Google SDK.

below statement is printed by studio.

" java.lang.incompatibleclasschangeerror android.support.v4.content.contextcompat "


It means that android support library v4 is not incompatible with another class. 

I don't know how to solve it. so I just googling and find out it's solution.


configuration.all {

resolutionStrategy {

force 'com.android.support:support-v4:23.3.0

}

}


Why it so happen ?? Because android gradle plugin updated to new version 2.2.0 from 2.1.3. 

New android gradle plugin is not supported dynamic dependency in version name. Like '+' version name means that is only newer version.

If plugin detect '+' version name , it will modify version name to newer. and it effect all of module in the project.


If you are using dynamic dependency like version name '+' , so you will be show the error log about Google like SDK or GMS.

also other open-source libraries don't know about this issue and don't fix it. 

If you are using a lot of libraries in android, You will be check them all about using android support library v4 version.

[Reference]

https://developer.android.com/studio/releases/gradle-plugin.html

http://stackoverflow.com/questions/37312340/incompatibleclasschangeerror-after-updating-to-android-build-tools-25-1-6-gcm

http://stackoverflow.com/questions/37337393/android-google-cloud-messaging-gcm-token-generation-crash-after-firebase-relat


저작자표시 비영리 변경금지 (새창열림)

'Android Development' 카테고리의 다른 글

How can I success to share Google Photos from my app  (0) 2017.01.03
모바일 UI 디자인 가이드 라인 모음  (0) 2016.10.28
Color Palette  (0) 2014.10.23
Activity 방향 고정하기  (0) 2014.10.01
SQLiteOpenHelper Singleton instance creating.  (0) 2013.07.04
'Android Development' 카테고리의 다른 글
  • How can I success to share Google Photos from my app
  • 모바일 UI 디자인 가이드 라인 모음
  • Color Palette
  • Activity 방향 고정하기
fogthegreat
fogthegreat
아주 오랫동안 이것 저것 개발하면서 배우고 찾아 본 것들을 적거나 모았습니다. 불편한 점이 있다면 알려주세요. (과거에 불펌한 글들을 모두 제거하고 있는 중이에요. 🙏)
  • fogthegreat
    꿈소년의 개발 이야기
    fogthegreat
  • 전체
    오늘
    어제
    • 전체보기 (242)
      • Software Engineering (56)
      • Android Development (78)
      • 일상다반사 (63)
      • 책에 대한 거의 모든 것 (11)
      • 영어공부 (1)
      • ETC (0)
      • 챌린지 (1)
      • Do it 스터디! (32)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

    • 향로
    • 청하가 제안하는 소프트웨어 엔지니어로써 재미있게 사는 …
    • WhoRU? Story...♡
    • Snapshot
    • 두잇! - 이지스퍼블리싱
    • 제이펍의 참 똑똑한 2비트 책 이야기
    • Inpa Dev
  • 공지사항

  • 인기 글

  • 태그

    OOM
    JavaScript
    Eclipse
    C++
    탐지기법
    gradle
    보안
    ActiveX
    git
    html
    리눅스
    Android 4.1
    js
    안드로이드 개발
    Android
    코틀린
    구글
    노개북
    hcj
    안드로이드
    java
    안철수
    linux
    개발
    build.gradle
    css
    google
    kotlin
    하버드
    자바
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.6
fogthegreat
java.lang.incompatibleclasschangeerror android.support.v4.content.contextcompat
상단으로

티스토리툴바