❯ flutter build appbundle

💪 Building with sound null safety 💪

Removed unused resources: Binary resource data reduced from 76KB to 62KB: Removed 18%

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:signReleaseBundle'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Failed to read key key from store "/.../android/keystore/key.jks": Integrity check failed: java.security.NoSuchAlgorithmException: Algorithm HmacPBESHA256 not available

앱 새로 만들어서 빌드를 하려고 했는데 이렇게 나옵니다

 

 

HmacPBESHA256 not available. · Issue #5871 · flutter/website

Page URL: https://flutter.dev/docs/deployment/android.html Page source: https://github.com/flutter/website/tree/master/src/docs/deployment/android.md Found a typo? You can fix it yourself by going ...

github.com

이슈도 있네요. 해결 방법은 두가지가 있는 것 같습니다

1. 자바 버전을 11을 쓴다 (저는 17 사용중)

2. keystore 만들 때 -storetype JKS를 추가한다

keytool -genkey -v -keystore ~/upload-keystore.jks -keyalg RSA \
  -keysize 2048 -validity 10000 -alias upload -storetype JKS

이런식으로 keytool로 keystore 만들 때 맨 뒤에 붙여주면 되는 것 같습니다

전 어차피 키를 새로 만들어도 돼서 2번으로 진행했습니다

 

빌드가 잘 되네요