CI build fails for new app (newby)

Hi, I am trying to get my app on fdroid. I have done the steps in the guide, but when I push to my fork, the CI for build and checkupdate fail.

I tried java11 and gradle-(wrapper) 7.0.2 locally on my PC and here it will build the app.

But the gitlab-runner gives an error:

Build file '/home/vagrant/build/com.jacquesb.planetario_a/app/build.gradle' line: 2 * What went wrong: **Plugin [id: 'com.android.application'] was not found** in any of the following sources: - Gradle Core Plugins (plugin is not in 'org.gradle' namespace) - Plugin Repositories (plugin dependency must include a version number for this source)

What is a good strategy to resolve this?

Thanks for any help!
Jacques

Below reference to the build log, the app repository and the yml file.

build log:

Planetario app:

Fdroid data fork:
https://gitlab.com/planetarium1/fdroid-data-fork/-/tree/com.jacquesb.planetario_a?ref_type=heads

https://gitlab.com/planetarium1/fdroid-data-fork/-/blob/com.jacquesb.planetario_a/metadata/com.jacquesb.planetario_a.yml:
Categories:
- Science & Education
License: BSD-2-Clause
SourceCode: planetarium / Planetario · GitLab

RepoType: git
Repo: https://gitlab.com/planetarium1/Planetario.git

Builds:
  - versionName: '1.0'
    versionCode: 1
    commit: v1.0
    subdir: app
    gradle:
      - yes

AutoUpdateMode: Version
UpdateCheckMode: Tags
CurrentVersion: '1.0'
CurrentVersionCode: 1

Did you build it from the same code?

Can you try from renaming fastlane (c0596bb9) · Commits · planetarium / Planetario · GitLab ?

commit: c0596bb98c3b766cc2e16e6f4d130d29ab770436

Yes.
But when I build the app on my own PC, gradle needs a file local.properties, which gives the link to the local sdk-directory.
In gitlab I changed that directory-link into
sdk.dir=/opt/android-sdk
since that seemed to be the sdk build-tools directory. But that did not resolve the build failure.

I am not sure I understand your suggestion correctly.
I don’t know how to start the gitlab-runner at the specific commit you mention.

I started the gitlab-runner again, and it fails again - as to be expected.

Please open an MR.

Linsui:
I can open a merge request, but this commit will not be meeting the requirements.
I cannot confirm that: Builds with fdroid build and all pipelines pass.

Should I nevertheless open the merge request?

Jacques

It’s easier to discuss in the PR. :slight_smile:

MR created
!14268

OK: you pointed out an error in my *planetario.yml file.
It read:
commit: 1
but should read (e.g.):
commit: c0596bb98c3b766cc2e16e6f4d130d29ab770436
Pointing to the commit I want the gitlab-runner to build

Thanks, you resolved the 3 errors in the .yml file very quick!
thanks.