Skip to content

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

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

Open
tazy-dev opened this issue Feb 12, 2025 · 2 comments
Open

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

tazy-dev opened this issue Feb 12, 2025 · 2 comments

Comments

@tazy-dev
Copy link

tazy-dev commented Feb 12, 2025

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().add(
NotificationClickedEvent(
entity: podcastEntity,
),
);
});
}
`

@nan-li
Copy link
Contributor

nan-li commented Feb 13, 2025

Hi @tazy-dev, the android:attr/lStar issue looks related to some compileSdk versions. I recommend using v5.x.x of this SDK.

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

Are you seeing this on Android, iOS, or both?

@tazy-dev
Copy link
Author

For now Iam only developing it for android
So yeah only android...
Strangely as I said before when I was working with v 3.5.4 didn't have this problem...
But now it's happening and I don't know why
Clicking on a notification when app is off won't wake the application and open the notification
And clicking on the notification again is needed

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