I'm trying to build the apk of my project but I got:
* What went wrong:
Execution failed for task ':audioplayers:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
> Android resource linking failed
ERROR:C:\Users\pc\.gradle\caches\transforms-3\1c118aff0ddf4faaf93ec03867fed550\transformed\core-1.9.0-rc01\res\values\values.xml:104:5-113:25: AAPT: error: resource android:attr/lStar not found.
I don't know what this means, nor how to solve it, I saw online that I should have this line
implementation "androidx.core:core-ktx:1.6.0"
in mine app/build.grande but I tried and nothing changes.
Plugins I'm currently using:
cupertino_icons: ^1.0.5
path_provider: ^2.0.11
encrypt: ^5.0.1
flutter_speed_dial: ^6.0.0
telephony: ^0.2.0
audioplayers: any
flutter_audio_recorder2: ^0.0.2
flutter_local_notifications: ^9.7.0
flutter_launcher_icons: ^0.9.0
camera: ^0.10.0 1
image_picker: any
imgur: any
permission_handler: ^10.0.0
flutter_sms: ^2.3.3
audio_session: ^0.1.10
flutter_sound: ^9.2.13
flutter_sound_platform_interface: ^9.2.13
lottie: ^1.4.1
file_picker: ^5.0.1
environment: ^0.0.2
argon_buttons_flutter: ^1.1.0
flutter_native_splash: ^2.2.7
background_sms: ^0.0.4
animations: ^2.0.3
CodePudding user response:
Override the http package to the latest one by including dependency_overrides
in the pubspec.yaml
. It's going to be like the following:
dependency_overrides:
http:
version: ">=0.13.5"
Also, set audioplayers
version to ^1.0.1
.
dependencies:
audioplayers: ^1.0.1
# ...