inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

묻고 답해요

173만명의 커뮤니티!! 함께 토론해봐요.

안드로이드 스튜디오 Emulator 에러

미해결

현재 2주간 해결이 되지 않아 시작조차 못하고 있어 질문드립니다ㅠㅠ 에러명 : "Emulator: Pixel 2 API 30 - Emulator terminated with exit code -1073741515" 아래는 제가 이때까지 시도했던 조치 방안들 입니다.. 조치 방안 Path 설정 (사용자명은 블러처리 되어있으나 영문입니다.) - Sdk, avd, flutter Path 설정 - 변수 3가지 추가(구글링 중 해당 내용이 있어 추가해보았습니다..) SDK Tools 설치 - CPU가 AMD Ryzen 5 7500F로 SDK Tools에서 "Android Emulator Hypervisor Driver for AMD Processors (installer)"를 찾아봤으나 없음 Hypervisor 체크박스 - BIOS에서 SVM 모드 활성화(Enabled) - 아래 Windows 기능 켜기/끄기 → Windows 하이퍼바이저 플랫폼, 가상머신 플랫폼(구글링 시, 체크박스 on/off에 대한 말이 달라 체크박스 on/off 둘다 시도 해봄) 이 외에도 Android Studio 재설치, Flutter doctor 확인 후 필요 프로그램 재설치, 환경변수 Path 재설정.. 심지어 포맷까지 하고 모든 파일을 재설치 해보았음에도 해결되지 않고 있습니다.. 혹시 해결방법을 알고 계시다면 조언 부탁드리겠습니다ㅠㅠ

  • 안드로이드
  • android
  • androidstudio
  • emulator
  • 에러
  • error
  • flutter
  • avd
  • sdk
  • hypervisor
이영철 댓글 1 좋아요 0 조회수 333

안드로이드 스튜디오 오류 원인을 모르겠습니다.

해결됨

안드로이드 스튜디오에서 이렇게 upsideDownCake를 선택해서 virtual Device를 만든 후에 실행시키면 아래와 같이 실행 후 아무런 반응이 없는 화면이 나옵니다. 하지만 그냥 API 35를 선택하고 virtual Device를 만들면 이렇게 잘 실행됩니다. 이것 때문에 며칠 고민하다가 결국 해결이 안 돼서 질문 글을 올립니다ㅜㅜ 도와주세요

  • androidstudio
  • 화면
프랑 댓글 1 좋아요 0 조회수 433

플러터 StreamProvider 중지에 대해 질문있습니다.

해결됨

