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.
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 forandroid: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 forandroid: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'.
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