• 20-11-2023, 14:25:09
    #1
    flutter uygulamamı çalıştırınca şu hatayı alıyorum:



    FAILURE: Build failed with an exception.

    * What went wrong:
    A problem occurred configuring project 'pen_file'.
    > Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantB uilderImpl.
    > Namespace not specified. Please specify a namespace in the module's build.gradle file like so:

    android {
    namespace 'com.example.namespace'
    }

    If the package attribute is specified in the source AndroidManifest.xml, it can be migrated automatically to the namespace value in the build.gradle file using the AGP Upgrade Assistant; please refer to https://developer.android.com/studio...rade-assistant for more information.

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

    * Get more help at https://help.gradle.org

    BU�LD FAILED in 1s


    namespace alanım hatada yer alan uyarıyla benzer zaten android/app/build.gradle dosyam şöyle:


    android {
    namespace "com.shnyazilim.isg.isg"
    compileSdkVersion flutter.compileSdkVersion
    ndkVersion flutter.ndkVersion
    compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
    }
    kotlinOptions {
    jvmTarget = '1.8'
    }
    sourceSets {
    main.java.srcDirs += 'src/main/kotlin'
    }
    signingConfigs {
    release {
    keyAlias keystoreProperties['keyAlias']
    keyPassword keystoreProperties['keyPassword']
    storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
    storePassword keystoreProperties['storePassword']
    }
    }
    defaultConfig {
    // TODO: Specify your own unique Application ID (https://developer.android.com/studio...cation-id.html).
    applicationId "com.shnyazilim.isg.isg"
    // You can update the following values to match your application needs.
    // For more information, see: https://docs.flutter.dev/deployment/...-configuration.
    minSdkVersion 30
    targetSdkVersion 34
    versionCode flutterVersionCode.toInteger()
    versionName flutterVersionName
    }
    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.release
    }
    }

    }
  • 20-11-2023, 14:31:06
    #2
    Edit: build.gradle dosyasını düzenlediniz mi? Burada uygulama kimliği vs. oluşturulması gerekiyor. com.*.* şeklinde


    https://www.youtube.com/watch?v=ieOdT-p603Y
  • 20-11-2023, 14:39:15
    #3
    Aktimur adlı üyeden alıntı: mesajı görüntüle
    Edit: build.gradle dosyasını düzenlediniz mi? Burada uygulama kimliği vs. oluşturulması gerekiyor. com.*.* şeklinde


    https://www.youtube.com/watch?v=ieOdT-p603Y
    bu kısmı diyorsan isimlendirmem şu şekilde :
    namespace "com.shnyazilim.isg.isg"
  • 20-11-2023, 14:40:18
    #4
    mertdesti adlı üyeden alıntı: mesajı görüntüle
    bu kısmı diyorsan isimlendirmem şu şekilde :
    namespace "com.shnyazilim.isg.isg"
    Videoda çok iyi anlatılmış, videoya göre gitmek çok daha iyi olur gibi görünüyor
  • 20-11-2023, 14:48:27
    #5
    Aktimur adlı üyeden alıntı: mesajı görüntüle
    Videoda çok iyi anlatılmış, videoya göre gitmek çok daha iyi olur gibi görünüyor
    bu video google playe uygulama yükleme videosu benim sorunum onla alakalı değil gibi sanki