버튼 클릭시 trackingOff()를 호출해서 중지시킬려고 해도 StreamProvider가 중지가 되지않아서 그러는데 StreamProvider는 중지 시킬 수 없나여? class LocationUtil { late UserLocation userLocation; late Position _currentPosition; late LocationPermission checkPermission; StreamSubscription<Position>? positionStream; Geolocator geolocator = Geolocator(); StreamController<UserLocation> _positionController = StreamController<UserLocation>(); Stream<UserLocation> get locationStream => _positionController.stream; final LocationSettings locationSettings = LocationSettings(accuracy: LocationAccuracy.high); // 추적 버튼 클릭시에만 현재 위치 주기적으로 업데이트 LocationUtil() { // 사용자의 현재 위치 계속 업데이트해주기 positionStream = Geolocator.getPositionStream(locationSettings: locationSettings) .listen((location) { _positionController .add(UserLocation(location.latitude, location.longitude)); }); } Future<UserLocation> getCurrentLocation() async { try { final isLocationEnabled = await Geolocator.isLocationServiceEnabled(); checkPermission = await Geolocator.checkPermission(); log("${isLocationEnabled} isLocationEnabled 확인"); // 권한이 없을때 if (!isLocationEnabled) { log("${checkPermission} checkPermission 확인"); // 권한 설정 확인 if (checkPermission == LocationPermission.denied || checkPermission == LocationPermission.deniedForever) { checkPermission = await Geolocator.requestPermission(); } // 한번더 권한 취소햇으면 if (checkPermission == LocationPermission.denied || checkPermission == LocationPermission.deniedForever) { throw Exception("denied'"); } } else if (isLocationEnabled && (checkPermission == LocationPermission.always || checkPermission == LocationPermission.whileInUse)) { _currentPosition = await Geolocator.getCurrentPosition( desiredAccuracy: LocationAccuracy.high); userLocation = UserLocation(_currentPosition.latitude, _currentPosition.longitude); } } catch (e) { log("${e} 경복궁 보여줍시다."); userLocation = UserLocation(37.579887, 126.976870); } log("${userLocation.latitude},${userLocation.longitude} 현재 위치 위도 경도"); return userLocation; } void closePosition() { if (positionStream != null) { log("종료입니다"); positionStream!.cancel(); _positionController.close(); positionStream = null; } else {} } void trackingOn(){ positionStream!.resume(); _positionController.onResume; } void trackingOff(){ log("off입니다."); positionStream!.pause(); _positionController.onPause; log("${positionStream!.isPaused}"); } } StreamProvider<UserLocation>( initialData: Provider.of<LocationNotifier>(context).userLocation, create: (context) => LocationUtil().locationStream, child: Consumer<LocationNotifier>( builder: (context, locationNotifier, _) { CameraPosition initialCameraPosition = CameraPosition( target: LatLng(Provider.of<UserLocation>(context).latitude, Provider.of<UserLocation>(context).longitude), zoom: 18); log("반복하는지 테스트입니다!!!!"); animatedViewofMap( lat: Provider.of<UserLocation>(context).latitude, lng: Provider.of<UserLocation>(context).longitude, zoom: null); return Stack(children: [ GoogleMap( initialCameraPosition: initialCameraPosition, myLocationEnabled: true, mapToolbarEnabled: true, myLocationButtonEnabled: true, mapType: MapType.normal, onMapCreated: (GoogleMapController controller) { _controller.complete(controller); }, markers: markerList, ), ]); }), )

  • 플러터
  • androidstudio
정충효 댓글 1 좋아요 0 조회수 390

안드로이드 스튜디오 자동완성 관련해서 질문이 있습니다.

미해결

[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!

안드로이드 스튜디오를 순서대로 깔았는데 자동완성이 제대로 시행되지 않고 있습니다. Control+SpaceBar를 눌러야만 자동완성이 뜨고 있어요,, 그냥 입력만 해도 자동완성을 띄우고싶은데 방법이 없을까요?

  • flutter
  • 클론코딩
  • 자동완성
  • androidstudio
규현김 댓글 1 좋아요 0 조회수 590

dart reformat 하는 법

해결됨

[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!

안녕하세요! 강의 잘 듣고 있습니다. 강의 진행중 궁금한 것이 있는데요, Android Studio의 Settings - Keymap - Reformat Code with 'dart format'을 단축키 지정해서 코드 리포맷을 하고 있는데 코드 팩토리님이 하시는 것과 다른 방식의 스타일로 리포맷이 됩니다.. 어떻게 설정할 수 있나요? 예를 들어 아래와 같이 작성된 코드를 void main() { runApp( MaterialApp( home: HomeScreen(), ) ); } 단축키로 리포맷하면 아래와 같이 됩니다. void main() { runApp(MaterialApp( home: HomeScreen(), )); } dart 언어는 저렇게 Code Style에서 수정도 안되네요..

  • dart
  • reformat
  • Flutter
  • androidstudio
  • 클론코딩
­고병욱 댓글 1 좋아요 0 조회수 946

Android Studio에 Syntax가 갑자기 표시가 안됩니다.

해결됨

[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!

안녕하세요 선생님, syntax error 관련해서 질문 드립니다. 보통 파일 생성할 때 .dart를 안붙이면 이후에 .dart를 붙이더라도 syntax가 표시안되곤 했는데요. 이번엔 잘 표시되던 syntax가 갑자기 안보이기 시작했고 해당 파일 이외의 파일에선 syntax가 잘 표시 됩니다.. 혹시 해결 방법이 있을까요? 일단 이런게 한 두번도 아니고 그래서 Visual Code로 옮기긴 했는데 환경이 너무 쾌적합니다. 가볍고 Extension들도 너무 유용하구요. 혹시 강사님께서 Android Studio를 선택하신 결정적인 VSCode의 단점같은게 있을까요???

  • androidstudio
  • syntax
  • 클론코딩
  • Flutter
  • error
  • syntaxerror
백종인 댓글 2 좋아요 0 조회수 843

인기 태그

인프런 TOP Writers

주간 인기글