Search code examples
flutterdartvisual-studio-codeapkflutter-android

Build APK stuck at Task :app:checkReleaseAarMetadata


i am new in flutter.

When i run:

flutter apk build -v

it always stuck at

[+29946 ms] > Task :app:checkReleaseAarMetadata

I left it for almost an hour and nothing, same happen when i run it on release or debug on my own device via usb debugging, but run perfectly on emulator on debug mode

any help would be appreciated, thanks


Solution

  • Thanks, I found the solution.

    In the end tried to clean install Android Studio including sdk, gradle, etc by deleting android studio related stuff on %APPDATA%, %USERPROFILE%, %LOCALAPPDATA%.

    After that i build the apk again from vscode console and it work.

    I think the error occurred because of missing stuff in gradle or error during sdk installation.