6. 전부 변경 후 flutter build apk --split-per-abi가 아닌 flutter build apk로 빌드
7. proguard는 그냥 안씁니다 오류가 너무 나요
/* // start of 코드난독화 및 사이즈 축소
minifyEnabled true
useProguard true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
// end of 코드난독화 및 사이즈 축소*/
참고사항
적다보니까 그냥 어미만 바꿔서 배포가이드로 올려도 되겠네요 😊 배포가이드를 적어야하긴 하지만, 미리 말씀드리자면 key.jks 파일과 key.properties파일은 공개하면 안돼서 따로 노션에 공유드릴예정입니다! .gitignore에도 추가했어요
C:\Users\[nickname]\capstone-2023-08\client>
제가 usb로 연결한 기기 이름은 SM M536S입니다.
flutter install
을 입력하면, 무수한 선택창이 뜨는데 본인의 기기명을 찾아서 번호를 선택해주시면 됩니다실제 존재하는 어플들 사이에서도 기죽지 않고 있는게 너무 뿌듯하네요 디자이너님 덕분입니다!!!! ios도 배포가 가능할텐데 제 환경이랑 다르기도 하고 구색은 갖췄으니 여기까지만 할게요 하하
수정내역
레퍼런스에서 수정한 목록입니다!
1. key.properties 파일이
android/app/
가 아니라android/
에 있어야 합니다2. key.properties 파일을 자꾸 못찾길래 이것도 바꿔주었습니다
변경전
변경후
3.
targetSdkVersion
과compileSdkVersion
을 33으로 맞춰주었습니다밑의 4번 오류를 해결하면서 바꾸게 되었습니다! 갤러리에서 사진 고를때 쓰는 패키지인 ImagePicker가 33 버전을 선호한다고 경고문구에 적혀있더라구요
4. android/build.gradle 파일에서 해당 부분을 바꿔주어야 합니다
recompile with -Xlint:deprecation라는 오류가 났었는데, Kotlin 버전이 안맞아서 생기는 문제라고 합니다
변경전
변경 후
5.
android/gradle/gradle-wrapper.properties
파일에서 해당 부분 변경아주 사소한 차이인데 이것도 고쳐주라고 경고 문구가 뜨더라구요.. 변경전
변경후
6. 전부 변경 후
flutter build apk --split-per-abi
가 아닌flutter build apk
로 빌드7. proguard는 그냥 안씁니다 오류가 너무 나요