Can anyone solve this error by building a flutter project?

Asked

Viewed 262 times

-1

I built my flutter project and came across this mistake someone can help me?

C: src flutter bin flutter.bat --no-color build apk Running "flutter pub get" in auto_home... 1,6s You are building a fat APK that includes binaries for android-Arm, android-arm64, android-x64. If you are deploying the app to the Play Store, it’s Recommended to use app Bundles or split the APK to reduce the APK size. To generate an app Bundle, run: flutter build appbundle --target-Platform android-Arm,android-arm64,android-x64 Learn more on: https://developer.android.com/guide/app-bundle To split the Apks per ABI, run: flutter build apk --target-Platform android-Arm,android-arm64,android-x64 --split-per-Abi Learn more on: https://developer.android.com/studio/build/configure-apk-splits#configure-Abi-split Running Gradle task 'assembleRelease'...

Note: Some input files use unchecked or unsafe Operations. Note: Recompile with -Xlint:unchecked for Details.

Removed unused Resources: Binary Resource data Reduced from 326KB to 299KB: Removed 8%

FAILURE: Build failed with an Exception.

  • What Went Wrong: Execution failed for task ':path_provider:verifyReleaseResources'.

A Failure occurred while executing com.android.build.gradle.Internal.tasks.Workers$Actionfacade Android Resource linking failed C: Users Sarah.Radle caches Transforms-2 files-2.1 b60f613031a9e1950cc2947d9ba526e8 core-1.1.0 res values.xml values:142:5-173:25: AAPT: error: Resource android:attr/fontVariationSettings not found.

 C:\Users\Sarah\.gradle\caches\transforms-2\files-2.1\b60f613031a9e1950cc2947d9ba526e8\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 2m 2s Running Gradle task 'assembleRelease'... 123,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 cloud_firestore... Running Gradle task 'assembleAarRelease'...
The plugin cloud_firestore could not be built due to the Issue above.

  • It seems to be an error with this path_provider package. You are using the latest version? (path_provider: ^1.6.24) Also try to run a flutter clean before compiling again.

  • 1

    Thanks, I updated path_provider and it worked

1 answer

0


Following the detailed instructions in this Issue, make sure you’re using the latest version of the package path_provider.

In his file pubspec.yaml, check out:

dependencies:
  path_provider: ^1.6.24

After that, remember to rotate flutter clean before generating the next build.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.