Merhaba iyi forumlar,

Projedeki genel hataları giderdim pubspec.yaml dosyasındaki paketleri güncelledim uygulamayı android başlattığımda
hatalar alıyorum.

Package file_picker:windows references file_picker:windows as the default plugin, but it does not provide an inline
implementation.
Ask the maintainers of file_picker to either avoid referencing a default implementation via
platforms: windows:
default_package: file_pickeror add an inline implementation to file_picker viaplatforms: windows:pluginClassordartPluginClass`.

You are applying Flutter’s app_plugin_loader Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/to/flutter-gradle-plugin-apply

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project ‘android’.

Could not resolve all files for configuration ‘:classpath’.
Could not find com.google.firebase:firebase-crashlytics-gradle:4.3.2.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/google/firebase/firebase-crashlytics-gradle/4.3.2/firebase-crashlytics-gradle-4.3.2.pom
- https://repo.maven.apache.org/maven2/com/google/firebase/firebase-crashlytics-gradle/4.3.2/firebase-crashlytics-gradle-4.3.2.pom
Required by:
project :

  • 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.

BU�LD FAILED in 2s
Running Gradle task ‘bundleRelease’… 3,5s
Gradle task bundleRelease failed with exit code 1`

file picker hatasının farklı platformları desteklemediği için alıyorum sorun diğer hatada.

android/build.gradle
`buildscript {
ext.kotlin_version = ‘1.9.22’
repositories {
google()
mavenCentral()
}
dependencies {
classpath ‘com.google.firebase:firebase-crashlytics-gradle:4.3.2’ // Firebase Crashlytics’in güncel sürümü
}
}

allprojects {
repositories {
google()
mavenCentral()
}
}

rootProject.buildDir = ‘../build’
subprojects {
project.buildDir = “${rootProject.buildDir}/${project.name}”
project.evaluationDependsOn(‘:app’)
}

tasks.register(“clean”, Delete) {
delete rootProject.buildDir
}
app/build.gradledef localProperties = new Properties()
def localPropertiesFile = rootProject.file(‘local.properties’)
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader(‘UTF-8’) { reader ->
localProperties.load(reader)
}
}

def flutterRoot = localProperties.getProperty(‘flutter.sdk’)
if (flutterRoot == null) {
throw GradleException(“Flutter SDK not found. Define location with flutter.sdk in the local.properties file.”)
}

def flutterVersionCode = localProperties.getProperty(‘flutter.versionCode’)
if (flutterVersionCode == null) {
flutterVersionCode = ‘1’
}

def flutterVersionName = localProperties.getProperty(‘flutter.versionName’)
if (flutterVersionName == null) {
flutterVersionName = ‘1.0’
}

apply plugin: ‘com.android.application’
apply plugin: ‘kotlin-android’
apply from: “$flutterRoot/packages/flutter_tools/gradle/flutter.gradle”
apply plugin: ‘com.google.gms.google-services’ // Google Services plugin

// TODO: make it correct
//apply plugin: ‘com.google.firebase.crashlytics’
def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file(‘key.properties’)
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}

android {
compileSdkVersion 34


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

lintOptions {
    disable 'InvalidPackage'
    checkReleaseBuilds false
}

defaultConfig {
    // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
    applicationId "com.dazel"
    minSdkVersion 21
    targetSdkVersion 33
    versionCode flutterVersionCode.toInteger()
    versionName flutterVersionName
}

signingConfigs {
release {
keyAlias keystoreProperties[‘keyAlias’]
keyPassword keystoreProperties[‘keyPassword’]
storeFile keystoreProperties[‘storeFile’] ? file(keystoreProperties[‘storeFile’]) : null
storePassword keystoreProperties[‘storePassword’]
}
}

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 ‘../..’
}

dependencies {
implementation “org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version”
}
`

indirdiğim proje: github linki

    Write a Reply...