muslimtv / flutter_playout

AV Playout in Flutter
BSD 3-Clause "New" or "Revised" License
152 stars 94 forks source link

FAILURE: Build failed with an exception. #87

Open TuupleMasterAndroid opened 2 years ago

TuupleMasterAndroid commented 2 years ago

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.

BUILD FAILED in 1m 58s Exception: Gradle task assembleDebug failed with exit code 1

KhuramKhalid commented 2 years ago

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.