什麼是 gradle-wrapper.properties
為記錄目前 gradle 版本資訊
什麼是 build.gradle(project)
的 classpath
classpath在 build.gradle(project)
的 dependencies裡,
表示此專案用的gradle plugin 版本
Q. Error : Could not resolve all artifacts for configuration ‘:classpath’.
A. 在 build.gradle(project)
的 dependencies > repositories,找不到 classpath,所以要新增 repository maven
1 | buildscript { |
Unknown host ‘jcenter.bintray.com’
dependencies > repositories,新增 repository maven{ url 'https://maven.aliyun.com/repository/jcenter' }
default activity not found
File > Invalidate Caches / Restart
Q. Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.google.gms:google-services:4.3.3.
在 build.gradle(Project:xxx)的 repositories 裡的 google()
一定要排第一個,否則會找不到