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

Add support of namespace property to support Android Gradle Plugin 8 #110

Merged
merged 3 commits into from
Aug 23, 2023
Merged

Conversation

Skyost
Copy link
Contributor

@Skyost Skyost commented May 13, 2023

This PR adds support of namespace property to support Android Gradle Plugin (AGP) 8. It fixes the following error :

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':game_services'.
> Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
   > Namespace not specified. Please specify a namespace in the module's build.gradle file like so:

     android {
         namespace 'com.example.namespace'
     }

     If the package attribute is specified in the source AndroidManifest.xml, it can be migrated automatically to the namespace value in the build.gradle file using the AGP Upgrade Assistant; please refer to https://developer.android.com/studio/build/agp-upgrade-assistant for more information.

* 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

BUILD FAILED in 1s
Running Gradle task 'bundleRelease'...                           2 150ms
Gradle task bundleRelease failed with exit code 1

See flutter/flutter#125181 (comment).

…GP) 8

This PR add support of namespace property to support Android Gradle Plugin (AGP) 8. Projects with AGP < 4.2 will not supported anymore.
@Skyost
Copy link
Contributor Author

Skyost commented May 20, 2023

If you want to try this, in your pubspec.yaml :

dependencies:
  games_services:
    git:
      url: https://github.com/Skyost/games_services.git
      ref: fix/agp-8
      path: games_services

Copy link
Owner

@Abedalkareem Abedalkareem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing! Thanks!

@Abedalkareem Abedalkareem merged commit d27a6da into Abedalkareem:develop Aug 23, 2023
@Skyost Skyost deleted the fix/agp-8 branch August 24, 2023 14:14
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

Successfully merging this pull request may close these issues.

None yet

2 participants