I'm trying to set up firebase for both android and ios. I've tried using different versions in pubspec.yaml, but i'm still getting errors like this. Thanks for the help in advance.
FAILURE: Build failed with an exception.
*What went wrong: Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
C:\Users\13363\.gradle\caches\transforms-2\files-2.1\354fc33358371181aa1b0a8e262a9145\jetified-play-services-auth-16.0.1\res\drawable-watch-v20\common_google_signin_btn_text_dark_normal.xml:9: AAPT: error: resource drawable/googleg_standard_color_18 (aka com.example.catbox:drawable/googleg_standard_color_18) not found.
C:\Users\13363\.gradle\caches\transforms-2\files-2.1\354fc33358371181aa1b0a8e262a9145\jetified-play-services-auth-16.0.1\res\drawable-watch-v20\common_google_signin_btn_text_disabled.xml:16: AAPT: error: resource drawable/googleg_disabled_color_18 (aka com.example.catbox:drawable/googleg_disabled_color_18) not found.
C:\Users\13363\.gradle\caches\transforms-2\files-2.1\354fc33358371181aa1b0a8e262a9145\jetified-play-services-auth-16.0.1\res\drawable-watch-v20\common_google_signin_btn_text_light_normal.xml:9: AAPT: error: resource drawable/googleg_standard_color_18 (aka com.example.catbox:drawable/googleg_standard_color_18) not found.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 21s
The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.
Building plugin cloud_firestore...
Running Gradle task 'assembleAarRelease'...
Finished with error: The plugin cloud_firestore could not be built due to the issue above.
Related
Flutter app running in debug mode fine. Errors on releasing the app.
Running Gradle task 'assembleRelease'... 1434.8s (!)
The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.
Building plugin android_intent...
Running Gradle task 'assembleAarRelease'... 93.5s
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android_intent'.
What I have tried:
Removed 'android_intent' plugin. After removing, still having the same issue with cloud_firestore.
* What went wrong:
Execution failed for task ':flutter_appavailability:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
/home/mkmalik/.gradle/caches/transforms-2/files-2.1/fa16a5b23fa3b0f70fd87fe1ad317210/core-1.1.0/res/values/values.xml:142:5-173:25: AAPT: error: resource android:attr/fontVariationSettings not found.
/home/mkmalik/.gradle/caches/transforms-2/files-2.1/fa16a5b23fa3b0f70fd87fe1ad317210/core-1.1.0/res/values/values.xml:142:5-173:25: AAPT: error: resource android:attr/ttcIndex not found.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 6m 38s
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done 407.1s (!)
The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the
incompatibility.
Building plugin cloud_firestore...
The plugin cloud_firestore could not be built due to the issue above.
Updated Gradle to 4.0.1 and compileSdkVersion to 30. And managed to release the app (with 7 warnings from native code). But on the device, it immediately stops (only white screen) after a sec.
Flutter 1.22.5
Problem were with flutter_appavailability.
Just removed and problem solved.
Opened a project after 2 months, got null-safety error changed some plugins, and upgraded others, one thing led to another and now I am stuck at this error!
Tried Flutter clean and deleting the build and .gradle folder but nothing worked.
Launching lib\main.dart on RMX1801 in debug mode...
lib\main.dart:1
3
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
C:\Users\Dell\.gradle\caches\transforms-2\files-2.1\b94a6b46912fba96397655c3d1ce5de0\play-services-ads-lite-19.6.0\AndroidManifest.xml:27:5-38:15: AAPT: error: unexpected element <queries> found in <manifest>.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 8m 59s
The build failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetifier to solve the incompatibility.
Building plugin audioplayers...
Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\Dell\flutter\.pub-cache\hosted\pub.dartlang.org\audioplayers-0.18.2\android\build.gradle' line: 25
* What went wrong:
A problem occurred evaluating root project 'audioplayers'.
> Failed to apply plugin [id 'kotlin-android']
> The current Gradle version 4.10.2 is not compatible with the Kotlin Gradle plugin. Please use Gradle 5.3 or newer, or the previous version of the Kotlin plugin.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 54s
2
Exception: The plugin audioplayers could not be built due to the issue above.
Exited (sigterm)
You're getting a AAPT: error: unexpected element <queries> found in <manifest>. it looks like you have to update your gradle version to one of the ones listed here
https://github.com/miguelpruivo/flutter_file_picker/wiki/Troubleshooting
3.3.3
3.4.3
3.5.4
3.6.4
4.0.1
it looks like you need to downgrade your gradle version since you're using 4.10.2
I'm using Torch plugin with Camera plugin for back flash. It works fine with iOS, but not with Android. When I tried to Create release build for Android it gives me errors.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':torch:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
/Users/apple/.gradle/caches/transforms-2/files-2.1/790c8a51d6267afe36c98b9a0bc454cb/core-1.0.0/res/values/values.xml:57:5-88:25: AAPT: error: resource android:attr/fontVariationSettings not found.
/Users/apple/.gradle/caches/transforms-2/files-2.1/790c8a51d6267afe36c98b9a0bc454cb/core-1.0.0/res/values/values.xml:57:5-88:25: AAPT: error: resource android:attr/ttcIndex not found.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2m 13s
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done 134.5s (!)
The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.
Building plugin app_review...
Running Gradle task 'assembleAarRelease'...
Running Gradle task 'assembleAarRelease'... Done 0.0s
Sending crash report to Google.
Crash report sent (report ID: 97f69452e4767517)
Oops; flutter has exited unexpectedly.
everybody.
I have some issues with build apk as release method in flutter.
I don't really know why this has error.
This refers https://github.com/rxlabz/speech_recognition/tree/master/example
During building as release method, issues are following.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':speech_recognition:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
/Users/kk/.gradle/caches/transforms-2/files-2.1/0a271e99b6771ad4a84318244d532fb7/core-1.0.0/res/values/values.xml:57:5-88:25: AAPT: error: resource android:attr/fontStyle not found.
/Users/kk/.gradle/caches/transforms-2/files-2.1/0a271e99b6771ad4a84318244d532fb7/core-1.0.0/res/values/values.xml:57:5-88:25: AAPT: error: resource android:attr/font not found.
/Users/kk/.gradle/caches/transforms-2/files-2.1/0a271e99b6771ad4a84318244d532fb7/core-1.0.0/res/values/values.xml:57:5-88:25: AAPT: error: resource android:attr/fontWeight not found.
/Users/kk/.gradle/caches/transforms-2/files-2.1/0a271e99b6771ad4a84318244d532fb7/core-1.0.0/res/values/values.xml:57:5-88:25: AAPT: error: resource android:attr/fontVariationSettings not found.
/Users/kk/.gradle/caches/transforms-2/files-2.1/0a271e99b6771ad4a84318244d532fb7/core-1.0.0/res/values/values.xml:57:5-88:25: AAPT: error: resource android:attr/ttcIndex not found.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 3m 45s
I know, the answer might be too late, but anyway, this is annoying issue - I've got the same problem now and spent couple of hours fighting it.
Finally the workaround was to manually change in the build.gradle in the Android folder of the lib the "compileSdkVersion" property from 25 to 28, after that I managed to compile the project.
Migrating to AndroidX includes new attributes fontVariationSettings and ttcIndex. I've tried migrating a project (a Flutter plugin), but get the error below when doing the gradle build. Many users have had the same gradle error as me, but unlike them, I've already
upgraded my compileSdkVersion to 28 in my build.gradle
added android.useAndroidX=true and android.enableJetifier=true in gradle.properties
reset the gradle cache through Android Studio (Invalidate Caches/Restart)
My console output:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Android resource linking failed
/Users/davidmccoy/.gradle/caches/transforms-1/files-1.1/core-1.0.0-beta01.aar/f004b9e22a129b2d333d02089203fb0d/res/values/values.xml:89:5-125:25: AAPT: error: resource android:attr/fontVariationSettings not found.
/Users/davidmccoy/.gradle/caches/transforms-1/files-1.1/core-1.0.0-beta01.aar/f004b9e22a129b2d333d02089203fb0d/res/values/values.xml:89:5-125:25: AAPT: error: resource android:attr/ttcIndex not found.
error: failed linking references.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
*******************************************************************************************
The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app.
See https://flutter.dev/docs/development/packages-and-plugins/androidx-compatibility for more information on the problem and how to fix it.
*******************************************************************************************
Gradle task assembleDebug failed with exit code 1
Turns out I had another Android project that I had included in my Flutter application that had not yet been upgraded to AndroidX. So I upgraded that project, and the problem was solved.