This error occurs only on one of my devices.
but on my other device, it is working fine.
I checked for all configurations between devices all were same.
if I removed this package "flutter_subscreen_plugin" I can able to debug.
[+14758 ms] FAILURE: Build failed with an exception.
[ +15 ms] * What went wrong:
[ +8 ms] Execution failed for task ':flutter_subscreen_plugin:compileDebugKotlin'.
[ +4 ms] > Could not resolve all files for configuration ':flutter_subscreen_plugin:debugCompileClasspath'.
[ +1 ms] > Failed to transform flutter.jar to match attributes {artifactType=android-classes-jar,
org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
[ +37 ms] > Execution failed for JetifyTransform:
C:\Users\anand_epaisa\fvm\default\bin\cache\artifacts\engine\android-arm\flutter.jar.
[ +16 ms] > Transform's input file does not exist:
C:\Users\anand_epaisa\fvm\default\bin\cache\artifacts\engine\android-arm\flutter.jar. (See
https://issuetracker.google.com/issues/158753935)
[ +4 ms] * Try:
[ +1 ms] 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.
[ +2 ms] * Get more help at https://help.gradle.org
[ +4 ms] BUILD FAILED in 55s
[ +7 ms] Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
[ +13 ms] Use '--warning-mode all' to show the individual deprecation warnings.
[ +4 ms] See https://docs.gradle.org/7.0-rc-1/userguide/command_line_interface.html#sec:command_line_warnings
[ +2 ms] 430 actionable tasks: 2 executed, 428 up-to-date
[ +766 ms] Running Gradle task 'assembleDebug'... (completed in 59.2s)
[ +9 ms]
This issue appears to be https://github.com/flutter/flutter/issues/58247.
Fix this issue by adding the following to the file
C:\Users\anand_epaisa\Desktop\EatOs\eo-pos-app-flutter\eatOS\android\app\build.gradle:
android {
lintOptions {
checkReleaseBuilds false
}
}
[ +12 ms] Exception: Gradle task assembleDebug failed with exit code 1
[ +3 ms] "flutter run" took 70,201ms.
[ +5 ms]
#0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:674:9)
<asynchronous suspension>
#2 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1140:27)
<asynchronous suspension>
#3 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#4 CommandRunner.runCommand (package:args/command_runner.dart:209:13)
<asynchronous suspension>
#5 FlutterCommandRunner.runCommand.<anonymous closure>
(package:flutter_tools/src/runner/flutter_command_runner.dart:288:9)
<asynchronous suspension>
#6 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#7 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:236:5)
<asynchronous suspension>
#8 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
<asynchronous suspension>
#9 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#10 main (package:flutter_tools/executable.dart:94:3)
<asynchronous suspension>
[ +306 ms] ensureAnalyticsSent: 303ms
[ +165 ms] Running shutdown hooks
[ +39 ms] Shutdown hooks complete
[ +40 ms] exiting with code 1
https://stackoverflow.com/questions/73079150/flutter-execution-failed-for-task-compiledebugkotlin-failed-to-transform-flutt
Can't able to debug this flutter project.
This error occurs only on one of my devices. but on my other device, it is working fine.
I checked for all configurations between devices all were same.
if I removed this package "flutter_subscreen_plugin" I can able to debug.
android/build.gradle
Gradle property
android/app/build.gradle
Flutter doctor -v