Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The app doesn't compile #156

Open
Ascenio opened this issue Oct 9, 2020 · 1 comment
Open

The app doesn't compile #156

Ascenio opened this issue Oct 9, 2020 · 1 comment

Comments

@Ascenio
Copy link

Ascenio commented Oct 9, 2020

Warning
──────────────────────────────────────────────────────────────────────────────
Your Flutter application is created using an older version of the Android
embedding. It's being deprecated in favor of Android embedding v2. Follow the
steps at

https://flutter.dev/go/android-project-migration

to migrate your project.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

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
[!] Your app isn't using AndroidX.
    To avoid potential build failures, you can quickly migrate your app by following the steps on https://goo.gl/CP92wY .
Running Gradle task 'assembleRelease'...                        


Welcome to Gradle 4.10.2!



Here are the highlights of this release:

 - Incremental Java compilation by default

 - Periodic Gradle caches cleanup

 - Gradle Kotlin DSL 1.0-RC6

 - Nested included builds

 - SNAPSHOT plugin versions in the `plugins {}` block



For more details see https://docs.gradle.org/4.10.2/release-notes.html






FAILURE: Build failed with an exception.



* What went wrong:

Execution failed for task ':app:processReleaseResources'.

> Android resource linking failed

  Output:  /Users/builder/clone/build/app/intermediates/incremental/mergeReleaseResources/merged.dir/values/values.xml:86: error: resource android:attr/fontVariationSettings not found.

  /Users/builder/clone/build/app/intermediates/incremental/mergeReleaseResources/merged.dir/values/values.xml:87: error: resource android:attr/ttcIndex not found.

  error: failed linking references.



  Command: /Users/builder/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/240b6c832eca7924d551bf6ba542dcbe/aapt2-3.2.1-4818971-osx/aapt2 link -I\

          /Users/builder/programs/android-sdk-macosx/platforms/android-27/android.jar\

          --manifest\

          /Users/builder/clone/build/app/intermediates/merged_manifests/release/processReleaseManifest/merged/AndroidManifest.xml\

          -o\

          /Users/builder/clone/build/app/intermediates/processed_res/release/processReleaseResources/out/resources-release.ap_\

          -R\

          @/Users/builder/clone/build/app/intermediates/incremental/processReleaseResources/resources-list-for-resources-release.ap_.txt\

          --auto-add-overlay\

          --java\

          /Users/builder/clone/build/app/generated/not_namespaced_r_class_sources/release/processReleaseResources/r\

          --proguard\

          /Users/builder/clone/build/app/intermediates/proguard-rules/release/aapt_rules.txt\

          --custom-package\

          dev.flutter.devrpg\

          -0\

          apk\

          --output-text-symbols\

          /Users/builder/clone/build/app/intermediates/symbols/release/R.txt\

          --no-version-vectors

  Daemon:  AAPT2 aapt2-3.2.1-4818971-osx Daemon #0

  Output:  /Users/builder/.gradle/caches/transforms-1/files-1.1/core-1.1.0.aar/6420b02a8ec7479a3d9f57c4e19a6396/res/values/values.xml:174:5-210:25: AAPT: error: resource android:attr/fontVariationSettings not found.



  /Users/builder/.gradle/caches/transforms-1/files-1.1/core-1.1.0.aar/6420b02a8ec7479a3d9f57c4e19a6396/res/values/values.xml:174:5-210:25: AAPT: error: resource android:attr/ttcIndex not found.



  error: failed linking references.

  Command: /Users/builder/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/240b6c832eca7924d551bf6ba542dcbe/aapt2-3.2.1-4818971-osx/aapt2 link -I\

          /Users/builder/programs/android-sdk-macosx/platforms/android-27/android.jar\

          --manifest\

          /Users/builder/clone/build/app/intermediates/merged_manifests/release/processReleaseManifest/merged/AndroidManifest.xml\

          -o\

          /Users/builder/clone/build/app/intermediates/processed_res/release/processReleaseResources/out/resources-release.ap_\

          -R\

          @/Users/builder/clone/build/app/intermediates/incremental/processReleaseResources/resources-list-for-resources-release.ap_.txt\

          --auto-add-overlay\

          --java\

          /Users/builder/clone/build/app/generated/not_namespaced_r_class_sources/release/processReleaseResources/r\

          --proguard\

          /Users/builder/clone/build/app/intermediates/proguard-rules/release/aapt_rules.txt\

          --custom-package\

          dev.flutter.devrpg\

          -0\

          apk\

          --output-text-symbols\

          /Users/builder/clone/build/app/intermediates/symbols/release/R.txt\

          --no-version-vectors

  Daemon:  AAPT2 aapt2-3.2.1-4818971-osx Daemon #0



* 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
@Andres-MI
Copy link

Andres-MI commented Dec 3, 2020

Hi Ascenio, I've solved this same error upgrading compilesdkVersion on Android build.gradle to 29 (any >27 should do the trick)

I have opened PR #159 in order to solve this:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants