Ошибки выполнения с пакетом библиотеки - Android Studio Canary 6 и Canary 7

Я не могу запустить проект на Canary 6 и Canary 7.

Сборка Gradle прошла успешно.

Во время компиляции он не показал никаких ошибок.

Во время выполнения он показывает ошибки со всеми классами библиотеки (зависимость gradle, зависимость jar).

Некоторые из них,

  • ошибка: пакет retrofit2 не существует
  • ошибка: пакет android.support.v7.app не существует
  • ошибка: пакет com.google.gson не существует.
  • #P6# <блочная цитата> #P7#

верхний build.gradle:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {

repositories {
    google()
    jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:3.0.0-alpha7'
    classpath 'com.google.gms:google-services:3.0.0'


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

allprojects {
repositories {
    google()
    jcenter()
    mavenCentral()

    maven { url "https://jitpack.io" }
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}

ядро build.gradle:

apply plugin: 'com.android.library'

android {
compileSdkVersion 26
buildToolsVersion "26.0.0"


defaultConfig {
    minSdkVersion 15
    targetSdkVersion 26
    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'])
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
})

testImplementation 'junit:junit:4.12'
implementation 'com.android.support:appcompat-v7:26.0.0-beta2'

implementation 'com.android.support:percent:26.0.0-beta2'
implementation "com.android.support:support-core-utils:26.0.0-beta2"
implementation 'com.squareup.retrofit2:retrofit:2.0.2'
implementation 'com.squareup.picasso:picasso:2.4.0'
implementation 'com.squareup.retrofit2:converter-gson:2.0.2'
implementation 'com.squareup.okhttp3:logging-interceptor:3.2.0'
implementation 'com.intuit.sdp:sdp-android:1.0.3'
implementation 'uk.co.chrisjenx:calligraphy:2.2.0'
implementation 'com.google.code.gson:gson:2.2.4'
implementation 'com.android.support:design:26.0.0-beta2'
implementation 'com.github.PhilJay:MPAndroidChart:v3.0.1'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'

}

app build.gradle:

 buildscript {
repositories {
    maven { url 'https://maven.fabric.io/public' }
}

dependencies {
    classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'

repositories {
maven { url 'https://maven.fabric.io/public' }
}


android {
compileSdkVersion 26
buildToolsVersion "26.0.0"
defaultConfig {
    applicationId "com.msf.phillip"
    minSdkVersion 15
    targetSdkVersion 26
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
    flavorDimensions "uat"

productFlavors {
    fullUAT {
        dimension "uat"
        versionName "1.37.2.0"
        resValue 'string', 'APP_NAME', '"Poems SG 2.0"'
        buildConfigField "String", "VERSION", "\"1.2.2.0\""
        buildConfigField  "String", "connection_env", "\"uat\""
        buildConfigField  "String", "connection_url", "*******"
        buildConfigField "String", "API_KEY", "************"
        buildConfigField "boolean", "mandatoryUpdate", "false"
        buildConfigField "String", "FLURRY_API_KEY", "*************"

    }

    fullRelease {
        dimension "uat"
        versionName "1.0.4.0"
        resValue 'string', 'APP_NAME', '"Poems"'
        buildConfigField "boolean", "isUAT", "false"
        buildConfigField "boolean", "isInternal", "false"
        buildConfigField "String", "VERSION",  "\"1.0.0\""
        buildConfigField  "String", "connection_env", "\"prod\""
        buildConfigField  "String", "connection_url", "*************"
        buildConfigField "String", "API_KEY", "**************"
        buildConfigField "boolean", "mandatoryUpdate", "false"
        buildConfigField "String", "FLURRY_API_KEY", "************"

    }
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
})
implementation project(path: ':core')
implementation 'com.android.support:appcompat-v7:26.0.0-beta2'
implementation 'com.google.android.gms:play-services-gcm:11.0.2'
implementation 'com.android.support:multidex:1.0.1'
implementation 'com.flurry.android:analytics:7.0.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.6.0'
implementation 'com.jakewharton:butterknife:8.6.0'
compile('com.crashlytics.sdk.android:crashlytics:2.6.8@aar') {
    transitive = true;
}
}
apply plugin: 'com.google.gms.google-services'

person DroidLearner    schedule 20.07.2017    source источник
comment
Вы пробовали Clean Project и Rebuild Project ?   -  person Sneh Pandya    schedule 20.07.2017
comment
Если очистка и перестроение не помогут, опубликуйте свой build.gradle.   -  person dniHze    schedule 20.07.2017
comment
Он выдает ту же ошибку при «Перестройке» проекта. @SnehPandya   -  person DroidLearner    schedule 20.07.2017
comment
@ArtyomDorosh отредактировал вопрос с помощью build.gradle   -  person DroidLearner    schedule 20.07.2017
comment
Правильно ли вы обновили свою версию classpath и gradle до версии 3.4.1?   -  person Sneh Pandya    schedule 20.07.2017
comment
Это мой «путь к классам» и «версия gradle» «путь к классам» com.android.tools.build: gradle: 3.0.0-alpha7 « » и DistributionUrl = https \: //services.gradle.org/distributions/gradle-4.1 -milestone-1-all.zip   -  person DroidLearner    schedule 20.07.2017
comment
Прочитайте это: developer.android.com /studio/build/ В нем говорится, что вам также необходимо включить google() в раздел репозиториев. Также попробуйте собрать его с alpha-5 вместо alpha-7, чтобы увидеть, работает ли он.   -  person Sneh Pandya    schedule 20.07.2017
comment
заменил URL-адрес maven google на google() и принудительно предложил обновить его до alpha-7. @SnehPandya   -  person DroidLearner    schedule 20.07.2017
comment
Обновления все еще находятся в альфа-версии, а это означает, что они будут работать нестабильно в определенных точках. Вам нужно пробовать и ошибаться, чтобы все заработало.   -  person Sneh Pandya    schedule 20.07.2017
comment
Спасибо за ваше время. Постараюсь решить.   -  person DroidLearner    schedule 20.07.2017