Code: Select all
Running Gradle task 'assembleDebug'...
e: file:///D:/Flutter%20projects/ViserBank%20v2.0%20App/Files/android/app/src/main/kotlin/dev/vlab/viser_bank/MainActivity.kt:3:8 Unresolved reference 'io'.
e: file:///D:/Flutter%20projects/ViserBank%20v2.0%20App/Files/android/app/src/main/kotlin/dev/vlab/viser_bank/MainActivity.kt:5:21 Unresolved reference 'FlutterActivity'.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Compilation error. See log for more details
* 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.
BUILD FAILED in 10m 29s
Error: Gradle task assembleDebug failed with exit code 1
Code: Select all
pluginManagement {
def flutterSdkPath = {
def properties = new Properties()
file("local.properties").withInputStream { properties.load(it) }
def flutterSdkPath = properties.getProperty("flutter.sdk")
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
return flutterSdkPath
}
settings.ext.flutterSdkPath = flutterSdkPath()
includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
plugins {
//id "dev.flutter.flutter-plugin-loader" version "1.0.0"
// Update Gradle and Kotlin versions here
id "com.android.application" version '8.7.0' apply false
id "org.jetbrains.kotlin.android" version "2.0.20" apply false
//id "com.google.gms.google-services" version "4.4.2" apply false
//id "com.google.firebase.crashlytics" version "3.0.2" apply false
// https://kotlinlang.org/docs/gradle-configure-project.html?utm_campaign=gradle-jvm-toolchain&utm_medium=kgp&utm_source=warnings#gradle-java-toolchains-support
id "org.gradle.toolchains.foojay-resolver-convention" version "0.8.0"
}
include ":app"
Code: Select all
org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
android.useAndroidX=true
android.enableJetifier=true
Code: Select all
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.1.0'
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
Code: Select all
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'dev.flutter.flutter-gradle-plugin'
//id 'com.google.gms.google-services'
//id 'com.google.firebase.crashlytics'
}
// If local properties file doesn't exist, use some default values if possible
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}
def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
// Update Android SDK versions here
// Android SDK levels defined here:
// https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels
def flutterCompileSdkVersion = 35
def flutterMinSdkVersion = 24 // Android 7.0
def flutterTargetSdkVersion = 35
kotlin {
jvmToolchain(17) // Java version defined here
}
android {
namespace 'dev.vlab.viser_bank'
compileSdk flutterCompileSdkVersion
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
defaultConfig {
applicationId 'dev.vlab.viser_bank'
minSdkVersion flutterMinSdkVersion
targetSdkVersion flutterTargetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
buildTypes {
debug {
// This differentiated release from debug build, but it prevented debug build from
// seeing subscription products. See also `android/app/src/debug/google-services.json`.
//applicationIdSuffix '.debug'
debuggable true
}
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
}
}
compileOptions {
// Flag to enable support for the new language APIs
coreLibraryDesugaringEnabled true
}
}
flutter {
source '../..'
}
dependencies {
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.2'
}
< /code>
****** -Gradle-wrapper.properties ** < /p>
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-all.zip
Code: Select all
package dev.vlab.viser_bank
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity()
Flutter -Doktor -v
erhalten
Code: Select all
[√] Flutter (Channel stable, 3.32.1, on Microsoft Windows [Version 10.0.26100.4061], locale en-US) [478ms]
• Flutter version 3.32.1 on channel stable at C:\Users\iamro\develop\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision b25305a883 (4 days ago), 2025-05-29 10:40:06 -0700
• Engine revision 1425e5e9ec
• Dart version 3.8.1
• DevTools version 2.45.1
[√] Windows Version (Windows 11 or higher, 24H2, 2009) [1,211ms]
[√] Android toolchain - develop for Android devices (Android SDK version 35.0.1) [2.6s]
• Android SDK at C:\Users\iamro\AppData\Local\Android\sdk
• Platform android-35, build-tools 35.0.1
• Java binary at: C:\Program Files\Java\jdk-17\bin\java
This JDK is specified in your Flutter configuration.
To change the current JDK, run: `flutter config --jdk-dir="path/to/jdk"`.
• Java version OpenJDK Runtime [url=viewtopic.php?t=25360]Environment[/url] Temurin-17.0.15+6 (build 17.0.15+6)
• All Android licenses accepted.
[√] Chrome - develop for the web [201ms]
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[!] Visual Studio - develop Windows apps (Visual Studio Build Tools 2019 16.11.47) [199ms]
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
• Visual Studio Build Tools 2019 version 16.11.36107.64
X The current Visual Studio installation is incomplete.
Please use Visual Studio Installer to complete the installation or reinstall Visual Studio.
[√] Android Studio (version 2024.2) [27ms]
• Android Studio at D:\Program Files\Android\Android Studio
• 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 [url=viewtopic.php?t=25360]Environment[/url] (build 21.0.5+-12932927-b750.29)
[√] VS Code (version 1.100.2) [25ms]
• VS Code at C:\Users\iamro\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.110.0
[√] Connected device (3 available) [2.2s]
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.26100.4061]
• Chrome (web) • chrome • web-javascript • Google Chrome 136.0.7103.114
• Edge (web) • edge • web-javascript • Microsoft Edge 137.0.3296.52
[√] Network resources [503ms]
• All expected network resources are available.
! Doctor found issues in 1 category.