커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
앱 빌드에서 오류로 진행을 못하고 있습니다.
[왕초보] 플러터(Flutter)로 시작하는 앱개발 종합반
5주차
북마크
최*완
댓글
10
추천
0
조회수
24
조회수
24
답변 완료

* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.

* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.


안녕하세요?

flutter build appbundle에서 다음과 같은 오류가 나오면서 빌드 실패합니다.

혹시나 키 발급 시와 같지 않은 그래들 입력이 되었나 하여 키를 다시 발급받아서 해 봤는데도 안 됩니다. 이상한 점은 오류 메시지에 있는 키 절대경로에서 백슬래시가 다 빠진 채로 보여지는군요.

아래는 오류 메시지입니다. FAILURE: 줄 전까지는 정상적으로 진행되다가 오류가 나서 정지됩니다.

고맙습니다.


Changing current working directory to: E:\ws\flutter\flutter_memo_app


Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing it from 1645184 to 1424 bytes (99.9% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.


FAILURE: Build failed with an exception.


* What went wrong:

Execution failed for task ':app:validateSigningRelease'.

> Keystore file 'E:\ws\flutter\flutter_memo_app\android\app\E:wskeymemo_app_keyapp_key.jks' not found for signing config 'release'.


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

Running Gradle task 'bundleRelease'...               8.7s

Gradle task bundleRelease failed with exit code 1

PS E:\ws\flutter\flutter_memo_app\android> 


한참 후에 추가입니다.

혹시나 해서 C:\key\app_key.jks로도 해 보고, 다른 폴더로도 해 보다가, 위에 언급했듯이 백슬래시가 모두 빠진 것에 착안하여

오류 메시지에 나온 대로 app 폴더 아래에 app_key.jks를 두고 즉,

E:\ws\flutter\flutter_memo_app\android\app 안에 app_key.jks를 복사해 넣고,

key.properties 파일을 첫 줄을

storeFile=app_key.jks와 같이 파일명만 넣고 했더니

PS E:\ws\flutter\flutter_memo_app\android> flutter build appbundle

Changing current working directory to: E:\ws\flutter\flutter_memo_app


Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing it from 1645184 to 1424 bytes (99.9% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.

Running Gradle task 'bundleRelease'...               11.5s

√ Built build\app\outputs\bundle\release\app-release.aab (24.2MB)

PS E:\ws\flutter\flutter_memo_app\android> 

와 같이 11.5초만에 성공했습니다. 오늘도 이 문제 때문에 밤을 꼴딱 세웠는데 지금이라도 잠시 눈을 붙이고 앱 출시 연습을 계속 진행해 봐야겠습니다.


위 원인 확인 부탁 드리겠습니다. 고맙습니다.




취소
 공유
취소
댓글 0
댓글 알림
나의얼굴