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

FAILURE: Build failed with an exception. #87

Open
TuupleMasterAndroid opened this issue May 9, 2022 · 1 comment
Open

FAILURE: Build failed with an exception. #87

TuupleMasterAndroid opened this issue May 9, 2022 · 1 comment

Comments

@TuupleMasterAndroid
Copy link

The plugin flutter_playout uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
Running Gradle task 'assembleDebug'...
WARNING: [Processor] Library 'C:\Users\XXX.gradle\caches\modules-2\files-2.1\com.google.android.exoplayer\exoplayer-ui\2.11.1\b9d470c64cdf20dc4bbbdcd7f5a168f8bdba1339\exoplayer-ui-2.11.1.aar' contains references to both AndroidX and old support library. This seems like the library is partially migrated. Jetifier will try to rewrite the library anyway.
Example of androidX reference: 'androidx/core/app/NotificationCompat$Builder'
Example of support library reference: 'android/support/v4/media/session/MediaSessionCompat$Token'
C:\Users\XXX\Documents\FlutterProject\new_radio\android\app\src\debug\AndroidManifest.xml:28:9-32:20 Error:
android:exported needs to be explicitly specified for element <receiver#tv.mta.flutter_playout.audio.RemoteReceiver>. Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.
C:\Users\XXX\Documents\FlutterProject\new_radio\android\app\src\debug\AndroidManifest.xml:33:9-37:20 Error:
android:exported needs to be explicitly specified for element <receiver#tv.mta.flutter_playout.video.RemoteReceiver>. Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:processDebugMainManifest'.

Manifest merger failed with multiple errors, see logs

  • 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 1m 58s
Exception: Gradle task assembleDebug failed with exit code 1

@KhuramKhalid
Copy link
Member

Please use 2.0.2-rc2.

With this version you will also need to do a bit more setup for the plugin. Please see this issue for details.

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