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

Could not find method production() for arguments #108

Open
clembabs opened this issue Sep 4, 2024 · 1 comment
Open

Could not find method production() for arguments #108

clembabs opened this issue Sep 4, 2024 · 1 comment
Assignees

Comments

@clembabs
Copy link

clembabs commented Sep 4, 2024

I am getting this error while trying to run smile on android

Could not find method production() for arguments [build_d0vzj1vh78ww2ad7c5wm777un$_run_closure2$_closure12$_closure18$_closure19@d0628ab] on BuildType$AgpDecorated_Decorated{name=productFlavors, debuggable=false, testCoverageEnabled=false, jniDebuggable=false, pseudoLocalesEnabled=false, renderscriptDebuggable=false, renderscriptOptimLevel=3, minifyEnabled=false, zipAlignEnabled=true, signingConfig=null, embedMicroApp=true, mBuildConfigFields={}, mResValues={}, mProguardFiles=[], mConsumerProguardFiles=[], mManifestPlaceholders={}} of type com.android.build.gradle.internal.dsl.BuildType$AgpDecorated.

This is where the error is pointing to

buildTypes {
        release {
            signingConfig signingConfigs.release
            minifyEnabled true
            shrinkResources true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
        debug {
            signingConfig signingConfigs.debug
        }
        flavorDimensions "default"
        productFlavors {
            production {
                dimension "default"
                resValue "string", "app_name", "AppName"
                applicationIdSuffix ""
            }
            staging {
                dimension "default"
                resValue "string", "app_name", "AppName Stg"
                applicationIdSuffix ".dev"
            }
            development {
                dimension "default"
                resValue "string", "app_name", "AppName Dev"
                applicationIdSuffix ".dev"
            }
        }
    }
@olalekan-agbaje
Copy link

Hi @clembabs can you provide the following additional information?

  • the build command you are running
  • settings.gradle file
  • app/build.gradle file
  • android/build.gradle file
  • gradle-wrapper.properties file

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

2 participants