OneSignal / OneSignal-Flutter-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your flutter app with OneSignal
https://www.onesignal.com
Other
625 stars 214 forks source link

[question]: iam Using onesignal_flutter: ^5.2.1 but when i build the Project Showing Execution failed for task ':onesignal_flutter:verifyReleaseResources'. > A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action #936

Closed devNasih closed 3 months ago

devNasih commented 3 months ago

How can we help?

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

Code of Conduct

jennantilla commented 3 months ago

Hi @devNasih thanks for reaching out! We have a discussion going on here and a PR that will be merged into our next Flutter release. I'm going to close this issue out for consolidation but please follow #930 for updates. Thanks!

Ashwin1002 commented 3 months ago

Add this line in your android level build.gradle file

subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"

    // add this line for onesignal_flutter to work in android device
    afterEvaluate {
        android {
            compileSdkVersion 34
        }
    }
}
apoorvpandey0 commented 3 months ago

Add this line in your android level build.gradle file

subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"

    // add this line for onesignal_flutter to work in android device
    afterEvaluate {
        android {
            compileSdkVersion 34
        }
    }
}

This worked thanks!