You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the following error in my new project using the newest version of flutter and dart. This is a brand new project that has nothing in it but one .dart file. Making sure all plugins compile before implementing UI and logic.
ERROR
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':hmssdk_flutter:compileDebugKotlin'.
Error while evaluating property 'compilerOptions.jvmTarget' of task ':hmssdk_flutter:compileDebugKotlin'.
Flutter Doctor
[√] Flutter (Channel stable, 3.27.0, on Microsoft Windows [Version 10.0.22631.4602], locale en-US)
• Flutter version 3.27.0 on channel stable at C:\Flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 8495dee1fd (3 weeks ago), 2024-12-10 14:23:39 -0800
• Engine revision 83bacfc525
• Dart version 3.6.0
• DevTools version 2.40.2
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at C:\Users\parke\AppData\Local\Android\sdk
• Platform android-35, build-tools 34.0.0
• Java binary at: C:\Program Files\Android\Android Studio1\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 21.0.3+-12282718-b509.11)
• All Android licenses accepted.
[√] Visual Studio - develop Windows apps (Visual Studio Enterprise 2022 17.12.2)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\NotPreview
• Visual Studio Enterprise 2022 version 17.12.35521.163
• Windows 10 SDK version 10.0.26100.0
[√] VS Code (version 1.96.2)
• VS Code at C:\Users\parke\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.102.0
android/app/build.gradle
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"
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId = "com.example.newehr"
// 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 = "../.."
}
100ms Flutter Version
1.10.6
Steps to reproduce
Use the information in description to reproduce.
Expected results
Build without error.
Code example, screenshot, or link to a repository
Code sample
Logs
Logs
<!-- Paste your logs here -->
Flutter Doctor output
Doctor output
<!-- Paste your output here -->
The text was updated successfully, but these errors were encountered:
Description
I get the following error in my new project using the newest version of flutter and dart. This is a brand new project that has nothing in it but one .dart file. Making sure all plugins compile before implementing UI and logic.
ERROR
FAILURE: Build failed with an exception.
Execution failed for task ':hmssdk_flutter:compileDebugKotlin'.
Flutter Doctor
[√] Flutter (Channel stable, 3.27.0, on Microsoft Windows [Version 10.0.22631.4602], locale en-US)
• Flutter version 3.27.0 on channel stable at C:\Flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 8495dee1fd (3 weeks ago), 2024-12-10 14:23:39 -0800
• Engine revision 83bacfc525
• Dart version 3.6.0
• DevTools version 2.40.2
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at C:\Users\parke\AppData\Local\Android\sdk
• Platform android-35, build-tools 34.0.0
• Java binary at: C:\Program Files\Android\Android Studio1\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 21.0.3+-12282718-b509.11)
• All Android licenses accepted.
[√] Visual Studio - develop Windows apps (Visual Studio Enterprise 2022 17.12.2)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\NotPreview
• Visual Studio Enterprise 2022 version 17.12.35521.163
• Windows 10 SDK version 10.0.26100.0
[√] Android Studio (version 2024.2)
• Android Studio at C:\Program Files\Android\Android Studio1
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.3+-12282718-b509.11)
[√] VS Code (version 1.96.2)
• VS Code at C:\Users\parke\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.102.0
android/app/build.gradle
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 {
namespace = "com.example.newehr"
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion
}
flutter {
source = "../.."
}
100ms Flutter Version
1.10.6
Steps to reproduce
Use the information in description to reproduce.
Expected results
Build without error.
Code example, screenshot, or link to a repository
Code sample
Logs
Logs
<!-- Paste your logs here -->
Flutter Doctor output
Doctor output
<!-- Paste your output here -->
The text was updated successfully, but these errors were encountered: