Unable to build?

fdroid build --latest --no-tarball --verbose com.atr.tedit
//this build command returns

2024-03-06 17:32:07,948 DEBUG: Reading ‘config.yml’
2024-03-06 17:32:08,108 DEBUG: ipfs_cid not found, skipping CIDv1 generation
2024-03-06 17:32:08,168 DEBUG: Getting git vcs interface for GitHub - ATryder/TEdit: A simple text editor for Android devices.
2024-03-06 17:32:08,172 DEBUG: Checking com.atr.tedit:27
2024-03-06 17:32:08,177 INFO: Finished

//but im unable to see .apk file

that’s already in F-Droid lol TEdit | F-Droid - Free and Open Source Android App Repository

anyway, what did you do before, did you install Android SDK and all?

do you have an APK already in the unsigned/ folder?

i followed this(btw thanks for replying so fast)…
https://silkevicious.codeberg.page/apkrepo.html

usigned folder is empty

that’s the only output of that command? Do you have git installed?

yes , that is only ouput i got, and i have git installed

Also, i got this output in less than a minute, which means the build didnt even start, because even a simple app takes 30-40 minutes on my machine, if i build it manually.

This is what it shuold do:

fdroid@buildserverfire:~/fdroiddata$ fdroid build --latest --no-tarball --verbose com.atr.tedit
2024-03-07 03:23:50,810 DEBUG: ipfs_cid not found, skipping CIDv1 generation
2024-03-07 03:23:50,812 DEBUG: Popen(['git', 'cat-file', '--batch-check'], cwd=/home/fdroid/fdroiddata, universal_newlines=False, shell=None, istream=<valid stream>)
2024-03-07 03:23:50,817 DEBUG: Popen(['git', 'diff', '--cached', '--abbrev=40', '--full-index', '--raw'], cwd=/home/fdroid/fdroiddata, universal_newlines=False, shell=None, istream=None)
2024-03-07 03:23:50,899 DEBUG: Popen(['git', 'diff', '--abbrev=40', '--full-index', '--raw'], cwd=/home/fdroid/fdroiddata, universal_newlines=False, shell=None, istream=None)
2024-03-07 03:23:51,024 DEBUG: Popen(['git', 'ls-files', '--modified'], cwd=/home/fdroid/fdroiddata, universal_newlines=False, shell=None, istream=None)
2024-03-07 03:23:51,217 DEBUG: Popen(['git', 'status', '--porcelain', '--untracked-files'], cwd=/home/fdroid/fdroiddata, universal_newlines=False, shell=None, istream=None)
2024-03-07 03:23:53,032 DEBUG: Popen(['git', 'cat-file', '--batch-check'], cwd=/home/fdroid/fdroidserver, universal_newlines=False, shell=None, istream=<valid stream>)
2024-03-07 03:23:53,039 DEBUG: Popen(['git', 'diff', '--cached', '--abbrev=40', '--full-index', '--raw'], cwd=/home/fdroid/fdroidserver, universal_newlines=False, shell=None, istream=None)
2024-03-07 03:23:53,051 DEBUG: Popen(['git', 'diff', '--abbrev=40', '--full-index', '--raw'], cwd=/home/fdroid/fdroidserver, universal_newlines=False, shell=None, istream=None)
2024-03-07 03:23:53,059 DEBUG: Popen(['git', 'ls-files', '--modified'], cwd=/home/fdroid/fdroidserver, universal_newlines=False, shell=None, istream=None)
2024-03-07 03:23:53,065 DEBUG: Popen(['git', 'status', '--porcelain', '--untracked-files'], cwd=/home/fdroid/fdroidserver, universal_newlines=False, shell=None, istream=None)
2024-03-07 03:23:53,112 DEBUG: skip deploying full build logs: not enabled in config
2024-03-07 03:23:53,702 DEBUG: skip deploying full build logs: not enabled in config
2024-03-07 03:23:53,703 DEBUG: Getting git vcs interface for https://github.com/ATryder/TEdit.git
2024-03-07 03:23:53,703 DEBUG: Checking com.atr.tedit:27
2024-03-07 03:23:53,704 INFO: Building version 3.0.2 (27) of com.atr.tedit
2024-03-07 03:23:53,704 INFO: Getting source for revision 3cfc28e7b2c592e5ada104bf9454536d6280b689
2024-03-07 03:23:53,705 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 -c url.https://u:p@codeberg.org/.insteadOf=git@codeberg.org: -c url.https://u:p@codeberg.org.insteadOf=git://codeberg.org -c url.https://u:p@codeberg.org.insteadOf=https://codeberg.org clone -- https://github.com/ATryder/TEdit.git build/com.atr.tedit
Cloning into 'build/com.atr.tedit'...
2024-03-07 03:23:57,123 DEBUG: Directory: build/com.atr.tedit
2024-03-07 03:23:57,124 DEBUG: > git rev-parse --show-toplevel
2024-03-07 03:23:57,331 DEBUG: Directory: build/com.atr.tedit
2024-03-07 03:23:57,332 DEBUG: > git checkout -f 3cfc28e7b2c592e5ada104bf9454536d6280b689
2024-03-07 03:23:57,640 DEBUG: Directory: build/com.atr.tedit
2024-03-07 03:23:57,641 DEBUG: > git clean -dffx
2024-03-07 03:23:57,751 DEBUG: Directory: build/com.atr.tedit
2024-03-07 03:23:57,751 DEBUG: > git rev-parse --show-toplevel
2024-03-07 03:23:57,961 DEBUG: Directory: build/com.atr.tedit
2024-03-07 03:23:57,961 DEBUG: > git submodule deinit --all --force
2024-03-07 03:23:58,070 INFO: Creating local.properties file at build/com.atr.tedit/local.properties
2024-03-07 03:23:58,071 INFO: Creating local.properties file at build/com.atr.tedit/app/local.properties
2024-03-07 03:23:58,071 DEBUG: Removing debuggable flags from build/com.atr.tedit/app
2024-03-07 03:23:58,088 INFO: Running 'prebuild' commands in build/com.atr.tedit/app
2024-03-07 03:23:58,088 DEBUG: Directory: build/com.atr.tedit/app
2024-03-07 03:23:58,088 DEBUG: > bash -e -u -o pipefail -x -c -- sed -i -e 's/constraint-layout:1.0.0-beta3/constraint-layout:1.0.2/' build.gradle
+ sed -i -e s/constraint-layout:1.0.0-beta3/constraint-layout:1.0.2/ build.gradle
2024-03-07 03:23:58,296 INFO: Cleaning Gradle project...
2024-03-07 03:23:58,297 DEBUG: Directory: build/com.atr.tedit/app
2024-03-07 03:23:58,297 DEBUG: > /home/fdroid/fdroidserver/gradlew-fdroid clean
Found 6.5 via distributionUrl
Downloading missing gradle version 6.5
cachedir /home/fdroid/.cache/fdroidserver
/home/fdroid/.cache/fdroidserver/gradle-6.5-bin.zip: OK
Running /home/fdroid/.cache/fdroidserver/gradle/6.5/bin/gradle clean

https://silkevicious.codeberg.page/apkrepo.html
//are these steps correct, also i installed fdroidserver from apt, instead of pip without cloning

Looks like it’s about packaging new apps. You should clone fdroiddata to build packaged apps. Please clone fdroiddata and run the command in the repo.

running build from fdroiddata directory works, thank you, but im unable to resolve these errors…

  • What went wrong:
    Execution failed for task ‘:app:mergeReleaseResources’.

Multiple task action failures occurred:
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
AAPT2 aapt2-4.1.3-6503028-linux Daemon #1: Unexpected error during compile ‘/home/deepak/fdroiddata/build/com.atr.tedit/app/src/main/res/mipmap-xxhdpi/tedit_launcher_round.png’, attempting to stop daemon.
This should not happen under normal circumstances, please file an issue if it does.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
AAPT2 aapt2-4.1.3-6503028-linux Daemon #0: Unexpected error during compile ‘/home/deepak/fdroiddata/build/com.atr.tedit/app/src/main/res/mipmap-xxxhdpi/tedit_launcher_background.png’, attempting to stop daemon.
This should not happen under normal circumstances, please file an issue if it does.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
AAPT2 aapt2-4.1.3-6503028-linux Daemon #2: Unexpected error during compile ‘/home/deepak/fdroiddata/build/com.atr.tedit/app/src/main/res/mipmap-xxhdpi/tedit_launcher_background.png’, attempting to stop daemon.
This should not happen under normal circumstances, please file an issue if it does.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
AAPT2 aapt2-4.1.3-6503028-linux Daemon #3: Unexpected error during compile ‘/home/deepak/fdroiddata/build/com.atr.tedit/app/src/main/res/mipmap-xxhdpi/tedit_launcher_foreground.png’, attempting to stop daemon.
This should not happen under normal circumstances, please file an issue if it does.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
AAPT2 aapt2-4.1.3-6503028-linux Daemon #4: Unexpected error during compile ‘/home/deepak/fdroiddata/build/com.atr.tedit/app/src/main/res/mipmap-xxhdpi/tedit_launcher.png’, attempting to stop daemon.
This should not happen under normal circumstances, please file an issue if it does.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
AAPT2 aapt2-4.1.3-6503028-linux Daemon #6: Unexpected error during compile ‘/home/deepak/fdroiddata/build/com.atr.tedit/app/src/main/res/mipmap-xxxhdpi/tedit_launcher.png’, attempting to stop daemon.
This should not happen under normal circumstances, please file an issue if it does.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
AAPT2 aapt2-4.1.3-6503028-linux Daemon #5: Unexpected error during compile ‘/home/deepak/fdroiddata/build/com.atr.tedit/app/build/generated/res/pngs/release/drawable-xxxhdpi/tedit_launcher_foreground.png’, attempting to stop daemon.
This should not happen under normal circumstances, please file an issue if it does.

Check the ‘bin’ directory for the .apk file. If not found, review build logs for details on file location. Consider manual building or seeking assistance from project maintainers if issues persist.

Update this line TEdit/build.gradle at master · ATryder/TEdit · GitHub to 4.2.0

ref: Google Issue Tracker

do i need to do anything else after saving changes in the file, because as soon as i build again, the same errors occur and when i check that file again the changes are reverted

well… of course it gets reset on build

update as

  - versionName: 3.0.2
    versionCode: 27
    commit: 3cfc28e7b2c592e5ada104bf9454536d6280b689
    subdir: app
    gradle:
      - yes
    prebuild:
      - sed -i -e 's/constraint-layout:1.0.0-beta3/constraint-layout:1.0.2/' build.gradle
      - sed -i -e 's/gradle:4.1.3/gradle:4.2.0/' ../build.gradle