Я пытаюсь запустить flutter build apk, но получаю следующую ошибку. iOS работает отлично. Я не уверен, что здесь происходит. Любая помощь будет принята с благодарностью.
Вот мой pubspec.yaml
intl: ^0.15.6
cupertino_icons: ^0.1.2
firebase_auth: 0.8.1+4
google_sign_in:
cloud_firestore: 0.9.0+1
shared_preferences: ^0.4.3
firebase_messaging: 3.0.1
image_picker:
firebase_storage:
cached_network_image:
firebase_core:
image:
photo_view:
flutter_auth_buttons:
splashscreen:
geolocator: 3.0.0
color: any
folding_cell: "^0.1.0"
google_maps_flutter: 0.3.0
stream_transform: ^0.0.14+1
chewie:
rxdart:
flutter_sms:
flutter_html: ^0.9.4
Это часть ошибки в терминале. Есть еще немного, но я думаю, что это ключевой момент.
Initializing gradle... 3.1s
Resolving dependencies... 6.8s
Gradle task 'assembleRelease'...
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
*********************************************************
WARNING: This version of cloud_firestore will break your Android build if it or its dependencies aren't compatible with AndroidX.
See "link" for more information on the problem and how to fix it.
This warning prints for all Android build failures. The real root cause of the error may be unrelated.
*********************************************************
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':google_api_availability:verifyReleaseResources'.
> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
Output: /Users/remobajwa/Desktop/tu_chat/build/google_api_availability/intermediates/res/merged/release/values/values.xml:197: error: resource android:attr/fontVariationSettings not found.