skip to Main Content

Currently, I can successfully compile and build an APK for my Flutter application without encountering any issues. However, as soon as I include the ‘permission_handler’ package, I am unable to do so. I have tried using multiple versions of the ‘permission_handler’ package, but the problem persists. The error message I receive is as follows:

error: warnings found and -error specified

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task
':permission_handler_android:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for 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.

BUILD FAILED in 7s

2

Answers


  1. Chosen as BEST ANSWER

    Update : I don't know how and why, but i just changed the java's version in my comuter from 20 to 11 and it's works.


  2. try adding permission on androidmanifest.xml

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search