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

A problem occurred configuring project ':flutter_jailbreak_detection'. #72

Open
tajjacob opened this issue Oct 17, 2024 · 3 comments
Open

Comments

@tajjacob
Copy link

After migrate to latest Android as suggested in Flutter Migrate

I got this error:


[   +2 ms] FAILURE: Build failed with an exception.
[   +1 ms] * What went wrong:
[        ] A problem occurred configuring project ':flutter_jailbreak_detection'.
[        ] > 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.

I have to disable this plugin in order to run Flutter android

@muhammednazil
Copy link

The same problem occurred to me. Is there any solution for this?

@rithin-prakash
Copy link

Someone raised a pull request for this already.#70.

But you could add

namespace "appmire.be.flutterjailbreakdetection"

in ~user/.pub-cache/hosted/pub.dev/flutter_jailbreak_detection-1.10.0/android/build.gradle in the android section.

Note ~user will be different for different os

@mugurelvasile
Copy link

Thank you @rithin-prakash , this helped.
I also had to add
kotlinOptions { jvmTarget = JavaVersion.VERSION_1_8 }

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

No branches or pull requests

4 participants