# Failed to compile starter application of CH8

**URL:** <https://forums.kodeco.com/t/failed-to-compile-starter-application-of-ch8/164875>\
**Category:** Flutter Apprentice\
**Created:** [February 17, 2022, 3:46pm UTC](https://forums.kodeco.com/t/failed-to-compile-starter-application-of-ch8/164875 "2022-02-17T15:46:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![frank2085](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/frank2085/32/102885_2.png) [@frank2085](https://forums.kodeco.com/u/frank2085)\
**Post date:** [February 17, 2022, 3:46pm UTC](https://forums.kodeco.com/t/failed-to-compile-starter-application-of-ch8/164875/1 "2022-02-17T15:46:47Z")

</div>

I just started reading Chapter 8 of the book Flutter Apprentice. I opened the starter project of this chapter in latest Android Studio (Bumblebee 2021.1.1 Patch 1). I tried running main.dart in Chrome (web), but failed. Here’s the error message in console:

Launching lib\main.dart on Chrome in debug mode…  
Waiting for connection from debug service on Chrome…  
…/…/…/…/…/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/platform-3.0.0/lib/src/interface/local\_platform.dart:46:19: Error: Member not found: ‘packageRoot’.  
io.Platform.packageRoot; // ignore: deprecated\_member\_use  
^^^^^^^^^^^  
Failed to compile application.

How to solve this issue? Can anybody help? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![frank2085](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/frank2085/32/102885_2.png) [@frank2085](https://forums.kodeco.com/u/frank2085)\
**Post date:** [February 17, 2022, 4:15pm UTC](https://forums.kodeco.com/t/failed-to-compile-starter-application-of-ch8/164875/2 "2022-02-17T16:15:40Z")

</div>

Never mind. I found the solution from StackOverFlow. Just run “flutter pub upgrade” in the terminal will fix this.
