build.gradle dependencies auto updates itself

前端 未结 3 1556
后悔当初
后悔当初 2021-01-19 04:42
compile \'com.google.android.gms:play-services:8.3.0\'
compile \'com.android.support:support-v4:22.2.1\'
compile \'com.android.support:design:22.2.1\'
3条回答
  •  攒了一身酷
    2021-01-19 05:09

    Instead of:

    compile 'com.google.android.gms:play-services:8.3.0'
    compile 'com.android.support:support-v4:22.2.1'
    compile 'com.android.support:design:22.2.1'
    

    try:

    playVersion = '8.3.0'
    supportVersion = 'support-v4:22.2.1'
    designVersion = '22.2.1'
    compile "com.google.android.gms:play-services:$playVersion"
    compile "com.android.support:$supportVersion"
    compile "com.android.support:design:$designVersion"
    

    Remember to replace the 's with "s.

提交回复
热议问题