Error when version upgrade in pubspec.yaml - android

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

Related

I tried to run the App, But Gradle is throwing this error

`
FAILURE: Build failed with an exception.
Where:
Build file '/Users/theroushan/Documents/NextSchool/android/app/build.gradle' line: 32
What went wrong:
A problem occurred evaluating project ':app'.
No signature of method: build_4a37y44n4qcdao4l4d5njw5b5.android() is applicable for argument types: (build_4a37y44n4qcdao4l4d5njw5b5$_run_closure2) values: [build_4a37y44n4qcdao4l4d5njw5b5$_run_closure2#73288fd8]
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 1s
Exception: Gradle task assembleDebug failed with exit code 1`
I tried to run the app, but I am getting this error in flutter?

Flutter - No signature of method: build_ajdeszrvira2c4ut4defndizu.android() is applicable

my app work good on the emulator but now nothing, i have no idea what happend - need help please
"
Launching lib\main.dart on M2004J19C in debug mode...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
Where:
Build file 'C:\Users\comG1\Desktop\App002\sinai_app\android\app\build.gradle' line: 30
What went wrong:
A problem occurred evaluating project ':app'.
No signature of method: build_ajdeszrvira2c4ut4defndizu.android() is applicable for argument types: (build_ajdeszrvira2c4ut4defndizu$_run_closure2) values: [build_ajdeszrvira2c4ut4defndizu$_run_closure2#493a10fc]
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: Gradle task assembleDebug failed with exit code 1
"

A problem occurred configuring project ':background_locator'

While build the app get an error like
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':background_locator'.
> Could not load compiled classes for build file 'C:\flutter\.pub-cache\hosted\pub.dartlang.org\background_locator-1.6.12\android\build.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 23s
Exception: Gradle task assembleDebug failed with exit code 1
How to solve this issue

Execution failed for task ':app:compileFlutterBuildDebug' Issue , flutter.gradle' line: 1070

FAILURE: Build failed with an exception.
Where:
Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 780
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
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 3s
Finished with error: Gradle task assembleDebug failed with exit code 1
Delete your pubspec.lock, and press Pub Get in your pubspec.yaml, upgrade pub, upgrade package(--major-version--)
This should fix the problem.

gradle problem when i install flutter_webview packages

hey i'm trying to create a webview in my Flutter app but when i installing flutter_webview plugin i got this problems with gradle :
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.
com.android.build.api.transform.TransformException: Error while generating the main dex list.
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 3s
i had try with multi version in flutter_webview and the same problem

Categories

Resources