Changes to Android build process

38 views
Skip to first unread message

Michael Thomsen

unread,
Mar 20, 2017, 11:11:52 AM3/20/17
to Flutter Dev
Building for Android has changed from using a "pre-canned" build, to building with the same standard 'gradle-based' build process that Android Studio projects use. This makes it easier to edit the native Android code; after the upgrade you can now open the android folder in Android Studio, and it will know how to build the project, and will allow you to add and edit java code.

With this, we have removed the old legacy build support. Follow these steps to upgrade your existing projects to build with gradle:

The desupport of the non-gradle build landed in https://github.com/flutter/flutter/pull/8793.


Adam Barth

unread,
Mar 20, 2017, 11:21:26 AM3/20/17
to Michael Thomsen, Flutter Dev
If you're using the "hello_services" approach, this change shouldn't affect you because you're already using the new approach.

Adam


--
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.
For more options, visit https://groups.google.com/d/optout.

Michael Thomsen

unread,
Mar 20, 2017, 11:30:48 AM3/20/17
to Adam Barth, Flutter Dev
Correct. Although in that case, it would be best to synchronize the contents of the two gradle files:

  Update /android/build.gradle with contents from /android/build.gradle
and 
  Update /android/app/build.gradle with contents from /android/app/build.gradle

Regards, Michael



To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages