Skip to content
This repository was archived by the owner on Nov 16, 2024. It is now read-only.
This repository was archived by the owner on Nov 16, 2024. It is now read-only.

Please move package namespace from Android manifest to build file.  #6

Description

@PeperMarkreel

Hi,

Could you please remove package="fr.g123k.install_referrer" from the android manifest and move it to the build file?

Otherwise we get

FAILURE: Build failed with an exception.

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

Change the following:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="fr.g123k.install_referrer"> </manifest>

to
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> </manifest>

and add the namespace in the module's build file like the following in build.gradle:

android { namespace "fr.g123k.install_referrer" compileSdkVersion 31

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions