OneSignal-Flutter-SDK icon indicating copy to clipboard operation
OneSignal-Flutter-SDK copied to clipboard

AAPT: error: resource android:attr/lStar not found.

Open tazy-dev opened this issue 9 months ago • 2 comments

I am Using flutter one signal package 3.5.4 everything was working Perfectly until i upgraded flutter to version 3.27.4

Now I Can no Longer build my app using Flutter bulid apk or build appbundle results in an error message

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':onesignal_flutter:verifyReleaseResources'.

A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action Android resource linking failed ERROR: G:\Nxt-Level\Mobile Apps\hatrick\build\onesignal_flutter\intermediates\merged_res\release\values\values.xml:2657: AAPT: error: resource android:attr/lStar not found.

  • Upgrading to version 5.2.9 Solves the Problem but it creates another one ( Which is the main reason why i was using the 3.5.4 version) and the problem is if i received a notification while the app is not open (completely closed) upon clicking i expect the app to wake and open
    but it doesn't and i need to click on the notification once again

`dart initOneSignal() { OneSignal.Debug.setLogLevel( OSLogLevel.error, );

OneSignal.initialize (AppConstants.oneSignalAppID); OneSignal.Notifications.requestPermission(true); }

setupNotification(BuildContext context) { OneSignal.Notifications.addClickListener((openedResult) { PodcastEntity podcastEntity = PodcastModel.fromJson( jsonDecode( openedResult.notification.additionalData!["podcast"], ), ).toEntity; context.read<NotificationBloc>().add( NotificationClickedEvent( entity: podcastEntity, ), ); }); } `

tazy-dev avatar Feb 12 '25 23:02 tazy-dev