how can i solve flutter path provider debug error - android

`FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':path_provider:parseDebugLibraryResources'.
Could not resolve all files for configuration ':path_provider:androidApis'.
Failed to transform file 'android.jar' to match attributes {artifactType=android-platform-attr, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}
> Execution failed for PlatformAttrTransform: C:\Users\g\AppData\Local\Android\sdk\platforms\android-28\android.jar.
> C:\Users\g\AppData\Local\Android\sdk\platforms\android-28\android.jar (The system cannot find the file specified)
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 38s
Exception: Gradle task assembleDebug failed with exit code 1`
how can i solve flutter debug error "path_provider parse Debug Library Resources". i upgraded everything and included the "path_provider" dependency. tell me how i can solve this problem.

Related

Target aot_android_asset_bundle failed: Exception: Failed to bundle asset files

I have modified the pubspec.yamal with https://stackoverflow.com/a/75254540/20101165 to solve the "ModalBottomSheetRoute' is imported from both 'package:flutter/src/material/bottom_sheet.dart' and package:modal_bottom_sheet" issue, after modifying the file, I tried to build the apk, but the response was an error as follows :
Error detected in pubspec.yaml:
No file or variants found for asset: packages/html_editor_enhanced/summernote.html.
This asset was included from package html_editor_enhanced.
Target aot_android_asset_bundle failed: Exception: Failed to bundle asset files.
FAILURE: Build failed with an exception.
Where:
Script 'E:\Program Files\Android\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1151
What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.
Process 'command 'E:\Program Files\Android\flutter\bin\flutter.bat'' finished with non-zero exit value 1
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 14s
Running Gradle task 'assembleRelease'... 75.0s
Gradle task assembleRelease failed with exit code 1
anyone can help me to solve the issue ?

Could not resolve all files for configuration ':app:androidJdkImage in flutter app

Hello trying debuging app in my real device when i try run code i am getting this error in fluter
Launching lib/main.dart on RMX2020 in debug mode...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Could not resolve all files for configuration ':app:androidJdkImage'.
> Failed to transform core-for-system-modules.jar to match attributes {artifactType=_internal_android_jdk_image, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
> Execution failed for JdkImageTransform: /Users/apple/Library/Android/sdk/platforms/android-31/core-for-system-modules.jar.
> jlink executable /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/jlink 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 15s
Exception: Gradle task assembleDebug failed with exit code 1

BUILD FAILED in Flutter Project

Launching lib\main.dart on Mi A1 in debug mode...
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.tasks.Workers$ActionFacade
Android resource linking failed
C:\Users\anand.gradle\caches\transforms-2\files-2.1\9d2250f2160023e86dcf90b2c8c1bc31\core-1.7.0-beta01\res\values\values.xml:105:5-114:25: AAPT: error: resource android:attr/lStar not found.
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 57s
The build failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetifier to solve the incompatibility.
Building plugin admob_flutter...
√ Built build\app\outputs\repo.
Building plugin agora_rtc_engine...
FAILURE: Build failed with an exception.
Where:
Build file 'C:\src\flutter.pub-cache\hosted\pub.dartlang.org\agora_rtc_engine-4.0.7\android\build.gradle' line: 29
What went wrong:
A problem occurred evaluating root project 'agora_rtc_engine'.
Plugin with id 'com.android.library' not found.
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 2s
Exception: The plugin agora_rtc_engine could not be built due to the issue above.
Exited (sigterm)

Build gradle firebase error for flutter/dart

apparently i faced this problem when updating the firebase package version in pubspec yaml and I've looked up to similar problems and referred to the suggestions online but to no avail. Can anyone help with this?
FAILURE: Build failed with an exception.
Where:
Script 'C:\Users\User\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 362
What went wrong:
A problem occurred configuring project ':firebase_auth_web'.
Could not find method implementation() for arguments [project ':firebase_core'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
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 2s
Finished with error: Gradle task assembleDebug failed with exit code 1

Error when version upgrade in pubspec.yaml

Flutter,android
I can't understand.
Error has occured, when I upgrading version in 'pubspec.yaml'
version: 1.0.1+2 was no problem. build done!
but, 1.0.2+3, 1.0.3+4, .. ERROR!!!! build failed!!
even though 1.0.0+1.. error too..
What should I do?
no problem
error screenshot
error info is
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> java.lang.NullPointerException (no error message)
* 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 13s
Finished with error: Gradle task assembleDebug failed with exit code 1

Categories

Resources