Skip to content

Namespace not specified. Specify a namespace in photo_gallery-2.2.1\android\build.gradle #10

Description

@Ashhad08

This problem occurs when I had to migrate to Kotlin 2.0.10 and therefore update my gradle completely, when trying to create the apk I get the following error:

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: photo_gallery-2.2.1\android\build.gradle. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.
I omit part of the path of the problem for obvious reasons, please need a solution to the problem, thank you very much.

There needs to be a new value in the android {...} block:

android {
compileSdkVersion 34
...
namespace 'com.example.app'
}
This is located in app/build.gradle

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions