flutter_local_notifications icon indicating copy to clipboard operation
flutter_local_notifications copied to clipboard

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

Open sunil-singh-chaudhary opened this issue 1 year ago • 5 comments
trafficstars

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

sunil-singh-chaudhary avatar Aug 07 '24 12:08 sunil-singh-chaudhary

i am having the same problem

abdelaziz-mahdy avatar Aug 09 '24 14:08 abdelaziz-mahdy

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

MaikuB avatar Aug 10 '24 06:08 MaikuB

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

abdelaziz-mahdy avatar Aug 10 '24 09:08 abdelaziz-mahdy

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" } } } }

ashutosh2014 avatar Aug 14 '24 07:08 ashutosh2014

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
+        }
+    }
}

Alvish0407 avatar Oct 24 '24 13:10 Alvish0407

Closing this as this is rather old and OP didn't get around to respond. Thanks to everyone else who tried to give pointers

MaikuB avatar Sep 19 '25 13:09 MaikuB