gpt4 book ai didi

android - 无法解决gradle构建szagurskii

转载 作者:行者123 更新时间:2023-12-03 05:45:15 26 4
gpt4 key购买 nike

我一直试图在Andriod Studio中添加依赖项的等级构建。它说无法解决。我需要帮助...

failed to resolve com.szagurskii:patternedtextwatcher:0.5.0

implementation 'com.squareup.retrofit2:converted-gson:2.3.0'



这是我的gradle构建
   apply plugin: 'com.android.application'

android {
compileSdkVersion 27
defaultConfig {
applicationId "my.wedee.com.wedeeapplication"
minSdkVersion 14
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso- core:3.0.2'

implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.rengwuxian.materialedittext:library:2.1.4'
implementation 'com.szagurskii:patternedtextwatcher:0.5.0'
implementation 'com.github.d-max:spots-dialog:0.7@aar'
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.retrofit2:converted-gson:2.3.0'
}

最佳答案

patternedtextwatcher是通过jCenter而不是Maven分发的

https://bintray.com/zsavely/maven/patternedtextwatcher/0.5.0

确保在项目级别的build.gradle中有jcenter,类似这样;

buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
google()
jcenter()
}
}

关于android - 无法解决gradle构建szagurskii,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50487761/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com