не может быть виден местозаполнитель - PullRequest
0 голосов
/ 21 января 2019

У меня была проблема в моем уровне с ответом Не удалось разрешить зависимость для ': app @ debug / compileClasspath': Не удалось разрешить com.mindorks: placeholderview: 0.7.1.

я стараюсь как

а. Настройки> Развертывание исключения сборки> Gradle> Снимите флажок автономной работы, это не удалось б. очистить и убрать это не удалось с. сделать недействительным и перезапустить не удалось

   apply plugin: 'com.android.application'

   android {
compileSdkVersion 27
buildToolsVersion '26.0.2'
useLibrary 'org.apache.http.legacy'
defaultConfig {
    applicationId "sid.len.mobile"
    minSdkVersion 21
    targetSdkVersion 27
    versionCode 1
    versionName "1.0"
    multiDexEnabled true
}
packagingOptions {
    pickFirst 'META-INF/LICENSE.txt' // picks the JavaMail license file
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
    }
    }

 repositories {
jcenter()
maven {
    url "https://maven.java.net/content/groups/public/"
      }
      }

      dependencies {

implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
})

implementation 'com.android.support:appcompat-v7:27.0.0'
implementation 'com.android.support:gridlayout-v7:27.0.0'
compile 'com.android.support:support-annotations:27.0.0'
implementation 'com.android.support:recyclerview-v7:27.0.0'

compile 'com.android.support:design:27.0.0'

implementation 'com.android.support.constraint:constraint-layout:1.1.3'
compile 'com.android.support:multidex:1.0.3'

implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'

compile 'com.google.code.gson:gson:2.6.2'

compile 'com.google.android.gms:play-services-location:11.0.1'
compile 'com.google.android.gms:play-services-maps:11.0.1'
compile 'com.google.android.gms:play-services-safetynet:11.0.1'
compile 'com.google.android.gms:play-services-base:11.0.1'
compile 'com.google.android.gms:play-services-basement:11.0.1'
compile 'com.google.android.gms:play-services-tasks:11.0.1'

compile 'net.zetetic:android-database-sqlcipher:3.4.0@aar'

compile 'com.squareup.okhttp3:logging-interceptor:3.4.0'
compile 'com.squareup.retrofit2:retrofit:2.1.0'
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
compile 'com.squareup:otto:1.3.8'

//noinspection OutdatedLibrary
compile 'com.android.volley:volley:1.1.0'

compile files('libs/jtds-1.3.1.jar')
testCompile 'junit:junit:4.12'

compile 'com.mindorks:placeholderview:0.7.1'

}

1 Ответ

0 голосов
/ 21 января 2019

вам нужно добавить этот репозиторий:

allprojects {
    repositories {
        maven { url 'https://jitpack.io' }
    }
}

в то время как у этого build.gradle, кажется, есть более одной проблемы, включая дублированные ссылки *.jar и несколько устаревших библиотек (на случай, если вы удивитесь, почему он все еще не будет собран).

хотя бы используйте buildToolsVersion "27.0.3".

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