jeroentrappers/flutter_jailbreak_detection

missing namespace when upgrade gradle 8.0.0 and support flutter 3.10

Opened this issue · 9 comments

Getting thir error when upgrade to flutter 3.10

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. Please specify a namespace in the module's build.gradle file like so:

* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Exception is:
org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':flutter_jailbreak_detection'.

Got a solution to this?

Got a solution to this?

Porobably manually modifying the package's build.gradle file. :/

any work around solution for this?

Any solution on this issue?

Hello Guys,
this package is going out of support for the latest android version, kindly please release a version by updating the gradle of this package to support for latest android versions.

I am facing similar issue, Any solution?

Are there any potential remedies for this issue?

I have created PR #53 which fixes this issue. I guess you can reference it directly in your pubspec.yaml until it gets merged into master.

Add namespace and jvmtarget as below to build.gradle in the pub.dev

android {
    compileSdkVersion 33

    sourceSets {
        main.java.srcDirs += 'src/main/kotlin'
    }
    defaultConfig {
        minSdkVersion 17
    }

    kotlinOptions {
        jvmTarget = '1.8'
    }

    namespace 'appmire.be.flutterjailbreakdetection'
}