Я новичок в Gradle, и я начинаю с моих первых шагов в Android.
До вчерашнего дня я был в состоянии скомпилировать и протестировать свое приложение для Android, когда внезапно прекратил компилировать с этой ошибкой, когда янажмите "Отладить" приложение "
Android resource linking failed
C:\Users\Nicolas\AndroidStudioProjects\ATMobile\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2508: error: resource android:attr/fontVariationSettings not found.
C:\Users\Nicolas\AndroidStudioProjects\ATMobile\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2509: error: resource android:attr/ttcIndex not found.
error: failed linking references.
Это мой grade.buil (app)
apply plugin: 'com.android.application'
android {
signingConfigs {
}
compileSdkVersion 26
// buildToolsVersion "26.0.2"
defaultConfig {
applicationId "ar.com.codigose.atmobile"
minSdkVersion 21
targetSdkVersion 26
versionCode 1
versionName "1.0 BETA"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
//buildToolsVersion '29.0.0 rc1'
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:design:26.1.0'
implementation 'com.android.support:support-v4:26.1.0'
implementation 'com.android.support:cardview-v7:26.1.0'
implementation 'com.android.support:recyclerview-v7:26.1'
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:multidex:1.0.3'
implementation 'com.nbsp:library:1.8'
implementation 'android.arch.navigation:navigation-fragment:1.0.0'
}
Я прокомментировал тег buildToolsVersion , потому что я видел вмой github оригинальный файл, и у него нет этой строки.
и этот grade.buil (Project)
// 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.3.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven {
url "http://dl.bintray.com/lukaville/maven"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Я хочу продолжить разработку в SDK 26, но не вижу, что не так.
Вide, строка: реализация 'com.android.support:appcompat-v7:26.1.0'
подчеркнута и говорит, что нашел что-то с версией 28.0.0, но у меня ничего нет с этой версией.
Что происходит ??С наилучшими пожеланиями