在引入AndResGuard时,
classpath 'com.tencent.mm:AndResGuard-gradle-plugin:1.2.0'
提示
Error:Could not find com.tencent.mm:AndResGuard-gradle-plugin:1.2.0.
Searched in the following locations:
file:/Applications/Android Studio.app/Contents/gradle/m2repository/com/tencent/mm/AndResGuard-gradle-plugin/1.2.0/AndResGuard-gradle-plugin-1.2.0.pom
file:/Applications/Android Studio.app/Contents/gradle/m2repository/com/tencent/mm/AndResGuard-gradle-plugin/1.2.0/AndResGuard-gradle-plugin-1.2.0.jar
https://jcenter.bintray.com/com/tencent/mm/AndResGuard-gradle-plugin/1.2.0/AndResGuard-gradle-plugin-1.2.0.pom
https://jcenter.bintray.com/com/tencent/mm/AndResGuard-gradle-plugin/1.2.0/AndResGuard-gradle-plugin-1.2.0.jar
Required by:
:ListenerMusicPlayer-master:unspecified
原因可能是某个版本已不在维护,改一下最新的版本号就OK了~
如把 1.2.0 改成 1.2.3 就可行!版本号多试几遍