失败:生成失败,出现异常。
- 其中:构建文件"D:...\QRTic\QRTic_Customer\flutter_application_1\android\app\build.gradle"行:34
- 出了什么问题:评估项目":app"时出现问题。
无方法签名:build_736eq4o62b75hodqgip5fud2k.android()适用于参数类型:(构建_736eq4o62b75hodqgip5fud2k$_run_closure3)值:[构建_736eq4o62b75hodqgip5fud2k$_run_closure3@389d26e3]
构建等级为:
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply plugin: 'kotlin-android-extensions'
androidExtensions {
experimental = true
}
android {
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'
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.flutter_application_1"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
minSdkVersion flutter.minSdkVersion
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
signingConfigs{
debug{
keyAlias 'qrtic'
storePassword '123456'
storeFile file('qrtic.jks')
keypassword '123456'
}
}
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
}
debug {
// 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
}
}
}
有人知道错误的原因吗?我需要修复什么?
1条答案
按热度按时间xwbd5t1u1#
可能是此错误吗?“无法解决第11行第15列的类GradleException @。Gradle”“”def flutterRoot = localProperties.getProperty('flutter. sdk')if(flutterRoot == null){抛出新的GradleException(“未找到Flutter SDK。请在www.example.com文件中使用flutter.sdk定义位置local.properties。”)}“”我认为这不应该是主要原因。enter image description here