не удалось разрешить gradle build szagurskii - PullRequest
0 голосов
/ 23 мая 2018

Я пытался добавить оценку сборки на зависимости в andriod studio.его говорит не удалось решить.мне нужна помощь ...

не удалось разрешить com.szagurskii: patternedtextwatcher: 0.5.0

реализация 'com.squareup.retrofit2: convert-gson: 2.3.0'

Вот мой gradle build

   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'
     }

Ответы [ 2 ]

0 голосов
/ 23 мая 2018

patternedtextwatcher распространяется через jCenter, а не через Maven

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

Убедитесь, что у вас есть jcenter на уровне вашего проекта build.gradle, что-то вроде этого;

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()
    }
}
0 голосов
/ 23 мая 2018

не удалось разрешить com.szagurskii: patternedtextwatcher: 0.5.0

Вы должны добавить ниже в вашем УРОВЕНЬ ПРОЕКТА build.gradleраздел.

Вы можете использовать SNAPSHOT

implementation 'com.szagurskii:patternedtextwatcher:0.6.0-SNAPSHOT'

Затем

allprojects {
    repositories {
    google()
    jcenter()
      maven {
        url "https://oss.sonatype.org/content/repositories/snapshots"
      }
    }
}

Затем Clean-Rebuild-Run (With Internet).

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...