5 글 보임 - 1 에서 5 까지 (총 5 중에서)
-
글쓴이글
-
2022년 10월 5일 17:48 #49284
산딸기참가자data =[]; (3step 했음) getData() async { var result = await firestore.collection('posts').get();
data= result.docs; } .....중략... return Column( children: [ widget.data[i]['image'], Container( constraints: BoxConstraints(maxWidth: 600), padding: EdgeInsets.all(20), width: double.infinity, child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Text('좋아요${widget.data[i]['likes']}'), Text(widget.data[i]['date']), Text(widget.data[i]['content']), ], 파이어 베이스에 새 데이터 넣어서 빈 데이터는 아니에요.... 근데 에러 뜨면서 안됩니다. 문법적인 오류인듯 한데 뭐가 문제일까요,,
2022년 10월 5일 18:43 #49300
산딸기참가자로딩중임 뜨는건 null이란 것인가요?? 파이어베이스 가면 분명히 제가 직접 넣은 데이터 있습니다. 그리고 collection().doc().get()을 쓰면 result.docs를 쓸때 에러가 납니다. 왜죠? 또 맵 자료형식이 오브젝트자료아닌가요? 에러메세지에 파이어스토어에 접근할 수 없다는데 문법오류같아요. 위의 저 문법 어레이 자료 뽑기 문법 그게 맞나여,,,,구글 플레이 스토어가 없다는것도 에뮬레이터 문제인가요..구글 플레이 스토어 있는 에뮬레이터로 변경하니 안드로이드 스튜디오 옵션에 에뮬레이터가 안뜹니다 ,,,,Syncing files to device Android SDK built for x86... I/FirebaseApp( 7841): Device unlocked: initializing all Firebase APIs for app [DEFAULT] W/GooglePlayServicesUtil( 7841): com.example.bokcherry requires the Google Play Store, but it is missing. E/GooglePlayServicesUtil( 7841): GooglePlayServices not available due to error 9 W/Firestore( 7841): (24.3.1) [GrpcCallProvider]: Failed to update ssl context: com.google.android.gms.common.GooglePlayServicesNotAvailableException I/TetheringManager( 7841): registerTetheringEventCallback:com.example.bokcherry I/OpenGLRenderer( 7841): Davey! duration=783ms; Flags=0, IntendedVsync=12947463941173, Vsync=12947463941173, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=12947465793300, AnimationStart=12947465832300, PerformTraversalsStart=12947465908500, DrawStart=12947466345600, SyncQueued=12947471717500, SyncStart=12947717538600, IssueDrawCommandsStart=12947723066700, SwapBuffers=12948109973900, FrameCompleted=12948493303300, DequeueBufferDuration=192739600, QueueBufferDuration=1786700, GpuCompleted=0, W/Firestore( 7841): (24.3.1) [OnlineStateTracker]: Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds W/Firestore( 7841): W/Firestore( 7841): This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend. W/GooglePlayServicesUtil( 7841): com.example.bokcherry requires the Google Play Store, but it is missing. W/Firestore( 7841): (24.3.1) [WatchStream]: (10f1d09) Stream closed with status: Status{code=UNAVAILABLE, description=Channel shutdownNow invoked, cause=null}. E/GooglePlayServicesUtil( 7841): GooglePlayServices not available due to error 9 W/Firestore( 7841): (24.3.1) [GrpcCallProvider]: Failed to update ssl context: com.google.android.gms.common.GooglePlayServicesNotAvailableException
-
글쓴이글
5 글 보임 - 1 에서 5 까지 (총 5 중에서)
- 답변은 로그인 후 가능합니다.