반응형
PROBLEM
-오류를 보아 2018년부터 'compile'라는 단어 대신에 'implementation'를 쓰는 듯해 compile을 implementation으로 바꿔주면 해결된다.
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
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 '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
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
-오류 build.gradle (Module: 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'
})
compile 'com.android.support:appcompat-v7:26.+'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
}
HOW TO SOLVE
-해결 build.gradle (Module: app) 설정파일
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.android.support:appcompat-v7:26.+'
implementation'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
}
- 파일을 수정한 후에 Build > Clean Project를 하고, 메뉴 바에 Sync Project를 클릭해 변경된 설정파일을 프로젝트에 동기화 시켜준다.
반응형
'Programming > Android' 카테고리의 다른 글
Android/Tool/Frida 사용법 (0) | 2018.06.07 |
---|---|
Android/ADB SHELL INPUT (0) | 2018.05.23 |
Android/apktool/brut.androlib.AndrolibException: brut.common.BrutException (0) | 2018.05.16 |
Programming/Android/Custom Binary(recovery) Blocked by frp lock 해결 (0) | 2018.04.25 |
Android/InsecureBankv2 환경 구축(Windows) (0) | 2018.03.29 |