I am getting this error while I am running app (flutter run)
event sent after app closed: {id: 0, progressId: null, message: Running "flutter pub get" in de_p_city_guide...}
event sent after app closed: {id: 0, progressId: null, finished: true}
Launching lib\main.dart on Nokia 5 3 in debug mode...
Running Gradle task 'assembleDebug'...
Plugin project :firebase_core_web not found. Please update settings.gradle.
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
> Path 'D:\Lets_Go\de_p_city_guide\build\screen\intermediates\compiled_local_resources\debug\out' is not a readable directory.
* 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 53s
Exception: Gradle task assembleDebug failed with exit code 1
Solution I tried but didn't work :
flutter clean
File > Invalidate Caches/Restart...
Adding (org.gradle.jvmargs=-Xmx4608m) to gradle.properties
Adding to android/app/build.gradle:
android {
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false
}
I removed my cash data from .../User/.gradle/cashes
I deleted the .gradle and rebuilding the project
Any Help Please here
Error in
Plugin project :firebase_core_web not found. Please update settings.gradle.
Solution here.
Related
This is the output that I get from my run log:
Launching lib\main.dart on SM G965U in debug mode...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:packageDebug'.
> A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
> java.lang.OutOfMemoryError (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 25s
Exception: Gradle task assembleDebug failed with exit code 1
Can someone help me understand what is going on?
Also, surprisingly, running the same code on an emulator doesn't have any issues at all and builds fine.
Let me know If I should share any specific files to help answer my question!
I figured it out.
The gradle I was using was unsupported. I downgraded my gradle to 3.5.0 and it worked!!
Whenever I run it it get stuck in android. This happened to me locally and I solve it doing flutter clean, which I don't know how to do in codemagic. The problem is that is nos building, heres the log.
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> java.net.URISyntaxException: Illegal character in opaque part at index 2: C:\\Users\\thech\\Downloads\\nueva_temporada-20210514T040146Z-001\\nueva_temporada\\build\\app\\intermediates\\flutter\\debug\\flutter_assets\\AssetManifest.json
* 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 30s
Running Gradle task 'assembleDebug'... 31.3s
Gradle task assembleDebug failed with exit code 1
Build failed :|
Failed to build for Android
any chance you have hardcoded path in your build.gradle or somewhere else? C:\\Users is not a valid path on Codemagic builder machines because it uses macOS or Linux
I am new to flutter and I am facing this issue that after cleaning the build (flutter clean) my code stopped working and it is stuck in build failed..
I tried deleting the flutter SDK and doing that process again but still I am getting the same error messages.
I was trying to fix the Firebase login and replaced the 'google-services.json' file and then after these commands flutter [clean build, pub get and pub upgrade] the code is stuck in build.
(this is the error message and the screenshot)
Running Gradle task 'assembleDebug'...
../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_widget_from_html-0.5.1+5/lib/src/widget_factory.dart:60:57: Error: Type 'TableMetadata' not found.
Widget buildTable(BuildMetadata m, TextStyleHtml tsh, TableMetadata data) =>
^^^^^^^^^^^^^
../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_widget_from_html-0.5.1+5/lib/src/internal/layout_grid.dart:7:24: Error: Type 'TableMetadata' not found.
TextStyleHtml tsh, TableMetadata data) {
^^^^^^^^^^^^^
../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_widget_from_html-0.5.1+5/lib/src/widget_factory.dart:60:57: Error: 'TableMetadata' isn't a type.
Widget buildTable(BuildMetadata m, TextStyleHtml tsh, TableMetadata data) =>
^^^^^^^^^^^^^
../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_widget_from_html-0.5.1+5/lib/src/internal/layout_grid.dart:7:24: Error: 'TableMetadata' isn't a type.
TextStyleHtml tsh, TableMetadata data) {
^^^^^^^^^^^^^
FAILURE: Build failed with an exception.
* Where:
Script 'D:\Flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 904
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'D:\Flutter\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 6m 10s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 376.2s (!)
Exception: Gradle task assembleDebug failed with exit code 1
I tried to search for this build failed issue but I can't get to fix it.
In your app's pubspec.yaml file look for this line: flutter_widget_from_html and use the version ^ 0.5.1 + 3
Ex: flutter_widget_from_html: ^0.5.1+3
Then click on pub upgrade and run your app
"The easiest fix is to run flutter pub upgrade to make sure both flutter_widget_from_html and flutter_widget_from_html_core is updated together."
Before upgrading pub, you should constrain the newest package version in the pubspec.yaml as flutter_widget_from_html: ^0.5.2
For credit and more info see here
At first when I installed and ran the Android Studio the app ran perfectly, then after two days for some reason this is happening. Please help me fix this. Thanks
Launching lib\main.dart on GM1910 in debug mode...
Running Gradle task 'assembleDebug'...
Not resetting hidden file - C:\Users\zahin\AndroidStudioProjects\project1\build\app\intermediates\flutter\debug\flutter_assets\assets\ss\Thumbs.db
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:signingConfigWriterDebug'.
> java.nio.file.AccessDeniedException: C:\Users\zahin\AndroidStudioProjects\project1\build\app\intermediates\signing_config\debug\out\signing-config.json
* 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 4s
Exception: Gradle task assembleDebug failed with exit code 1
Use flutter clean or remove the build folder on your project root then try again.
i have a problem with the compilation of flutter
i have already try to debug without success
Resolving dependencies... 4,5s
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:packageDebug'.
Failed to generate v1 signature
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 10s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 11,3s
Gradle task assembleDebug failed with exit code 1
I think is a problem from gradle but i don't know how to solve that
X Android SDK file not found: adb.
X Flutter plugin not installed.
X Dart plugin not installed.
You need to install Dart and Flutter :
Android Studio:Go to Tools>SDK Manager>Plugins
VS Code :