HelpDesk

HelpDesk Support System

DTNews - Flutter News App ( Web - Android - iOS ) with Admin panel

Q:

flutter code error

Closed public

Flutter code has too many errors, not building APK & Web Build has errors

All Replies

Viewing 1 to 4 of total 10 topics

hello when you solve my problem

wasting many days on your code result



PS E:\Project\RightPost> flutter build apk --release

Downloading android-arm-profile/windows-x64 tools...               993ms

Downloading android-arm-release/windows-x64 tools...               501ms

Downloading android-arm64-profile/windows-x64 tools...           1,109ms

Downloading android-arm64-release/windows-x64 tools...             496ms

Downloading android-x64-profile/windows-x64 tools...               693ms

Downloading android-x64-release/windows-x64 tools...               488ms

Resolving dependencies... (7.6s)

Downloading packages... (3.8s)

  characters 1.4.0 (1.4.1 available)

  flutter_hooks 0.20.5 (0.21.3+1 available)                                                                                                                                         

! http 1.5.0 (overridden)                                                                                                                                                           

! intl 0.20.2 (overridden)                                                                                                                                                          

  js 0.6.7 (discontinued)                                                                                                                                                           

  material_color_utilities 0.11.1 (0.13.0 available)                                                                                                                                

  meta 1.16.0 (1.17.0 available)                                                                                                                                                    

  razorpay_web 2.0.2 (3.0.0 available)                                                                                                                                              

  test_api 0.7.6 (0.7.7 available)                                                                                                                                                  

! webview_flutter_android 3.16.9 (overridden) (4.10.1 available)                                                                                                                    

Got dependencies!

1 package is discontinued.

8 packages have newer versions incompatible with dependency constraints.

Try `flutter pub outdated` for more information.

e: file:///C:/flutter/packages/flutter_tools/gradle/src/main/kotlin/FlutterPlugin.kt:758:21 Unresolved reference: filePermissions                                                   

e: file:///C:/flutter/packages/flutter_tools/gradle/src/main/kotlin/FlutterPlugin.kt:759:25 Unresolved reference: user

e: file:///C:/flutter/packages/flutter_tools/gradle/src/main/kotlin/FlutterPlugin.kt:760:29 Unresolved reference: read

e: file:///C:/flutter/packages/flutter_tools/gradle/src/main/kotlin/FlutterPlugin.kt:761:29 Unresolved reference: write


FAILURE: Build failed with an exception.


* What went wrong:

Execution failed for task ':gradle:compileKotlin'.

> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction

   > Compilation error. See log for more details                                                                                                                                    


* 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 29s

Running Gradle task 'assembleRelease'...                           30.8s

Gradle task assembleRelease failed with exit code 1

error for getting 

Get SHA1 & SHA256 Keys

PS E:\Project\RightPost> cd android

PS E:\Project\RightPost\android> ./gradlew signingReport


> Configure project :gradle

WARNING: Unsupported Kotlin plugin version.

The `embedded-kotlin` and `kotlin-dsl` plugins rely on features of Kotlin `1.8.20` that might work differently than in the requested version `1.9.20`.


> Task :gradle:compileKotlin FAILED

e: file:///C:/flutter/packages/flutter_tools/gradle/src/main/kotlin/FlutterPlugin.kt:758:21 Unresolved reference: filePermissions

e: file:///C:/flutter/packages/flutter_tools/gradle/src/main/kotlin/FlutterPlugin.kt:759:25 Unresolved reference: user

e: file:///C:/flutter/packages/flutter_tools/gradle/src/main/kotlin/FlutterPlugin.kt:760:29 Unresolved reference: read

e: file:///C:/flutter/packages/flutter_tools/gradle/src/main/kotlin/FlutterPlugin.kt:761:29 Unresolved reference: write


FAILURE: Build failed with an exception.


* What went wrong:

Execution failed for task ':gradle:compileKotlin'.

> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction

   > Compilation error. See log for more details


* 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 17s

4 actionable tasks: 2 executed, 2 up-to-date

which flutter version are you used ?

use flutter 3.27.2 version..


flutter --version 

run this command for check version

Regards,
Mr. Chirag

Viewing 1 to 4 of total 10 topics

Support is Online

Office hours

Monday - Friday
10:00 AM - 06:00 PM
IST (GMT +5:30)

  • Office time

    00:00:00 AM

  • Your time

    00:00:0 AM

Explore Our Support Documentation

Whether you're troubleshooting an issue or looking for step-by-step guidance, our resources are designed to empower you with the knowledge you need