Repository: flutter
Issue: cannot find symbol import io.flutter.embedding.engine.plugins.lifecycle.FlutterLifecycleAdapter;
Labels: c: crash,platform-android,p: local_auth,package,a: build,P3,team-android,triaged-android

when i want to build app for android with command "flutter build apk --release", i get this error 

```bash
cannot find symbol
import io.flutter.embedding.engine.plugins.lifecycle.FlutterLifecycleAdapter;
```
that is inside local_auth plugin. i opened it with android studio and see that the FlutterLifeCycleAdapter cannot be imported.
and only one there is one class in that path and its name is "HiddenLifecycleReference".

this is output of my build command

```bash
$ flutter build apk --release
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'...


FAILURE: Build failed with an exception.



* What went wrong:

Execution failed for task ':vibrate:verifyReleaseResources'.

> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade

   > 1 exception was raised by workers:

     com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed

     C:\Users\Pedram\.gradle\caches\transforms-2\files-2.1\60a5a3b619f09ca92e9f1b4798715d52\core-1.0.0\res\values\values.xml:57:5-88:25: AAPT: error: resource android:attr/fontStyle not found.



     C:\Users\Pedram\.gradle\caches\transforms-2\files-2.1\60a5a3b619f09ca92e9f1b4798715d52\core-1.0.0\res\values\values.xml:57:5-88:25: AAPT: error: resource android:attr/font not found.



     C:\Users\Pedram\.gradle\caches\transforms-2\files-2.1\60a5a3b619f09ca92e9f1b4798715d52\core-1.0.0\res\values\values.xml:57:5-88:25: AAPT: error: resource android:attr/fontWeight not found.



     C:\Users\Pedram\.gradle\caches\transforms-2\files-2.1\60a5a3b619f09ca92e9f1b4798715d52\core-1.0.0\res\values\values.xml:57:5-88:25: AAPT: error: resource android:attr/fontVariationSettings not found.



     C:\Users\Pedram\.gradle\caches\transforms-2\files-2.1\60a5a3b619f09ca92e9f1b4798715d52\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 24s
Running Gradle task 'assembleRelease'...                           ۲۵٫۰s
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 audioplayers...
Running Gradle task 'assembleAarRelease'...                         ۲٫۴s
√ Built build\app\outputs\repo.
Building plugin barcode_scan...
Running Gradle task 'assembleAarRelease'...                         ۲٫۷s
√ Built build\app\outputs\repo.
Building plugin connectivity...
Running Gradle task 'assembleAarRelease'...                         ۲٫۲s
√ Built build\app\outputs\repo.
Building plugin connectivity_macos...
Running Gradle task 'assembleAarRelease'...                         ۳٫۴s
√ Built build\app\outputs\repo.
Building plugin flutter_downloader...
Running Gradle task 'assembleAarRelease'...                        ۱۲٫۰s
√ Built build\app\outputs\repo.
Building plugin flutter_money_formatter...
Running Gradle task 'assembleAarRelease'...                         ۲٫۲s
√ Built build\app\outputs\repo.
Building plugin flutter_plugin_android_lifecycle...
Running Gradle task 'assembleAarRelease'...                         ۳٫۱s
√ Built build\app\outputs\repo.
Building plugin flutter_secure_storage...
Running Gradle task 'assembleAarRelease'...                         ۳٫۹s
√ Built build\app\outputs\repo.
Building plugin local_auth...
Running Gradle task 'assembleAarRelease'...                         ۲٫۵s
> Task :assembleAarRelease UP-TO-DATE
> Task :preBuild UP-TO-DATE
> Task :preReleaseBuild UP-TO-DATE
> Task :compileReleaseAidl NO-SOURCE
> Task :compileReleaseRenderscript UP-TO-DATE
> Task :checkReleaseManifest UP-TO-DATE
> Task :generateReleaseBuildConfig UP-TO-DATE
> Task :generateReleaseResValues UP-TO-DATE
> Task :generateReleaseResources UP-TO-DATE
> Task :packageReleaseResources UP-TO-DATE
> Task :processReleaseManifest UP-TO-DATE
> Task :generateReleaseRFile UP-TO-DATE
> Task :prepareLintJar UP-TO-DATE
> Task :generateReleaseSources UP-TO-DATE
> Task :javaPreCompileRelease

> Task :compileReleaseJavaWithJavac FAILED

> Task :mergeReleaseConsumerProguardFiles UP-TO-DATE
> Task :mergeReleaseShaders UP-TO-DATE
> Task :compileReleaseShaders UP-TO-DATE
> Task :generateReleaseAssets UP-TO-DATE
> Task :packageReleaseAssets UP-TO-DATE
> Task :packageReleaseRenderscript NO-SOURCE
> Task :processReleaseJavaRes NO-SOURCE
> Task :compileReleaseNdk NO-SOURCE
> Task :mergeReleaseJniLibFolders UP-TO-DATE
> Task :transformNativeLibsWithMergeJniLibsForRelease UP-TO-DATE
> Task :transformNativeLibsWithSyncJniLibsForRelease UP-TO-DATE
17 actionable tasks: 2 executed, 15 up-to-date

C:\Users\Pedram\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\local_auth-0.6.1+3\android\src\main\java\io\flutter\plugins\localauth\LocalAuthPlugin.java:20: error: cannot find symbol
import io.flutter.embedding.engine.plugins.lifecycle.FlutterLifecycleAdapter;
                                                    ^
  symbol:   class FlutterLifecycleAdapter
  location: package io.flutter.embedding.engine.plugins.lifecycle
C:\Users\Pedram\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\local_auth-0.6.1+3\android\src\main\java\io\flutter\plugins\localauth\LocalAuthPlugin.java:186: error: cannot find symbol
        lifecycle = FlutterLifecycleAdapter.getActivityLifecycle(binding);
                    ^
  symbol:   variable FlutterLifecycleAdapter
  location: class LocalAuthPlugin
C:\Users\Pedram\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\local_auth-0.6.1+3\android\src\main\java\io\flutter\plugins\localauth\LocalAuthPlugin.java:199: error: cannot find symbol
        lifecycle = FlutterLifecycleAdapter.getActivityLifecycle(binding);
                    ^
  symbol:   variable FlutterLifecycleAdapter
  location: class LocalAuthPlugin
3 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* 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 2s

```
The plugin local_auth could not be built due to the issue above.