Could not find kotlin-compiler-30.1.2.jar - flutter

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

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

A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction. Cannot find built manifest

I tried updating version of targetSdkVersion and compileSdkVersion it didn't work.
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processDebugResources'.
A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
Cannot find built manifest for SerializedForm(versionCode=1, versionName=1.0.0, variantOutputConfiguration=VariantOutputConfigurationImpl(isUniversal=false, filters=[]), baseName=debug, fullName=debug, outputFileName=app-debug.apk)
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 4m 37s
Exception: Gradle task assembleDebug failed with exit code 1

Error when running the app, firebase_auth_oauth_web not found?

Plugin project :firebase_auth_oauth_web not found. Please update settings.gradle.
FAILURE: Build failed with an exception.
What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
Could not find com.google.firebase:fir55554ebase-bom:26.4.0.
Required by:
project :app
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 12s
Exception: Gradle task assembleDebug failed with exit code 1

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

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