A problem was found with the configuration of task ':shared_preferences:createFullJarDebug' - flutter

FAILURE: Build failed with an exception.
What went wrong:
A problem was found with the configuration of task ':shared_preferences:createFullJarDebug'.
File 'H:\flutter\info_app\build\shared_preferences\intermediates\runtime_library_classes\debug\classes.jar' specified for property 'libraryInputFile' does not exist.
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 1m 0s
Exception: Gradle task assembleDebug failed with exit code 1

Related

Flutter sqlite database

When I run the code it shows
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
Failed to create parent directory 'C:\Users\major' when creating directory 'C:\Users\major\AndroidStudioProjects\sqlite_demo\build\app\intermediates\flutter\debug\flutter_assets'
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 3m 37s
Exception: Gradle task assembleDebug failed with exit code 1

Trying to run my flutter project on Emulator but keep getting this error

FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:mergeDebugResources'.
/Users/mac/.gradle/caches/transforms-2/files-2.1/6dfce29e8bb57325e0dac8088b7ee1b8/material-1.8.0-alpha01/res/values/values.xml: Error: Can't determine type for tag '?attr/colorSurface'
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.
BUILD FAILED in 1m 36s
Exception: Gradle task assembleDebug failed with exit code 1

Could not find kotlin-compiler-30.1.2.jar

FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:lintVitalAnalyzeRelease'.
Could not resolve all files for configuration ':app:detachedConfiguration2'.
Could not find kotlin-compiler-30.1.2.jar (com.android.tools.external.com-intellij:kotlin-compiler:30.1.2).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/kotlin-compiler/30.1.2/kotlin-compiler-30.1.2.jar
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 16s
Running Gradle task 'assembleRelease'... 17.7s
Gradle task assembleRelease failed with exit code 1

Could not load compiled classes for script 'C:\src\flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' from cache

how can i solve this error ?
FAILURE: Build failed with an exception.
Where:
Build file 'E:\00-flutter_project\crypto_predection\android\app\build.gradle' line: 26
What went wrong:
A problem occurred evaluating project ':app'.
Could not load compiled classes for script 'C:\src\flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' from cache.
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 2m 33s
Exception: Gradle task assembleDebug failed with exit code 1

when I added the firebase_dynamic_links plugin I got This error in flutter > File 'com.android.builder.files.ZipCentralDirectory#fa121b8'

the full error message
Execution failed for task ':app:mergeDebugNativeLibs'.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
File 'com.android.builder.files.ZipCentralDirectory#1e2d5e4f' was deleted, but previous version not found in cache
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 1m 5s
Exception: Gradle task assembleDebug failed with exit code 1