MaikuB / flutter_local_notifications

A Flutter plugin for displaying local notifications on Android, iOS, macOS and Linux
2.46k stars 1.4k forks source link

AAPT: error: resource android:attr/lStar not found #2385

Open sunil-singh-chaudhary opened 2 months ago

sunil-singh-chaudhary commented 2 months ago

HI i am using this lib getting error while release apk

Using lib is - > flutter_google_places_sdk: ^0.3.7

SDK info-->

Flutter 3.24.0 • channel stable • https://github.com/flutter/flutter.git Framework • revision 80c2e84975 (8 days ago) • 2024-07-30 23:06:49 +0700 Engine • revision b8800d88be Tools • Dart 3.5.0 • DevTools 2.37.2

getitng error is AAPT: error: resource android:attr/lStar not found

How To Generate -> releasing signed apk throw this error

abdelaziz-mahdy commented 2 months ago

i am having the same problem

MaikuB commented 2 months ago

Could you please provide a link to a repo hosting a minimal app that can reproduce the problem and ensure that only it only references this plugin? I can see the original post mention flutter_google_places_sdk but isn't this plugin. I was able to build the example app in the repo using Flutter 3.24.0 and run it without any issues. The CI workflow on GitHub is also working fine

abdelaziz-mahdy commented 2 months ago

I can confirm that removing the package installed_apps fixed the issue for me.

ashutosh2014 commented 2 months ago

try adding the code above subprojects {project.buildDir ...} in android/build.gradle.

subprojects { afterEvaluate { project -> if (project.plugins.hasPlugin("com.android.application") || project.plugins.hasPlugin("com.android.library")) { project.android { compileSdkVersion 34 buildToolsVersion "34.0.0" } } } }

Alvish0407 commented 1 week ago

try adding the code block highlighted below to the android/build.gradle file in your project directory.

rootProject.buildDir = "../build"
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
+    afterEvaluate {
+        android {
+            compileSdkVersion 34
+        }
+    }
}