[안드로이드] 안드로이드 스튜디오 3.1 Configuration~ 경고 제거법

2019. 5. 23. 22:47·IT기술 관련/모바일
반응형

출처:https://citynetc.tistory.com/221


안드로이드 스튜디오 업데이트 후 못보던 경고 메시지가 떴습니다.






Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.

It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html


Configuration 'androidTestApi' is obsolete and has been replaced with 'androidTestImplementation'.

It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html


Configuration 'testApi' is obsolete and has been replaced with 'testImplementation'.

It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html


Configuration 'testCompile' is obsolete and has been replaced with 'testImplementation' and 'testApi'.

It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html



에러를 해석해보면 대부분 "더 이상 A는 구현되지 않으니 B를 사용해라"는 뜻입니다.


build.gradle(app)에서 그대로 해주면 됩니다.


저는 아래처럼 되어있네요.


dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})

//andorid
compile 'com.android.support:support-v4:24.2.0'
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:design:24.2.0'
testCompile 'junit:junit:4.12'
}



Configuration 'androidTestCompile' is obsolete and has been replaced with 'androidTestImplementation' and 'androidTestApi'.

It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html

=> androidTestCompile 를 androidTestImplementation로 바꾸어 줍니다.


Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.

It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html

=> compile을 implementation로 바꾸어 줍니다.


Configuration 'androidTestApi' is obsolete and has been replaced with 'androidTestImplementation'.

It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html

=> 두번째 에러를 해결하면 자연스럽게 해결되더군요..


Configuration 'testApi' is obsolete and has been replaced with 'testImplementation'.

It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html

=> 이것도 두번째 에러를 해결하면 자연스럽게 해결되더군요..


Configuration 'testCompile' is obsolete and has been replaced with 'testImplementation' and 'testApi'.

It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html

=> testCompile를 testImplementation로 바꾸어 줍니다.



dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})

//andorid
implementation 'com.android.support:support-v4:24.2.0'
implementation 'com.android.support:appcompat-v7:25.3.1'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.android.support:design:24.2.0'
testImplementation 'junit:junit:4.12'
}
짠~ 이렇게 설정후 Sync를 누르니 모든 에러가 없어졌습니다.

끝!



출처: https://citynetc.tistory.com/221 [cITy & ETC]

반응형

'IT기술 관련 > 모바일' 카테고리의 다른 글

[안드로이드 스튜디오] Plugin with id 'com.android.application' not found  (0) 2019.05.25
[Android] 안드로이드 오픈소스 사이트 총정리  (0) 2019.05.23
플러터를 빠르게 배우기 좋은 4개의 사이트  (0) 2019.05.21
flutter run 에러 - Error: No pubspec.yaml file found.This command should be run from the root of your Flutter project.Do not run this command from the root of your git clone of Flutter.  (0) 2019.05.20
[안드로이드] 리스트 뷰(ListView) 4. 컨텍스트 메뉴 달기(Context Menu)  (0) 2017.10.07
'IT기술 관련/모바일' 카테고리의 다른 글
  • [안드로이드 스튜디오] Plugin with id 'com.android.application' not found
  • [Android] 안드로이드 오픈소스 사이트 총정리
  • 플러터를 빠르게 배우기 좋은 4개의 사이트
  • flutter run 에러 - Error: No pubspec.yaml file found.This command should be run from the root of your Flutter project.Do not run this command from the root of your git clone of Flutter.
호레
호레
창업 / IT / 육아 / 일상 / 여행
    반응형
  • 호레
    Unique Life
    호레
  • 전체
    오늘
    어제
    • 분류 전체보기
      • 법률
        • 기본
        • 개인정보보호법
        • 정보통신망법
        • 전자금융거래법
        • 전자금융감독규정
        • 신용정보법
        • 온라인투자연계금융업법
      • 창업
        • 외식업 관련
        • 임대업 관련
        • 유통업 관련
        • 세무 관련
        • 마케팅 관련
        • 기타 지식
        • 트렌드
        • Youtube
      • IT기술 관련
        • 모바일
        • 윈도우
        • 리눅스
        • MAC OS
        • 네트워크
        • 빅데이터 관련
        • A.I 인공지능
        • 파이썬_루비 등 언어
        • 쿠버네티스
        • 기타 기술
      • 퍼블릭 클라우드 관련
        • Azure
        • GCP
        • AWS
      • 정보보안 관련
        • QRadar
        • Splunk
        • System
        • Web
      • 기타
        • 세상 모든 정보
        • 서적
      • 게임 관련
        • 유니티
      • 부동산
      • 맛집 찾기
        • 강남역
        • 양재역
        • 판교역
        • ★★★★★
        • ★★★★
        • ★★★
        • ★★
        • ★
      • 결혼_육아 생활
        • 리얼후기
        • 일상
        • 육아
        • 사랑
        • Food
      • 영어
        • 스피킹
        • 문법
        • 팝송
        • 영화
      • K-컨텐츠
        • 드라마
        • 영화
        • 예능
      • 독서
      • 프로젝트 관련 조사
        • 시스템 구축
        • 로그 관련
        • 웹
        • APT
        • 모의 해킹
        • DB
        • 허니팟
        • 수리카타
        • 알고리즘
        • FDS
      • 기업별 구내 식당 평가
        • 한국관광공사
        • KT telecop
        • KT M&S
        • KT powertel
        • KT cs 연수원
        • 진에어
      • 대학 생활
        • 위드윈연구소
        • 진로 고민
        • 채용정보
        • 자동차
        • 주식
        • 악성코드
        • 게임 보안
      • 쉐어하우스
  • 블로그 메뉴

    • 홈
    • 게임 관련
    • IT 기술 관련
    • 태그
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    상호관세
    수제버거존맛
    수제버거
    판교맛집
    이재곧죽습니다
    무역전쟁
    돈까스
    대통령
    마케팅
    판교
    AWS
    런치
    유니티
    복리후생
    수제버거맛집
    점심
    쥬쥬랜드
    맛집
    보안가이드
    판교역
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.0
호레
[안드로이드] 안드로이드 스튜디오 3.1 Configuration~ 경고 제거법
상단으로

티스토리툴바