Я сталкиваюсь с этой проблемой при сборке apk. файл build.gradle имеет значение
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.XXXXX.XXXXX"
minSdkVersion 19
targetSdkVersion 28
versionCode 1
versionName "1.0"
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
multiDexEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
shrinkResources true
minifyEnabled true
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.release
}
}
}
flutter {
source '../..'
}
dependencies {
implementation fileTree(dir: 'libs', include: '*.jar')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.google.firebase:firebase-auth:19.2.0'
}
apply plugin: 'com.google.gms.google-services'
Не удалось выполнить задачу ': firebase_admob: verifyReleaseResources'.
java .util.concurrent.ExecutionException: com. android .builder.internal.aapt.v2.Aapt2Exception: Android Не удалось связать ресурс /home/sanwal/Documents/services/build/firebase_admob/intermediates/res/merged/release/values/values.xml:304: ошибка: ресурс android: attr / fontVariationSettings не найден. /home/sanwal/Documents/services/build/firebase_admob/intermediates/res/merged/release/values/values.xml:305: ошибка: ресурс android: attr / ttcIndex не найден. ошибка: не удалось связать ссылки.