problems with 'com.android.support:appcompat-v7.27.1.1' in the gradle file

前端 未结 4 651
隐瞒了意图╮
隐瞒了意图╮ 2020-12-20 13:26

This is my dependencies file and there is an underlined red colored text on the compile \'com.android.support:appcompat-v7.27.1.1\'

apply plugin: \'com.andr         


        
4条回答
  •  一生所求
    2020-12-20 13:58

    In Android Studio 3.0 ,the compile configuration is now deprecated and should be replaced by implementation or api.

    Just replace:

    implementation 'com.android.support:appcompat-v7.27.1.1'

    • compile with implementation
    • testCompile with testImplementation.
    • debugCompile with debugImplementation.
    • androidTestCompile with androidTestImplementation.
    • compileOnly is still valid. It was added in 3.0 to replace provided and not compile.

    for more information read this gradel doc

提交回复
热议问题