Skip to content
This repository was archived by the owner on Aug 16, 2025. It is now read-only.

Conversation

@Sarathy2908
Copy link

update this to avoid namespace error

update this to avoid namespace error
@oktambek2003
Copy link

plugins {
id "com.android.application"
id "kotlin-android"
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id "dev.flutter.flutter-gradle-plugin"
}

android {
compileSdkVersion 33

namespace = 'com.lucasjosino.on_audio_query'

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

defaultConfig {
    minSdkVersion flutter.minSdkVersion
    targetSdkVersion 33  
}

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}

kotlinOptions {
    jvmTarget = '1.8'
}

// android {
// namespace = "com.example.on_audio_query"
// compileSdk = flutter.compileSdkVersion
// ndkVersion = flutter.ndkVersion

// compileOptions {
// sourceCompatibility = JavaVersion.VERSION_1_8
// targetCompatibility = JavaVersion.VERSION_1_8
// }

// kotlinOptions {
// jvmTarget = JavaVersion.VERSION_1_8
// }

defaultConfig {
    // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
   applicationId = "com.example.on_audio_query"  // Bu yerda xato bor: "ccom" to'g'ri emas
    // You can update the following values to match your application needs.
    // For more information, see: https://flutter.dev/to/review-gradle-config.
    minSdk = flutter.minSdkVersion
    targetSdk = flutter.targetSdkVersion
    versionCode = flutter.versionCode
    versionName = flutter.versionName
}

buildTypes {
    release {
        // TODO: Add your own signing config for the release build.
        // Signing with the debug keys for now, so `flutter run --release` works.
        signingConfig = signingConfigs.debug
    }
}

}

flutter {
source = "../.."
}
this is my build.gradle file but i still have problem with namespace

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants