I'm getting an erroer with namespace on several pa...
# community-support
s
I'm getting an erroer with namespace on several packages. I tried using AGP to make the updates but it's not working and making the changes one package after another is not very visible. Any help? Pls see error below
Copy code
What went wrong:
A problem occurred configuring project ':react-native-community_checkbox'.
> 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.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at <https://help.gradle.org>.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to <https://docs.gradle.org/8.2/userguide/command_line_interface.html#sec:command_line_warnings> in the Gradle documentation.
v
The dependencies you want to use are not compatible with the AGP version you use. To work-around the problem you can use bad-practice
subprojects { ... }
snippets you find in various threads regarding this problem. But ultimately your dependencies should be updated to be compatible with latest AGP.
s
Is there anyway to know what dependencies are bad?
Also, can you please reference the subprojects snippet for me?
v
Is there anyway to know what dependencies are bad?
The one you get error messages about. The ones that do not set the namespace properly.
Also, can you please reference the subprojects snippet for me?
You want me to operate the search for you? Instead you should google the term "help vampire". 😉 If I would have it readily available I would have shared it.