flutter start fails with Incompatible sky_engine package error message

204 views
Skip to first unread message

Shakeel Mahate

unread,
Feb 9, 2016, 2:21:52 PM2/9/16
to Flutter Dev
flutter start returns the following error message
Error: incompatible sky_engine package; please run 'pub get' to get the correct one.


pub get returns the following

Resolving dependencies... 

Got dependencies!


flutter --version

Flutter from https://github.com/flutter/flutter.git (on alpha)

flutter revision: 1328562e11a4c685bd6de0873b78a5057f6e94c5 (3 days ago)

engine revision : 3f1bde71969d9da119767e479e11fc22948e3bc2


This error is true for all flutter apps, even the examples folder


Please help



Paul Beusterien

unread,
Feb 9, 2016, 3:18:14 PM2/9/16
to Flutter Dev
I ran into the same problem yesterday and it was solved thanks to Hixie_ on the irc channel recommending running dev/update-packages.dart

Shakeel Mahate

unread,
Feb 9, 2016, 3:18:17 PM2/9/16
to Flutter Dev
Here's how to fix this problem

$ cd <to-where-you-installed-flutter> # cd ~/flutter
$ dev/update_packages.dart # It updated 19 packages for me

dev/update_packages.dart 

Updating /Users/shakeel/flutter/packages/cassowary... (9040 ms)

Updating /Users/shakeel/flutter/packages/flutter... (10266 ms)

Updating /Users/shakeel/flutter/packages/flutter_sprites... (13533 ms)

Updating /Users/shakeel/flutter/packages/flutter_test... (9686 ms)

Updating /Users/shakeel/flutter/packages/flutter_tools... (2043 ms)

Updating /Users/shakeel/flutter/packages/flx... (7612 ms)

Updating /Users/shakeel/flutter/packages/gcm... (7481 ms)

Updating /Users/shakeel/flutter/packages/newton... (7909 ms)

Updating /Users/shakeel/flutter/packages/playfair... (9353 ms)

Updating /Users/shakeel/flutter/packages/updater... (7293 ms)

Updating /Users/shakeel/flutter/examples/address_book... (1399 ms)

Updating /Users/shakeel/flutter/examples/fitness... (7403 ms)

Updating /Users/shakeel/flutter/examples/hello_world... (6849 ms)

Updating /Users/shakeel/flutter/examples/material_gallery... (11758 ms)

Updating /Users/shakeel/flutter/examples/mine_digger... (6472 ms)

Updating /Users/shakeel/flutter/examples/raw... (6353 ms)

Updating /Users/shakeel/flutter/examples/rendering... (6832 ms)

Updating /Users/shakeel/flutter/examples/stocks... (727 ms)

Updating /Users/shakeel/flutter/examples/widgets... (1437 ms)

Ran "pub get" 19 times in 133469 ms


$ cd flutter-app-project
$ flutter start


flutter start

Downloading darwin-x64 artifacts from the cloud, one moment please...

Downloading android-arm artifacts from the cloud, one moment please...

Downloading https://storage.googleapis.com/mojo_infra/flutter/3f1bde71969d9da119767e479e11fc22948e3bc2/darwin-x64/artifacts.zip.

Downloading https://storage.googleapis.com/mojo_infra/flutter/3f1bde71969d9da119767e479e11fc22948e3bc2/android-arm/artifacts.zip.

Can not locate Resources: Directory: 'apk/res', ignoring.

Building APK...

Signing the APK using the debug keystore.

Generated APK to build/app.apk.

Starting lib/main.dart on Nexus 6...

Installing app.apk on device.


The app now installs on device and runs. Strange, the behaviour of flutter start changed, even though flutter --version says it is three days old.


flutter --version

Flutter from https://github.com/flutter/flutter.git (on alpha)

flutter revision: 1328562e11a4c685bd6de0873b78a5057f6e94c5 (3 days ago)

engine revision : 3f1bde71969d9da119767e479e11fc22948e3bc2


Looks the tooling is being updated and there are some growing pains.

Seth Ladd

unread,
Feb 9, 2016, 3:28:59 PM2/9/16
to Shakeel Mahate, Flutter Dev
Hi Shakeel,

Any chance you could try the master branch of flutter?

cd flutter_dir
git checkout master
git pull
cd project_dir
flutter upgrade

Thanks!

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To post to this group, send email to flutt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/f1535aa2-6867-4c63-88e8-6e180af88017%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Shakeel Mahate

unread,
Feb 9, 2016, 5:41:46 PM2/9/16
to Flutter Dev
Hi Seth

Adam Barth just patched Alpha branch and made some changes to master to remove FLUTTER_DEV https://github.com/flutter/flutter/pull/1734

So before I checked out master, I did a flutter upgrade on my app and it pulled code from git and did pub get and updates flutter tools etc.

So when I did git checkout master and git pull, git reported that I was already up-to-date. So right now flutter upgrade works even with the master branch for me.

The minimal app with FAB event handler now shows a sash on the top left hand corner, but it is obscured by the Android icon bar. It show "Slow Mode" maybe.

Thanks

Shakeel

Seth Ladd

unread,
Feb 9, 2016, 5:45:12 PM2/9/16
to Shakeel Mahate, Flutter Dev
On Tue, Feb 9, 2016 at 2:41 PM, Shakeel Mahate <shakeel...@gmail.com> wrote:
Hi Seth

Adam Barth just patched Alpha branch and made some changes to master to remove FLUTTER_DEV https://github.com/flutter/flutter/pull/1734

So before I checked out master, I did a flutter upgrade on my app and it pulled code from git and did pub get and updates flutter tools etc.

So when I did git checkout master and git pull, git reported that I was already up-to-date. So right now flutter upgrade works even with the master branch for me.

The minimal app with FAB event handler now shows a sash on the top left hand corner, but it is obscured by the Android icon bar. It show "Slow Mode" maybe.

Ah, you noticed :) We added this because we had a few partners ask us why their app was slow, and turned out they were running in checked mode, which runs all the asserts which do quite a lot. So, now it's pretty clear if your app is in dev/checked/slow mode :)
 

Eric Seidel

unread,
Feb 9, 2016, 5:54:03 PM2/9/16
to Seth Ladd, Shakeel Mahate, Flutter Dev
You can run your app with `flutter start --no-checked` to be out of
"slow mode". Checked mode is *much* better for development however.
Just don't expect checked mode to hit 60fps all the time. :)
> https://groups.google.com/d/msgid/flutter-dev/CACr%3D8_PWKbE2iaZmYAOsR%2B3GwWp3uqY0KRcsf%2BzqAmVXaMutnw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages