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

Update build.gradle #155

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants