Skip to content

Build issue in AGP 8.7.0 #31

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
ParsaMastoory opened this issue Mar 21, 2025 · 0 comments
Open

Build issue in AGP 8.7.0 #31

ParsaMastoory opened this issue Mar 21, 2025 · 0 comments

Comments

@ParsaMastoory
Copy link

Good day dears,
Hope you're doing fine.

I was trying to add Backendless to the project and encountered this issue:

What went wrong:
A problem occurred configuring project ':backendless_sdk'.

Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
Namespace not specified. Specify a namespace in the module's build file: C:.....\pub.dev\backendless_sdk-7.3.8\android\build.gradle. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.

If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant.

After this, I added the namespace to the Backendless library in android/build.gradle and removed the package name from the Manifest file. Then I encountered a different error in the BackendlessSdkPlugin.java file and in the registerWith function.

Here are the versions I used in the projects:

com.android.application "8.7.0"
backendless_sdk: ^7.3.8
Flutter 3.29.2
Dart 3.7.2 • DevTools 2.42.3

What can I do to overcome the issue?
Thank you in advance.

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

1 participant