build.gradle dependencies auto updates itself

前端 未结 3 1594
后悔当初
后悔当初 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 04:47

    I just ran into this with another developer who had checked out my project, and then started getting build errors shortly thereafter. When I looked, my support library versions had appeared to have been updated as well.

    Turns out this was happening after they had added a new Activity via the Android Studio add an activity wizard. This was automatically updating the build.gradle file to use the latest support library versions, and also adding the 'com.android.support:design:23.2.0' library as well which I wasn't even using.

    I'm wondering if something similar is happening to you, as you are indicating it seems to be periodically happening.

提交回复
热议问题