Hello friends!
I am developing an App, when compiling everything is fine. but I have been curious to take the APK to the playStore but for this I execute the command flutter build apk --release everything is fine but in the end it gives me some warnings and an error.
[ +23 ms] The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve
The plugin cloud_firestore could not be built due to the issue above.
I have been investigating, solutions say about the builder version, Activate androidX, I have done everything, have the muslims versions of the plugins, etc.
I share part of the code:
pubspec.yaml (https://carbon.now.sh/U92LFqlIzeEeX9FK7A7w)
build.gradle/Android (https://carbon.now.sh/Qpy4ELgIP3OdYgJctxVM)
build.gradle /Android/app (https://carbon.now.sh/6ezjG4tUtpKLaQHs0gdu)
Terminal Testing:
exit the terminal : flutte run -v( ) I have these warnings but still compile.
[ +46 ms] Note:
E:\Flutter\.pub-cache\hosted\pub.dartlang.org\flutter_twitter_login-1.1.0\android\src\main\java\com\roughike\fluttertwitterlogin\fluttertwitterlogin\TwitterLoginPlugin.java uses or overrides a deprecated API.
[ +86 ms] Note: Recompile with -Xlint:deprecation for details.
----------------
[ +65 ms] Note:
E:\Flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.13.5\android\src\main\java\io\flutter\plugins\firebase\cloudfirestore\CloudFirestorePlugin.java uses unchecked or unsafe operations.
[ +79 ms] Note: Recompile with -Xlint:unchecked for details.
[ +574 ms] > Task :google_maps_flutter:compileDebugJavaWithJavac
[ +36 ms] > Task :google_sign_in:generateDebugBuildConfig
[ +134 ms] Note: Some input files use unchecked or unsafe operations.
[ +63 ms] Note: Recompile with -Xlint:unchecked for details.
exit the terminal when applying flu Flutter Build apk --release -v error:
```[ +116 ms] FAILURE: Build failed with an exception.
[ +15 ms] * What went wrong:
[ +3 ms] Execution failed for task ':flutter_twitter_login:verifyReleaseResources'.
[ +1 ms] > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
[ +3 ms] > 1 exception was raised by workers:
[ +2 ms] com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
[ +9 ms] C:\Users\Cristhian VeAl.gradle\caches\transforms-2\files-2.1\008d1469a31b18ebdf10df5189adf04f\core-1.1.0\res\values\values.xml:142:5-173:25: AAPT: error: resource
android:attr/fontVariationSettings not found.
[ +4 ms] C:\Users\Cristhian VeAl.gradle\caches\transforms-2\files-2.1\008d1469a31b18ebdf10df5189adf04f\core-1.1.0\res\values\values.xml:142:5-173:25: AAPT: error: resource
android:attr/ttcIndex not found.
[ +6 ms] * Try:
[ +4 ms] 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.
[ +14 ms] * Get more help at https://help.gradle.org
[ +4 ms] BUILD FAILED in 2m 4s
[ +22 ms] 559 actionable tasks: 18 executed, 541 up-to-date
[+1185 ms] Running Gradle task 'assembleRelease'... (completed in 126,2s, longer than expected)
[ +15 ms] The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.
[ +15 ms] Building plugin cloud_firestore...
[ +43 ms] Running Gradle task 'assembleAarRelease'...
[ +15 ms] "flutter apk" took 128.837ms.
The plugin cloud_firestore could not be built due to the issue above.
```
I hope I can have a solution :(
I don't know if it's because of the cloud_firestore version, I've changed it to 7.0.7 and the same.
capturin the compilation flutter build apk --release :

Cheers.
Hi @Cristhianveal
can you please provide your flutter doctor -v and flutter build apk --release --verbose?
Hi @Cristhianveal
can you please provide yourflutter doctor -vandflutter build apk --release --verbose?
Of Course: @TahaTesser
flutter doctor - v: https://carbon.now.sh/HbCdTCjxvvGHMrr9Qcyk
flutter build apk --release --verbose: https://carbon.now.sh/N0QTRWQcLa0ALbwdO3Nz

I'm also facing the same issue, any update on this?
I don't think this relates to the cloud_firestore plugin, both stack traces indicate that it's failing on flutter_twitter_login.