Я не могу запустить проект на 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'
Clean Project
иRebuild Project
? - person Sneh Pandya   schedule 20.07.2017classpath
и gradle до версии 3.4.1? - person Sneh Pandya   schedule 20.07.2017google()
в раздел репозиториев. Также попробуйте собрать его сalpha-5
вместоalpha-7
, чтобы увидеть, работает ли он. - person Sneh Pandya   schedule 20.07.2017