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

Namespace Dependency Required to Support Newer Gradle Versions #499

Open
piyushlimited opened this issue Aug 9, 2024 · 10 comments
Open
Labels
WIP Work In Progress

Comments

@piyushlimited
Copy link

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':instabug_flutter'.

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: /Users/piyush/.pub-cache/hosted/pub.dev/instabug_flutter-13.3.0/android/build.gradle. 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.
Copy link

stale bot commented Aug 16, 2024

This issue has been automatically marked as pending feedback because we need additional information to be able to investigate it further. It will be closed in 7 days if it remains inactive. Thank you for your contributions.

@Turskyi
Copy link

Turskyi commented Aug 21, 2024

Hi,

I am also experiencing this issue with the Instabug-Flutter library. Here are the details of my environment:

  • Flutter version: 3.24.0
  • Gradle version: 8.7
  • Instabug-Flutter version: 13.3.0

Steps to reproduce:

  1. Open Flutter project.
  2. Go to android/gradle/wrapper/gradle-wrapper.properties
  3. Set gradle version to gradle-8.7-bin.zip.
  4. Sync the android project.
  5. Try to run the flutter project on the physical android device (for example Pixel 6).
  6. Observe the error.

Error message:

Launching lib/main.dart on Pixel 6 in debug mode… Running Gradle task ‘assembleDebug’…

FAILURE: Build failed with an exception.

What went wrong: A problem occurred configuring project ‘:instabug_flutter’.
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: /Users/dmytro/.pub-cache/hosted/pub.dev/instabug_flutter-13.3.0/android/build.gradle. 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.

BUILD FAILED in 1s Error: Gradle task assembleDebug failed with exit code 1

Is there any additional information you need from my side to help resolve this issue?

Thank you!

@stale stale bot removed the Pending Feedback label Aug 21, 2024
Copy link

stale bot commented Aug 28, 2024

This issue has been automatically marked as pending feedback because we need additional information to be able to investigate it further. It will be closed in 7 days if it remains inactive. Thank you for your contributions.

@karimi1064
Copy link

karimi1064 commented Sep 3, 2024

Hello! I am also facing this issue.

Namespace not specified. Specify a namespace in the module's build file: /Users//.pub-cache/hosted/pub.dev/instabug_flutter-13.3.0/android/build.gradle. 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.

@stale stale bot removed the Pending Feedback label Sep 3, 2024
@nicolasWenia
Copy link

Are there any news? Some of us are experiencing issues when targeting Android 14. Also Android 15 is out now, you should be updating these versions sooner.

Copy link

stale bot commented Sep 14, 2024

This issue has been automatically marked as pending feedback because we need additional information to be able to investigate it further. It will be closed in 7 days if it remains inactive. Thank you for your contributions.

Copy link

stale bot commented Sep 22, 2024

This issue has been automatically closed since we haven't heard back from you. Please feel free to re-open the issue if you have more information to add.

@stale stale bot closed this as completed Sep 22, 2024
@Turskyi
Copy link

Turskyi commented Sep 22, 2024 via email

@a7medev a7medev reopened this Sep 23, 2024
@a7medev a7medev added WIP Work In Progress and removed Pending Feedback labels Sep 23, 2024
@a7medev
Copy link
Contributor

a7medev commented Sep 23, 2024

Hello @piyushlimited, @Turskyi, @karimi1064 and @nicolasWenia, thanks for reporting this issue. Sorry for the late reply and the bot closing the issue.

We will look into it and get back to you. 🙏🏼

@dzwicker
Copy link

dzwicker commented Oct 8, 2024

just add namespace "com.instabug.flutter" to the build.gradle file. It breaking all users build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WIP Work In Progress
Projects
None yet
Development

No branches or pull requests

6 participants