[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!
셋팅하고 있는데 안돼고 있어요 ausus 인텔 코어 i7-7500u 2.70 GHZ, ram:16g, hdd 240Gb X 2 윈도우10에서 11로 업그레이드 했습니다. 버젼: 23H2 jflutter 최신,안드로이드 최신,dk 17,git,node 설치 flutter doctor 이상무 다음과 같이 에러발생 다음은 데스크탑에 설치 했는데 비슷하네요 하드 다 날리고 intel i5-10400 2.90GHZ RAM 16GB HDD 1.8TB 윈도우10에서 11로 업그레이드 했습니다. 버젼: 23H2 jflutter 최신,안드로이드 최신,dk 17,git,node 설치 flutter doctor 이상무 다음과 같이 에러발생 한글과,오피스를 설치 해서 그런지....? 설치가 이렇게 힘들어서야..ㅠㅠ 어떻게 하면 될까요.
Mac(M2) 에서 수업 듣고 있습니다. ios 에뮬 실행시키려하는 데, 아래 이미지와 같이 오류가 뜨고 에뮬이 실행되지 않습니다. 이것 저것 해보았는 데, 무엇이 문제인지 몰라서 해당 챕터에서 진도를 나가지 못하고 있습니다. *Android 에뮬은 실행됩니다. +터미널에서 flutter doctor 명령어 입력했을 때, 문제는 없는 것 처럼? 나옵니다.
[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!
그 전에는 이런 일이 없었는데 요번 프로젝트에서 이 에러가 떠서 진행하지 못하고 있습니다. 제가 시도 해본 것들 JDK21 설치 (환경 변수 설정까지) JDK17설치 (환경 변수 설정까지) flutter clean, flutter pub get API 34, 35 둘 다 실행, 다른 프로젝트에서는 변함없이 잘 됩니다. FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':webview_flutter_android:compileDebugJavaWithJavac'. > Could not resolve all files for configuration ':webview_flutter_android:androidJdkImage'. > Failed to transform core-for-system-modules.jar to match attributes {artifactType=_internal_android_jdk_image, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}. > Execution failed for JdkImageTransform: C:\Users\82106\AppData\Local\Android\sdk\platforms\android-34\core-for-system-modules.jar. > Error while executing process C:\Program Files\Android\Android Studio\jbr\bin\jlink.exe with arguments {--module-path C:\Users\82106\.gradle\caches\transforms-3\fb247f22548bfd545efa0cbc10d96775\transformed\output\temp\jmod --add-modules java.base --output C:\Users\82106\.gradle\caches\transforms-3\fb247f22548bfd545efa0cbc10d96775\transformed\output\jdkImage --disable-plugin system-modules} * 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 28s ┌─ Flutter Fix ────────────────────────────────────────────────────────────────────────────────────┐ │ [!] This is likely due to a known bug in Android Gradle Plugin (AGP) versions less than 8.2.1, │ │ when │ │ 1. setting a value for SourceCompatibility and │ │ 2. using Java 21 or above. │ │ To fix this error, please upgrade your AGP version to at least 8.2.1. The version of AGP that │ │ your project uses is likely defined in: │ │ C:\Users\82106\webview\android\settings.gradle, │ │ in the 'plugins' closure (by the number following "com.android.application"). │ │ Alternatively, if your project was created with an older version of the templates, it is likely │ │ in the buildscript.dependencies closure of the top-level build.gradle: │ │ C:\Users\82106\webview\android\build.gradle, │ │ as the number following "com.android.tools.build:gradle:". │ │ │ │ For more information, see: │ │ https://issuetracker.google.com/issues/294137077 │ │ https://github.com/flutter/flutter/issues/156304 │ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ Error: Gradle task assembleDebug failed with exit code 1
[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!
그 전에는 이런 일이 없었는데 요번 프로젝트에서 이 에러가 떠서 진행하지 못하고 있습니다. 제가 시도 해본 것들 JDK21 설치 (환경 변수 설정까지) JDK17설치 (환경 변수 설정까지) flutter clean, flutter pub get API 34, 35 둘 다 실행, 다른 프로젝트에서는 변함없이 잘 됩니다. FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':webview_flutter_android:compileDebugJavaWithJavac'. > Could not resolve all files for configuration ':webview_flutter_android:androidJdkImage'. > Failed to transform core-for-system-modules.jar to match attributes {artifactType=_internal_android_jdk_image, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}. > Execution failed for JdkImageTransform: C:\Users\82106\AppData\Local\Android\sdk\platforms\android-34\core-for-system-modules.jar. > Error while executing process C:\Program Files\Android\Android Studio\jbr\bin\jlink.exe with arguments {--module-path C:\Users\82106\.gradle\caches\transforms-3\fb247f22548bfd545efa0cbc10d96775\transformed\output\temp\jmod --add-modules java.base --output C:\Users\82106\.gradle\caches\transforms-3\fb247f22548bfd545efa0cbc10d96775\transformed\output\jdkImage --disable-plugin system-modules} * 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 28s ┌─ Flutter Fix ────────────────────────────────────────────────────────────────────────────────────┐ │ [!] This is likely due to a known bug in Android Gradle Plugin (AGP) versions less than 8.2.1, │ │ when │ │ 1. setting a value for SourceCompatibility and │ │ 2. using Java 21 or above. │ │ To fix this error, please upgrade your AGP version to at least 8.2.1. The version of AGP that │ │ your project uses is likely defined in: │ │ C:\Users\82106\webview\android\settings.gradle, │ │ in the 'plugins' closure (by the number following "com.android.application"). │ │ Alternatively, if your project was created with an older version of the templates, it is likely │ │ in the buildscript.dependencies closure of the top-level build.gradle: │ │ C:\Users\82106\webview\android\build.gradle, │ │ as the number following "com.android.tools.build:gradle:". │ │ │ │ For more information, see: │ │ https://issuetracker.google.com/issues/294137077 │ │ https://github.com/flutter/flutter/issues/156304 │ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ Error: Gradle task assembleDebug failed with exit code 1
[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!
코드팩토리 디스코드에 질문하면 더욱 빠르게 질문을 받아 볼 수 있습니다! [코드팩토리 디스코드] https://bit.ly/3HzRzUM - 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.
riverpod이 적용된 프로젝트에서 SettingBottomSheet의 언어변경 Tile위젯을 클릭하여 언어 변경시 bottomSheet는 리빌드 되지않는 현상이 있습니다! 해당 위젯에서 langServiceProvider를 watch하지 않고 notifier를 watch해서 생기는 문제로 생각되는데 맞는지 궁금합니다. 해결방법으로 subTitle: ref.watch(langServiceProvider).languageCode == 'ko' ? S.current.ko : S.current.en, onPressed: ref.read(langServiceProvider.notifier).toogleLang, 이런식으로 처리 했는데 이것도 괜찮은 방법인지 궁금합니다. 또한 bottomSheet가 아닌 부분은 왜 리빌드가 되는지도 궁금합니다!
안녕하세요 강사님 현재 트윗 나열해보기 (FireStore + ListView)를 따라하고 있습니다. firebase의 firestore의 post를 생성하니 post와 users가 생성되는데 현재 users는 삭제가 불가능하고, users를 삭제하면 post만 남는 현상이 발생됩니다. 특히 firestore settings에 들어가보면 users collection에 모든 설정 값이 빈칸으로 나와있으며, 이것때문에 오류가 발생하는 것 같습니다. 웹/데스크톱 설치용 앱 둘다 모두 동일한 증상이 나오고 있습니다. 혹시 제가 직접 수동으로 firestore를 생성하면 이 문제가 해별될까요?
코드팩토리 디스코드에 질문하면 더욱 빠르게 질문을 받아 볼 수 있습니다! [코드팩토리 디스코드] https://bit.ly/3HzRzUM - 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 안녕하세요! 강의 잘 듣고 있습니다 ㅎㅎ 다름이 아니라 Set에 대해서 추가적으로 공부하고 있는데 Set은 순서가 없는 타입이라 인덱스로 접근이 불가능하다고 알고 있습니다 근데 아래 코드를 보면 출처 https://aidenarea.tistory.com/entry/Dart-Set-%EC%B4%9D%EC%A0%95%EB%A6%AC Set set1 = {'value1', 'value2', 'value3', 'value4'}; print(set1.elementAt(0)); // value1 인덱스를 통해 값을 가져오는 방법을 소개하고 있습니다 이건 어떻게 가능한 건지 알려주시면 감사하겠습니다!
[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!
왜 저는 위젯들에서 트리처럼 코드에 구분이 되지 않을까요 ?... [코드팩토리 디스코드] https://bit.ly/3HzRzUM - 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.
[Bloc 응용] 실전 앱 만들기 (책 리뷰 앱) : SNS 로그인, Firebase 적용, Bloc 상태 관리, GoRouter
https://openapi.naver.com/v1/search/book.json DioException [connection error]: The connection errored: The XMLHttpRequest onError callback was called. This typically indicates an error on the network layer. This indicates an error which most likely cannot be solved by the library. 이런에러가 뜨는데 flutter run -d chrome --web-browser-flag --disable-web-security cors 우회하셔야 합니다 혹은 .vscode 폴더안에 launch.json 을 생성하셔야하는데 vscode 기준으로 왼쪽에 디버깅 들어가셔서 아래처럼 생성하시면됩니다 { // IntelliSense를 사용하여 가능한 특성에 대해 알아보세요. // 기존 특성에 대한 설명을 보려면 가리킵니다. // 자세한 내용을 보려면 https://go.microsoft.com/fwlink/?linkid=830387을(를) 방문하세요. "version": "0.2.0", "configurations": [ { "name": "bookreview", "request": "launch", "type": "dart", "args": [ "--web-browser-flag=--disable-web-security" ] } ] } 다들 아시겠지만 혹시나해서 남겨봅니다
[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!
Isar사용 중 아래와 같은 오류가 발생합니다. 어떻게 해결할 수 있을까요? 알려주시면 감사하겠습니다. Launching lib\main.dart on sdk gphone64 x86 64 in debug mode... Running Gradle task 'assembleDebug'... FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':isar_flutter_libs'. > Could not create an instance of type com.android.build .api.variant.impl.LibraryVariantBuilderImpl. > Namespace not specified. Specify a namespace in the module's build file. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace. If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant. * 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 912ms Error: Gradle task assembleDebug failed with exit code 1
강의에서 쓰이는 문서는 어디서 받아볼 수 있나요? 강의해서 쓰이는 파일이 아래와 같은 이름으로 되어 있는 것 같은데요~ 05_BASIC_WIDGETS.md - 강의 영상에 대한 질문이 있으시면, 주말/휴일 제외, 2~3일 내에 답변드립니다 - 강의 답변이 도움이 안되셨다면, dream@fun-coding.org 로 메일 주시면 재검토하겠습니다. - 괜찮으시면 질문전에 챗GPT 와 구글 검색을 꼭 활용해보세요~
강사님 dart에서 비동기를 동기로 다루는 법 강의 7분 20초 쯤에 개발 시 비동기 방식으로 작동하는 상황들로 예시를 "네트워크 요청, 파일읽기쓰기, 데이터베이스 쓰기"를 들어주셨는데 이렇게 시간이 걸리는 일은 async / await 을 써서 동기 방식으로 이용하란 말씀이신거죠?
[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!
강의내용으로 순서따라서 진행했습니다. 참고로 새로 윈도우설치했습니다 dart.exe의 작동이 중지되었습니다 라고 에러가 뜨네요 다시 실행하면 다음과 같이 나와요. ( flutter doctor --android-licenses) 이후 flutter doctor에서 버그라 생각하고 실행시켰으나 에러발생했습니다. 여전히 flutter doctor --android-licenses을 하면 dart.exe의 작동이 중지되었습니다 라고 뜨네요.
플러터플로우 관련 질문글을 자유롭게 작성해 주세요! 문제가 발생하는 환경을 자세히 적어줄수록 좋아요 위의 사진을 보시면 자꾸 저런식으로 경고가 뜨는데 어떻게해결해야할지 모르겠내요 진도가 더이상 나갈 수가 업습니다 ㅜ run버튼을 누르면 저 오류를 해결하지않으면 run이 안된다고 하내요
23강의 5:10에서 usecase,repository 는 싱글톤으로 만들고, viewmodel은 팩토리로 만드는 것이 일반적이라고 하셨습니다. 싱글톤으로 만드는 것은 이해했는데, 팩토리를 사용하는 이유는 무엇일까요? viewModel 안의 state 의 내용이 UI 의 데이터로 채워지고, viewModel 안의 state 는 가변적이니 싱글턴으로 하는게 맞지 않을까라는 생각이 갑자기 들어서요. viewModel을 다시 만드는 것이 어떤 경우가 있는지 궁금합니다. 강의항상 재밌게 듣고 있습니다. 감사합니다.
코드팩토리 디스코드에 질문하면 더욱 빠르게 질문을 받아 볼 수 있습니다! [코드팩토리 디스코드] https://bit.ly/3HzRzUM - 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. void 설명 부분에서 addNumbers 에 int선언하기전 void가 사실 생략되어있다고 하셨는데 그럼 두번째 사진에서의 addNumbers 함수는 실행되어야하는거 아닌가 의문이 듭니다~
강의 항상 잘 듣고 있습니다. 질문이 하나 생겨서 여쭤봅니다. 20강 30~33분 정도에서 domain 폴더에 data_source 폴더를 만드시는 이유를 다시 설명해주실 수 있을까요? 아래는 제가 생각하는 부분입니다. data/ 의 data/data_source/ 는 data/repository/ 에서 사용하는 부분임. domain/ 은 사실상 data/data_source/ 를 직접 접근하지 않고 domain/repository 를 활용하는 domain/use_case 를 통해 접근함. 이렇게 생각이 들다보니, "domain 에서 data_source 의 인터페이스를 정의하는 것이 맞는건가?" 생각이 듭니다. 감사합니다.