skip to Main Content

I really need help.
I encounter this problem when I want to run the project.

No matter what I did, the problem was not solved.

I did

flutter clean

flutter pub get

but it still didn’t work

enter image description here

What should I do now?

I don’t have any idea

enter image description here

enter image description here

2

Answers


  1. go to terminal and run this code to get the detailed error

    flutter run -v
    

    then comment me the first error in red you get.

    Login or Signup to reply.
  2. I have the same error please see below:

    [   +1 ms] Resolve mutations for :app:compileDebugRenderscript (Thread[Execution worker Thread 3,5,main]) started.   
    [  +51 ms] FAILURE: Build failed with an exception.
    [  +58 ms] * What went wrong:
    [  +19 ms] Some problems were found with the configuration of task ':app:compileDebugRenderscript' (type
    'RenderscriptCompile').
    [   +1 ms]   - In plugin 'com.android.build.gradle.api.AndroidBasePlugin' type
    'com.android.build.gradle.tasks.RenderscriptCompile' method 'useAndroidX()' should not be annotated with: @Input.    
    [   +1 ms]     Reason: Input/Output annotations are ignored if they are placed on something else than a getter.      
    [   +2 ms]     Possible solutions:
    [   +1 ms]       1. Remove the annotations.
    [   +1 ms]       2. Rename the method.
    [  +28 ms]     Please refer to
    https://docs.gradle.org/7.6.1/userguide/validation_problems.html#ignored_annotations_on_method for more details aboutthis problem.
    [   +2 ms]   - In plugin 'com.android.build.gradle.api.AndroidBasePlugin' type
    'com.android.build.gradle.tasks.RenderscriptCompile' property 'ndkConfig' is missing an input or output annotation.  
    [   +2 ms]     Reason: A property without annotation isn't considered during up-to-date checking.
    [  +29 ms]     Possible solutions:
    [   +3 ms]       1. Add an input or output annotation.
    [   +1 ms]       2. Mark it as @Internal.
    [  +30 ms]     Please refer to https://docs.gradle.org/7.6.1/userguide/validation_problems.html#missing_annotation
    for more details about this problem.
    [   +2 ms] * Try:
    [   +1 ms] > Run with --debug option to get more log output.
    [  +26 ms] > Run with --scan to get full insights.
    [   +1 ms] * Exception is:
    [   +4 ms] org.gradle.internal.execution.WorkValidationException: Some problems were found with the configuration of 
    task ':app:compileDebugRenderscript' (type 'RenderscriptCompile').
    [  +41 ms]   - In plugin 'com.android.build.gradle.api.AndroidBasePlugin' type
    'com.android.build.gradle.tasks.RenderscriptCompile' method 'useAndroidX()' should not be annotated with: @Input.    
    [  +17 ms]     Reason: Input/Output annotations are ignored if they are placed on something else than a getter.
    [   +1 ms]     Possible solutions:
    [        ]       1. Remove the annotations.
    [        ]       2. Rename the method.
    [   +1 ms]     Please refer to
    https://docs.gradle.org/7.6.1/userguide/validation_problems.html#ignored_annotations_on_method for more details aboutthis problem.
    [   +1 ms]   - In plugin 'com.android.build.gradle.api.AndroidBasePlugin' type
    'com.android.build.gradle.tasks.RenderscriptCompile' property 'ndkConfig' is missing an input or output annotation.  
    [   +1 ms]     Reason: A property without annotation isn't considered during up-to-date checking.
    [   +6 ms]     Possible solutions:
    [   +1 ms]       1. Add an input or output annotation.
    [   +1 ms]       2. Mark it as @Internal.
    [   +1 ms]     Please refer to https://docs.gradle.org/7.6.1/userguide/validation_problems.html#missing_annotation   
    for more details about this problem.
    [  +13 ms]      at
    org.gradle.internal.execution.WorkValidationException$BuilderWithSummary.build(WorkValidationException.java:133)     
    [   +2 ms]      at
    org.gradle.internal.execution.WorkValidationException$BuilderWithSummary.get(WorkValidationException.java:115)       
    [   +1 ms]      at org.gradle.execution.plan.DefaultNodeValidator.reportErrors(DefaultNodeValidator.java:83)
    [   +1 ms]      at org.gradle.execution.plan.DefaultNodeValidator.hasValidationProblems(DefaultNodeValidator.java:45)[   +2 ms]      at org.gradle.execution.plan.ResolveMutationsNode.doResolveMutations(ResolveMutationsNode.java:107)  
    [   +3 ms]      at org.gradle.execution.plan.ResolveMutationsNode.access$000(ResolveMutationsNode.java:31)
    [   +1 ms]      at org.gradle.execution.plan.ResolveMutationsNode$1.run(ResolveMutationsNode.java:87)
    [   +1 ms]      at
    org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
    [   +1 ms]      at
    org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
    [   +6 ms]      at
    org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
    [   +2 ms]      at
    org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
    [   +1 ms]      at
    org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
    [   +2 ms]      at
    org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
    [   +1 ms]      at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
    [   +1 ms]      at
    org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68)
    [   +5 ms]      at org.gradle.execution.plan.ResolveMutationsNode.execute(ResolveMutationsNode.java:83)
    [   +1 ms]      at org.gradle.execution.plan.WorkNodeExecutor.execute(WorkNodeExecutor.java:27)
    [   +2 ms]      at
    org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:322)
    [   +2 ms]      at
    org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:309)
    [   +1 ms]      at
    org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:302)
    [   +1 ms]      at
    org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:288)
    [   +2 ms]      at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:462)[   +1 ms]      at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:379)    
    [  +10 ms]      at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
    [   +2 ms]      at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:49)
    [   +1 ms]      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    [   +1 ms]      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    [   +2 ms]      at java.base/java.lang.Thread.run(Thread.java:833)
    [   +7 ms] * Get more help at https://help.gradle.org
    [   +1 ms] BUILD FAILED in 47s
    [   +1 ms] Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
    [   +2 ms] You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come   
    from your own scripts or plugins.
    [   +2 ms] See https://docs.gradle.org/7.6.1/userguide/command_line_interface.html#sec:command_line_warnings
    [   +1 ms] 2 actionable tasks: 2 executed
    [   +1 ms] Watched directory hierarchies: []
    [ +522 ms] Running Gradle task 'assembleDebug'... (completed in 49.7s)
    [   +4 ms] Exception: Gradle task assembleDebug failed with exit code 1
    [   +7 ms] "flutter run" took 53,746ms.
    [   +9 ms] 
               #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
               #1      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:760:9)
               <asynchronous suspension>
               #2      FlutterCommand.run.<anonymous closure>
    (package:flutter_tools/src/runner/flutter_command.dart:1297:27)
               <asynchronous suspension>
               #3      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
               <asynchronous suspension>
               #4      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
               <asynchronous suspension>
               #5      FlutterCommandRunner.runCommand.<anonymous closure>
               (package:flutter_tools/src/runner/flutter_command_runner.dart:339:9)
               <asynchronous suspension>
               #6      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
               <asynchronous suspension>
               #7      FlutterCommandRunner.runCommand
    (package:flutter_tools/src/runner/flutter_command_runner.dart:285:5)
               <asynchronous suspension>
               #8      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:115:9)
               <asynchronous suspension>
               #9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
               <asynchronous suspension>
               #10     main (package:flutter_tools/executable.dart:90:3)
               <asynchronous suspension>
    
    
    [ +107 ms] ensureAnalyticsSent: 88ms
    [   +2 ms] Running 1 shutdown hook
    [   +9 ms] Shutdown hooks complete
    [   +3 ms] exiting with code 1
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search