实际上,我正在研究build.gradle档案.在某些情况下,我有时会使用它mavenCentral(),jCenter()并mavenLocal()在存储库部分.有时他们也使用URL.所以在我脑海里出现了一些问题?
i)mavenCentral(),jCenter()和mavenLocal()之间的区别?
ii)我应该使用哪一个?
iii)是否存在与性能相关的问题?
我收到如下所示的错误。
无法获取“https://dl.bintray.com/lukaville/maven/com/nbsp/library/1.09/library-1.09.pom”。从服务器收到状态代码 403:禁止
Gradle 配置如下所示。任何帮助表示赞赏。
我尝试同步项目、使缓存无效并重新启动,但没有任何效果。
构建.gradle(:应用程序)
apply plugin: 'com.android.application'
android {
compileSdkVersion 29
defaultConfig {
applicationId "com.qdocs.smartschool"
minSdkVersion 17
targetSdkVersion 29
versionCode 1
versionName "3.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
disable 'RestrictedApi'
checkReleaseBuilds false
abortOnError false
}
}
repositories {
maven {
url "http://d1.bintray.com/lukaville/maven"
}
jcenter() } dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
testImplementation 'junit:junit:4.12'
implementation 'com.jakewharton.threetenabp:threetenabp:1.2.1' …Run Code Online (Sandbox Code Playgroud)