Skip to content
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

🙏 Build fail with AGP 8.0 🙏 #44

Open
ttb-inc opened this issue Jan 18, 2024 · 2 comments
Open

🙏 Build fail with AGP 8.0 🙏 #44

ttb-inc opened this issue Jan 18, 2024 · 2 comments
Labels

Comments

@ttb-inc
Copy link

ttb-inc commented Jan 18, 2024

Hi,
Please resolve issues with AGP 8.0 on Android.(’namespace’)
Thank you.

@swenhancer
Copy link

More info on the issue:

* What went wrong:
A problem occurred configuring project ':unity_ads_plugin'.
> 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. 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.

It seems that fix is easy, just the namespace has to be added in android/app/build.gradle

android {
    namespace = "com.example.myapp"
    ...
}

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants