Flutter build apk --debug --split-per-abi fails

1,925 views
Skip to first unread message

Atul Vaidya

unread,
Jan 20, 2021, 4:45:26 AM1/20/21
to Flutter Development (flutter-dev)
I generally do per processor builds using flutter build apk --debug --split-per-abi from the command line.  However, I recently had to build a fat apk by using issuing a flutter build apk --debug.  Since then I have been unable to build split apks. When I try I get the message

* Where:
Script 'path\to\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 646

* What went wrong:
A problem occurred evaluating root project 'android'.
> A problem occurred configuring project ':app'.
   > The value for this property cannot be changed any further.

How can this be fixed?  flutter clean does not help.

Rajil Saj

unread,
Jan 20, 2021, 5:25:07 AM1/20/21
to Atul Vaidya, Flutter Development (flutter-dev)
Why don't you automate all this ? with CodeMagic or GitHub Actions its better and avoid u to use commands line.

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/d3b2b561-cdf1-4a3c-8b7c-7cdc5583f7d8n%40googlegroups.com.


--
Rajil VEMBE




Benedicte Roussel

unread,
Jan 20, 2021, 8:29:16 PM1/20/21
to Rajil Saj, Atul Vaidya, Flutter Development (flutter-dev)
The question is more about why some command line are deseappearing without notice?  🤔


Le mer., janv. 20, 2021 à 11:25, Rajil Saj
<sve...@gmail.com> a écrit :

Wojciech S. Czarnecki

unread,
Jan 22, 2021, 4:07:44 PM1/22/21
to flutt...@googlegroups.com
Dnia 2021-01-20, o godz. 01:45:25
Atul Vaidya <nag...@gmail.com> napisał(a):

> I generally do per processor builds using *flutter build apk --debug
> --split-per-abi* from the command line. However, I recently had to build a
> fat apk by using issuing a *flutter build apk --debug*. Since then I have
> been unable to build split apks.

> How can this be fixed? *flutter clean* does not help.

https://github.com/flutter/flutter/issues/58247

Hope this helps,

--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE

Benedicte Roussel

unread,
Jan 22, 2021, 8:22:11 PM1/22/21
to Wojciech S. Czarnecki, flutt...@googlegroups.com
I have noticed recently that this cmd was no longer suggested, only flutter build apk was suggested. I know that does not help you a lot but it means it is not your fault. 
Le ven., janv. 22, 2021 à 22:07, Wojciech S. Czarnecki
<oh...@fairbe.org> a écrit :
--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev+unsub...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/20210122220731.0707b261%40xmint.

Benedicte Roussel

unread,
Jan 22, 2021, 8:35:03 PM1/22/21
to Wojciech S. Czarnecki, flutt...@googlegroups.com
Now, flutter build apk works and if using Android Studio it is quite easy to upgrade the gradle . Then, runing a gradlew lint or more exactly a gradlew wrapper can help to have zero error in release debug and profile mode.
As far as split per abi is concerned, I do not know and it is no longer suggested.
Le ven., janv. 22, 2021 à 22:07, Wojciech S. Czarnecki
<oh...@fairbe.org> a écrit :
--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev+unsub...@googlegroups.com.

Atul Vaidya

unread,
Jan 24, 2021, 12:32:24 AM1/24/21
to Flutter Development (flutter-dev)
flutter channel master
flutter upgrade
flutter clean
flutter pub get
flutter channel stable
flutter upgrade
flutter clean
flutter pub get

and the problem is gone.  split-per-abi is very handy when sharing builds internally with a geographically remote team member so it is not so easily foregone.  As far as automation, Android Studio etc - I prefer to work with VSCode and the command line.  That is a personal choice and not exactly one that is deprecated by Flutter

ABADA SAMUEL

unread,
Jan 24, 2021, 1:11:50 AM1/24/21
to Atul Vaidya, Flutter Development (flutter-dev)
You were able to split a debug APK per-abi?

Why not generate the release and split that?

To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/36c52694-5058-4bc7-9960-775ba32cba1fn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages