2017-12-01 3 views
0

android studio에서 SDK 버전을 업데이트하고 싶습니다. 현재 최대 버전은 25이고 최대 지원 버전은 26입니다.지원 라이브러리가 호환되지 않습니다.

compile 'com.android.support:appcompat-v7:25.3.1' 
compile 'com.android.support.constraint:constraint-layout:1.0.2' 
testCompile 'junit:junit:4.12' 
compile 'com.android.support:design:26.0.0-alpha1' 
compile 'com.android.support:recyclerview-v7:26.0.0-alpha1' 

이 줄에는 오류가 발생합니다. 이 문제를 해결하는 방법을 알려주세요. 라이브러리 버전이 26 인 경우

+0

현재 최대는 API 27, 적절한 버전을 얻을 지원 lib 디렉토리에 문서로 이동하십시오. https://developer.android.com/topic/libraries/support-library/revisions.html –

+0

buildToolsVersion '27 .0.1 '지원의 경우 빌드 도구가 동일한 레벨이어야합니다. lib 버전은 27+가되어야합니다. 예 : "com.android.support:appcompat-v7:27.0.2" –

+0

이 문제가 발생한 것 같습니다. https://stackoverflow.com/questions/46047943/how-do-i-use-the-latest-support-library-getting -failed-to-resolve-error-with-su? rq = 1 –

답변

0

,이 시도 :

implementation('com.android.support:appcompat-v7:26.1.0') { 
     exclude group: 'com.android.support', module: 'animated-vector-drawable' 
     exclude group: 'com.android.support', module: 'design' 
     exclude group: 'com.android.support', module: 'recyclerview-v7' 
    } 
    implementation 'com.android.support.constraint:constraint-layout:1.0.2' 
    implementation('com.android.support:design:26.1.0') { 
     exclude group: 'com.android.support', module: 'animated-vector-drawable' 
     exclude group: 'com.android.support', module: 'design' 
     exclude group: 'com.android.support', module: 'recyclerview-v7' 
    } 
    testCompile 'junit:junit:4.12' 
관련 문제