Build pipeline is failing when adding Flutter App

I am new to f-droid.

I was adding my flutter app but the build fails.

You can find the logs here: https://gitlab.com/mrabhinav/fdroiddata/-/jobs/686049890

Apparently the flutter engine can’t find the app package, I have no Idea why this is happening. Kindly help.

Regarding Flutter version, why use an ever moving target of dev? It would never match your own since time passes between submission and build moment.

Why not specify a hash or a tag or smth more stable?

I’m seeing this with stable 1.20.2 (As expected?)

2020-08-23 09:20:38,236 DEBUG: buildserver > You are building a fat APK that includes binaries for android-arm, android-arm64, android-x64.
2020-08-23 09:20:38,236 DEBUG: buildserver > If you are deploying the app to the Play Store, it's recommended to use app bundles or split the APK to reduce the APK size.
2020-08-23 09:20:38,236 DEBUG: buildserver >     To generate an app bundle, run:
2020-08-23 09:20:38,236 DEBUG: buildserver >         flutter build appbundle --target-platform android-arm,android-arm64,android-x64
2020-08-23 09:20:38,236 DEBUG: buildserver >         Learn more on: https://developer.android.com/guide/app-bundle
2020-08-23 09:20:38,236 DEBUG: buildserver >     To split the APKs per ABI, run:
2020-08-23 09:20:38,236 DEBUG: buildserver >         flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi
2020-08-23 09:20:38,237 DEBUG: buildserver >         Learn more on:  https://developer.android.com/studio/build/configure-apk-splits#configure-abi-split
2020-08-23 09:20:38,237 DEBUG: buildserver > Running Gradle task 'assembleFdroidRelease'...
2020-08-23 09:20:38,237 DEBUG: buildserver > lib/Screens/defRssScreen.dart:1:8: Error: Error when reading 'lib/Screens/SettingsScreen.dart': No such file or directory
2020-08-23 09:20:38,237 DEBUG: buildserver > 
2020-08-23 09:20:38,237 DEBUG: buildserver > import 'package:curator/Screens/SettingsScreen.dart';
2020-08-23 09:20:38,237 DEBUG: buildserver > 
2020-08-23 09:20:38,237 DEBUG: buildserver >        ^
2020-08-23 09:20:38,237 DEBUG: buildserver > 
2020-08-23 09:20:38,238 DEBUG: buildserver > lib/Screens/defRssScreen.dart:3:8: Error: Error when reading 'lib/Screens/WebRssScreen.dart': No such file or directory
2020-08-23 09:20:38,238 DEBUG: buildserver > 
2020-08-23 09:20:38,238 DEBUG: buildserver > import 'package:curator/Screens/WebRssScreen.dart';
2020-08-23 09:20:38,238 DEBUG: buildserver > 
2020-08-23 09:20:38,238 DEBUG: buildserver >        ^
2020-08-23 09:20:38,238 DEBUG: buildserver > 
2020-08-23 09:20:38,238 DEBUG: buildserver > ../../.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.4/lib/src/picture_stream.dart:88:26: Error: Type 'DiagnosticableMixin' not found.
2020-08-23 09:20:38,238 DEBUG: buildserver > 
2020-08-23 09:20:38,238 DEBUG: buildserver > class PictureStream with DiagnosticableMixin {
2020-08-23 09:20:38,239 DEBUG: buildserver > 
2020-08-23 09:20:38,239 DEBUG: buildserver >                          ^^^^^^^^^^^^^^^^^^^
2020-08-23 09:20:38,239 DEBUG: buildserver > 
2020-08-23 09:20:38,239 DEBUG: buildserver > ../../.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.4/lib/src/picture_stream.dart:192:44: Error: Type 'DiagnosticableMixin' not found.
2020-08-23 09:20:38,239 DEBUG: buildserver > 
2020-08-23 09:20:38,239 DEBUG: buildserver > abstract class PictureStreamCompleter with DiagnosticableMixin {
2020-08-23 09:20:38,239 DEBUG: buildserver > 
2020-08-23 09:20:38,239 DEBUG: buildserver >                                            ^^^^^^^^^^^^^^^^^^^
2020-08-23 09:20:38,239 DEBUG: buildserver > 
2020-08-23 09:20:38,240 DEBUG: buildserver > ../../.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.4/lib/src/picture_stream.dart:88:7: Error: The type 'DiagnosticableMixin' can't be mixed in.
2020-08-23 09:20:38,240 DEBUG: buildserver > 
2020-08-23 09:20:38,240 DEBUG: buildserver > class PictureStream with DiagnosticableMixin {
2020-08-23 09:20:38,240 DEBUG: buildserver > 
2020-08-23 09:20:38,240 DEBUG: buildserver >       ^
2020-08-23 09:20:38,240 DEBUG: buildserver > 
2020-08-23 09:20:38,240 DEBUG: buildserver > ../../.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.4/lib/src/picture_stream.dart:192:16: Error: The type 'DiagnosticableMixin' can't be mixed in.
2020-08-23 09:20:38,240 DEBUG: buildserver > 
2020-08-23 09:20:38,240 DEBUG: buildserver > abstract class PictureStreamCompleter with DiagnosticableMixin {
2020-08-23 09:20:38,241 DEBUG: buildserver > 
2020-08-23 09:20:38,241 DEBUG: buildserver >                ^
2020-08-23 09:20:38,241 DEBUG: buildserver > 
2020-08-23 09:20:38,241 DEBUG: buildserver > lib/Screens/defRssScreen.dart:44:15: Error: The method 'WebRssScreen' isn't defined for the class '_DefRssScreenState'.
2020-08-23 09:20:38,241 DEBUG: buildserver > 
2020-08-23 09:20:38,241 DEBUG: buildserver >  - '_DefRssScreenState' is from 'package:curator/Screens/defRssScreen.dart' ('lib/Screens/defRssScreen.dart').
2020-08-23 09:20:38,241 DEBUG: buildserver > 
2020-08-23 09:20:38,241 DEBUG: buildserver > Try correcting the name to the name of an existing method, or defining a method named 'WebRssScreen'.
2020-08-23 09:20:38,241 DEBUG: buildserver > 
2020-08-23 09:20:38,242 DEBUG: buildserver >               WebRssScreen(),
2020-08-23 09:20:38,242 DEBUG: buildserver > 
2020-08-23 09:20:38,242 DEBUG: buildserver >               ^^^^^^^^^^^^
2020-08-23 09:20:38,242 DEBUG: buildserver > 
2020-08-23 09:20:38,242 DEBUG: buildserver > lib/Screens/defRssScreen.dart:46:15: Error: The method 'SettingsScreen' isn't defined for the class '_DefRssScreenState'.
2020-08-23 09:20:38,242 DEBUG: buildserver > 
2020-08-23 09:20:38,242 DEBUG: buildserver >  - '_DefRssScreenState' is from 'package:curator/Screens/defRssScreen.dart' ('lib/Screens/defRssScreen.dart').
2020-08-23 09:20:38,242 DEBUG: buildserver > 
2020-08-23 09:20:38,242 DEBUG: buildserver > Try correcting the name to the name of an existing method, or defining a method named 'SettingsScreen'.
2020-08-23 09:20:38,243 DEBUG: buildserver > 
2020-08-23 09:20:38,243 DEBUG: buildserver >               SettingsScreen()
2020-08-23 09:20:38,243 DEBUG: buildserver > 
2020-08-23 09:20:38,243 DEBUG: buildserver >               ^^^^^^^^^^^^^^
2020-08-23 09:20:38,243 DEBUG: buildserver > 
2020-08-23 09:20:38,243 DEBUG: buildserver > ../../.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.4/lib/src/picture_stream.dart:167:11: Error: Superclass has no method named 'debugFillProperties'.
2020-08-23 09:20:38,243 DEBUG: buildserver > 
2020-08-23 09:20:38,243 DEBUG: buildserver >     super.debugFillProperties(properties);
2020-08-23 09:20:38,243 DEBUG: buildserver > 
2020-08-23 09:20:38,244 DEBUG: buildserver >           ^^^^^^^^^^^^^^^^^^^
2020-08-23 09:20:38,244 DEBUG: buildserver > 
2020-08-23 09:20:38,244 DEBUG: buildserver > ../../.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.4/lib/src/picture_stream.dart:171:30: Error: The method 'toStringShort' isn't defined for the class 'PictureStreamCompleter'.
2020-08-23 09:20:38,244 DEBUG: buildserver > 
2020-08-23 09:20:38,244 DEBUG: buildserver >  - 'PictureStreamCompleter' is from 'package:flutter_svg/src/picture_stream.dart' ('../../.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.4/lib/src/picture_stream.dart').
2020-08-23 09:20:38,244 DEBUG: buildserver > 
2020-08-23 09:20:38,244 DEBUG: buildserver > Try correcting the name to the name of an existing method, or defining a method named 'toStringShort'.
2020-08-23 09:20:38,244 DEBUG: buildserver > 
2020-08-23 09:20:38,245 DEBUG: buildserver >       ifPresent: _completer?.toStringShort(),
2020-08-23 09:20:38,245 DEBUG: buildserver > 
2020-08-23 09:20:38,245 DEBUG: buildserver >                              ^^^^^^^^^^^^^
2020-08-23 09:20:38,245 DEBUG: buildserver > 
2020-08-23 09:20:38,245 DEBUG: buildserver > ../../.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.4/lib/src/picture_stream.dart:266:11: Error: Superclass has no method named 'debugFillProperties'.
2020-08-23 09:20:38,245 DEBUG: buildserver > 
2020-08-23 09:20:38,245 DEBUG: buildserver >     super.debugFillProperties(description);
2020-08-23 09:20:38,245 DEBUG: buildserver > 
2020-08-23 09:20:38,245 DEBUG: buildserver >           ^^^^^^^^^^^^^^^^^^^
2020-08-23 09:20:38,246 DEBUG: buildserver > 
2020-08-23 09:20:38,246 DEBUG: buildserver > 
2020-08-23 09:20:38,246 DEBUG: buildserver > 
2020-08-23 09:20:38,246 DEBUG: buildserver > 
2020-08-23 09:20:38,246 DEBUG: buildserver > 
2020-08-23 09:20:38,246 DEBUG: buildserver > FAILURE: Build failed with an exception.
2020-08-23 09:20:38,246 DEBUG: buildserver > 
2020-08-23 09:20:38,246 DEBUG: buildserver > 
2020-08-23 09:20:38,246 DEBUG: buildserver > 
2020-08-23 09:20:38,247 DEBUG: buildserver > * Where:
2020-08-23 09:20:38,247 DEBUG: buildserver > 
2020-08-23 09:20:38,247 DEBUG: buildserver > Script '/home/vagrant/build/srclib/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 896
2020-08-23 09:20:38,247 DEBUG: buildserver > 
2020-08-23 09:20:38,247 DEBUG: buildserver > 
2020-08-23 09:20:38,247 DEBUG: buildserver > 
2020-08-23 09:20:38,247 DEBUG: buildserver > * What went wrong:
2020-08-23 09:20:38,247 DEBUG: buildserver > 
2020-08-23 09:20:38,247 DEBUG: buildserver > Execution failed for task ':app:compileFlutterBuildFdroidRelease'.
2020-08-23 09:20:38,248 DEBUG: buildserver > 
2020-08-23 09:20:38,248 DEBUG: buildserver > > Process 'command '/home/vagrant/build/srclib/flutter/bin/flutter'' finished with non-zero exit value 1

Oh, seeing the same with @dev too :frowning:

Looking at the link you posted, that’s what you see too.

Thanks for replying.

I will change it to the version I am using but I can’t resolve that error.

Well that error only you can fix

I am saying the logs are not changing whether I use any version of flutter.

Kindly help me.

It’s a version thing…something else is at fault.

So changed the version to the version I am using 1.17.1

Same Thing:

What steps do you take to build locally? (When it works fine I mean)

It works fine when I build with flutter. But yesterday I tried building it with fdroid… It is giving no srclib found named flutter

Read again and answer please :slight_smile:

I don’t know what exactly are you asking but I will try to answer it anyway.

I built the APK’s by flutter commands.

For play store:
flutter build apk --split-per-abi --flavor playstore (Works fine)

For fdroid:
flutter build apk --flavor fdroid (Works fine)

And I also tried building it with fdroidserver (local) but got an error that there is no srclib named flutter:

fdroid build -v -l com.abhinavmarwaha.curator

Clone fdroiddata locally too, put your .yml in fdroiddata/metadata

In fdroiddata run fdroid build --verbose yourappid

I did that and got this error:

WARNING: No 'config.py' found, using defaults.
DEBUG: Getting git vcs interface for https://github.com/abhinavmarwaha/curator
DEBUG: Directory: build/com.abhinavmarwaha.curator
DEBUG: > git rev-parse --show-toplevel
DEBUG: Directory: build/com.abhinavmarwaha.curator
DEBUG: > git submodule foreach --recursive git reset --hard
DEBUG: Directory: build/com.abhinavmarwaha.curator
DEBUG: > git submodule foreach --recursive git clean -dffx
DEBUG: Directory: build/com.abhinavmarwaha.curator
DEBUG: > git -c core.askpass=/bin/true -c core.sshCommand=/bin/false -c url.https://.insteadOf=ssh:// -c url.https://u:p@bitbucket.org/.insteadOf=git@bitbucket.org: -c url.https://u:p@bitbucket.org.insteadOf=git://bitbucket.org -c url.https://u:p@bitbucket.org.insteadOf=https://bitbucket.org -c url.https://u:p@github.com/.insteadOf=git@github.com: -c url.https://u:p@github.com.insteadOf=git://github.com -c url.https://u:p@github.com.insteadOf=https://github.com -c url.https://u:p@gitlab.com/.insteadOf=git@gitlab.com: -c url.https://u:p@gitlab.com.insteadOf=git://gitlab.com -c url.https://u:p@gitlab.com.insteadOf=https://gitlab.com fetch origin
DEBUG: Directory: build/com.abhinavmarwaha.curator
DEBUG: > git -c core.askpass=/bin/true -c core.sshCommand=/bin/false -c url.https://.insteadOf=ssh:// -c url.https://u:p@bitbucket.org/.insteadOf=git@bitbucket.org: -c url.https://u:p@bitbucket.org.insteadOf=git://bitbucket.org -c url.https://u:p@bitbucket.org.insteadOf=https://bitbucket.org -c url.https://u:p@github.com/.insteadOf=git@github.com: -c url.https://u:p@github.com.insteadOf=git://github.com -c url.https://u:p@github.com.insteadOf=https://github.com -c url.https://u:p@gitlab.com/.insteadOf=git@gitlab.com: -c url.https://u:p@gitlab.com.insteadOf=git://gitlab.com -c url.https://u:p@gitlab.com.insteadOf=https://gitlab.com fetch --prune --tags origin
DEBUG: Directory: build/com.abhinavmarwaha.curator
DEBUG: > git remote set-head origin --auto
DEBUG: Directory: build/com.abhinavmarwaha.curator
DEBUG: > git checkout -f HEAD
DEBUG: Directory: build/com.abhinavmarwaha.curator
DEBUG: > git clean -dffx
DEBUG: Getting git vcs interface for https://github.com/abhinavmarwaha/curator
DEBUG: > git --version
git version 2.28.0
INFO: Using git version 2.28.0
DEBUG: Checking 0.1.0
INFO: Building version 0.1.0 (1) of com.abhinavmarwaha.curator
INFO: Getting source for revision v0.1.0
DEBUG: Directory: build/com.abhinavmarwaha.curator
DEBUG: > git rev-parse --show-toplevel
DEBUG: Directory: build/com.abhinavmarwaha.curator
DEBUG: > git submodule foreach --recursive git reset --hard
DEBUG: Directory: build/com.abhinavmarwaha.curator
DEBUG: > git submodule foreach --recursive git clean -dffx
DEBUG: Directory: build/com.abhinavmarwaha.curator
DEBUG: > git -c core.askpass=/bin/true -c core.sshCommand=/bin/false -c url.https://.insteadOf=ssh:// -c url.https://u:p@bitbucket.org/.insteadOf=git@bitbucket.org: -c url.https://u:p@bitbucket.org.insteadOf=git://bitbucket.org -c url.https://u:p@bitbucket.org.insteadOf=https://bitbucket.org -c url.https://u:p@github.com/.insteadOf=git@github.com: -c url.https://u:p@github.com.insteadOf=git://github.com -c url.https://u:p@github.com.insteadOf=https://github.com -c url.https://u:p@gitlab.com/.insteadOf=git@gitlab.com: -c url.https://u:p@gitlab.com.insteadOf=git://gitlab.com -c url.https://u:p@gitlab.com.insteadOf=https://gitlab.com fetch origin
DEBUG: Directory: build/com.abhinavmarwaha.curator
DEBUG: > git -c core.askpass=/bin/true -c core.sshCommand=/bin/false -c url.https://.insteadOf=ssh:// -c url.https://u:p@bitbucket.org/.insteadOf=git@bitbucket.org: -c url.https://u:p@bitbucket.org.insteadOf=git://bitbucket.org -c url.https://u:p@bitbucket.org.insteadOf=https://bitbucket.org -c url.https://u:p@github.com/.insteadOf=git@github.com: -c url.https://u:p@github.com.insteadOf=git://github.com -c url.https://u:p@github.com.insteadOf=https://github.com -c url.https://u:p@gitlab.com/.insteadOf=git@gitlab.com: -c url.https://u:p@gitlab.com.insteadOf=git://gitlab.com -c url.https://u:p@gitlab.com.insteadOf=https://gitlab.com fetch --prune --tags origin
DEBUG: Directory: build/com.abhinavmarwaha.curator
DEBUG: > git remote set-head origin --auto
DEBUG: Directory: build/com.abhinavmarwaha.curator
DEBUG: > git checkout -f v0.1.0
DEBUG: Directory: build/com.abhinavmarwaha.curator
DEBUG: > git clean -dffx
INFO: Collecting source libraries
ERROR: VCS error while building app com.abhinavmarwaha.curator: srclib flutter not found.
INFO: Finished
INFO: 1 build failed

Fdroiddata is up to date?

The file is there, if you have an updated repo: https://gitlab.com/fdroid/fdroiddata/-/blob/master/srclibs/flutter.yml

Yes it is to up to date.

You have the file then or not?

fdroidserver is from gitlab and up to date too?

Yes I have the file, both fdroid data and fdroid server are from gitlab and updated.