본문 바로가기
2019 - 깡샘의 안드로이드 프로그래밍 - 루비페이퍼

android 10(API Level 29) 에서 21장 Lab 4 Matisse라이브러리 에러

by 들풀민들레 2020. 4. 7.

android 10 에 맞추어 matisse 라이브러리도 업데이트 되어 발생하는 에러입니다.

물론 targetSDK 를 28 로 작성한다면 책에 있는 버전을 그대로 사용해도 되지만 29로 작성한다면 matisse 라이브러리도 버전 업을 해주어야 합니다.

 

29에서 테스트 한 것입니다. 

 

build.gradle

 

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'com.github.bumptech.glide:glide:4.11.0'
implementation 'com.zhihu.android:matisse:0.5.3-beta3'
}