Waboodoo / HTTP-Shortcuts

Android app to create home screen shortcuts that trigger arbitrary HTTP requests
https://http-shortcuts.rmy.ch
MIT License
1.17k stars 113 forks source link

[BUG] Build error #334

Closed RichardHoOoOo closed 1 year ago

RichardHoOoOo commented 1 year ago

When I use ./gradlew assemble to build the project. I met the following error

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':framework:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
   > Android resource linking failed
     ERROR:/Users/xxx/HTTP-Shortcuts/HTTPShortcuts/framework/build/intermediates/merged_res/release/layout/view_expandable_section.xml:9: AAPT: error: resource layout/divider_line (aka ch.rmy.android.framework:layout/divider_line) not found.

     ERROR:/Users/xxx/HTTP-Shortcuts/HTTPShortcuts/framework/build/intermediates/merged_res/release/layout/view_simple_list_item.xml:8: AAPT: error: resource layout/divider_line (aka ch.rmy.android.framework:layout/divider_line) not found.

==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)

Could you check the problem?

Waboodoo commented 1 year ago

Hm... I have no idea what's going on here. It seems to complain about filling the divider_line layout file, but that file is definitely there for me and commited into the repository.

Given that the build works for me and seems to also have worked fine for the F-Droid release, I suspect this is an issue on your side. Unfortunately, all I can suggest here is to try and clear the build caches and try again.

RichardHoOoOo commented 1 year ago

Hi, thanks for your reply. It looks using ./gradlew assembleDebug can build the apk successfully.