Hello all, I keep bumping against this error whene...
# community-support
m
Hello all, I keep bumping against this error whenever I execute "flutter run" in my project: This happens after I updated my Gradle configuration described in this guide. Any idea why this may be happening?
v
No real idea about Flutter, but from a quick Google this seems to be some Flutter-provided thing. Maybe your Flutter version or the version of that library is not compatible with your used Gradle version or (more likely as you get an error from that) Android Gradle Plugin version?
d
This used to be the
package
attribute in your manifest file. This value is no longer allowed in the manifest, but rather you need to set the value for
Copy code
android {
  namespace = "com.myapp" //or whatever is in your manifest now for package
}
https://developer.android.com/build/configure-app-module#set-namespace
This will become important as the non-transitive R class is disabled by default now (can’t recall if you can turn it off or not).
v
But it is not in his own project, is it? That's why I suspected version incompatibility
d
You’re right, missed that. It looks like a change has been put up for a PR to fix this issue with that library but it hasn’t been published: https://github.com/flutter-moum/flutter_screenshot_callback/pull/81
It is incomplete as the manifest file would still need to remove the package element with AGP 8.