[tindroid] compile devel it didn't work out

35 views
Skip to first unread message

Yofree United

unread,
Feb 3, 2024, 6:42:36 AMFeb 3
to Tinode General
Hi all

I'm trying to compile the version of https://github.com/tinode/tindroid/commits/devel/
I get errors:

1.
Android resource linking failed
co.tinode.tindroid.app-main-66:/layout/dialog_add_credential.xml:14: error: resource string/add_credential (aka co.tinode.tindroidx:string/add_credential) not found.
error: failed linking file resources.

As I understand there is a typo, instead of add_credential change to add_credential_title

2.
Missing class org.slf4j.impl.StaticLoggerBinder (referenced from: void org.slf4j.LoggerFactory.bind() and 3 other contexts)

Couldn't handle it)

Gene

unread,
Feb 3, 2024, 1:23:18 PMFeb 3
to Tinode General
On Saturday, February 3, 2024 at 3:42:36 AM UTC-8 Yofree United wrote:
Hi all

I'm trying to compile the version of https://github.com/tinode/tindroid/commits/devel/
I get errors:

1.
Android resource linking failed
co.tinode.tindroid.app-main-66:/layout/dialog_add_credential.xml:14: error: resource string/add_credential (aka co.tinode.tindroidx:string/add_credential) not found.
error: failed linking file resources.

As I understand there is a typo, instead of add_credential change to add_credential_title

Here is the  layout folder in devel branch:

Please point me to the dialog_add_credential.xml file because I cannot find it: https://github.com/tinode/tindroid/tree/devel/app/src/main/res/layout/dialog_add_credential.xml

2.
Missing class org.slf4j.impl.StaticLoggerBinder (referenced from: void org.slf4j.LoggerFactory.bind() and 3 other contexts)

Likewise. You are building from some unknown branch or tag which may or maynot be consistent. Please use official branches and tags for building. Devel is not guaranteed to be buildable. 


Couldn't handle it)

Gene

unread,
Feb 3, 2024, 1:39:16 PMFeb 3
to Tinode General
BTW, you already asked this question and already received an answer: https://groups.google.com/g/tinode/c/KxFhLwj6fPo/m/-R-lHVs7AQAJ
You keep making the same mistake.


Yofree United

unread,
Feb 7, 2024, 3:59:20 AMFeb 7
to Tinode General
I remembered, thanks for the reminder

 https://github.com/tinode/tindroid/archive/refs/tags/v0.22.12.zip
I tried to compile again and it didn’t work. 
Apparently I’ll leave it until the future

console Build in Studio Android
Execution failed for task ':app:mergeDebugResources'.
> [mipmap-hdpi-v4/ic_launcher] G:\android\tindroid-0.22.12\app\src\main\res\mipmap-hdpi\ic_launcher.png [mipmap-hdpi-v4/ic_launcher] G:\android\tindroid-0.22.12\app\src\main\res\mipmap-hdpi\ic_launcher.webp: Error: Duplicate resources
  [mipmap-hdpi-v4/ic_launcher_round] G:\android\tindroid-0.22.12\app\src\main\res\mipmap-hdpi\ic_launcher_round.png [mipmap-hdpi-v4/ic_launcher_round] G:\android\tindroid-0.22.12\app\src\main\res\mipmap-hdpi\ic_launcher_round.webp: Error: Duplicate resources
  [mipmap-mdpi-v4/ic_launcher] G:\android\tindroid-0.22.12\app\src\main\res\mipmap-mdpi\ic_launcher.png [mipmap-mdpi-v4/ic_launcher] G:\android\tindroid-0.22.12\app\src\main\res\mipmap-mdpi\ic_launcher.webp: Error: Duplicate resources
  [mipmap-mdpi-v4/ic_launcher_round] G:\android\tindroid-0.22.12\app\src\main\res\mipmap-mdpi\ic_launcher_round.png [mipmap-mdpi-v4/ic_launcher_round] G:\android\tindroid-0.22.12\app\src\main\res\mipmap-mdpi\ic_launcher_round.webp: Error: Duplicate resources
  [mipmap-xhdpi-v4/ic_launcher] G:\android\tindroid-0.22.12\app\src\main\res\mipmap-xhdpi\ic_launcher.png [mipmap-xhdpi-v4/ic_launcher] G:\android\tindroid-0.22.12\app\src\main\res\mipmap-xhdpi\ic_launcher.webp: Error: Duplicate resources
  [mipmap-xhdpi-v4/ic_launcher_round] G:\android\tindroid-0.22.12\app\src\main\res\mipmap-xhdpi\ic_launcher_round.png [mipmap-xhdpi-v4/ic_launcher_round] G:\android\tindroid-0.22.12\app\src\main\res\mipmap-xhdpi\ic_launcher_round.webp: Error: Duplicate resources
  [mipmap-xxhdpi-v4/ic_launcher] G:\android\tindroid-0.22.12\app\src\main\res\mipmap-xxhdpi\ic_launcher.png [mipmap-xxhdpi-v4/ic_launcher] G:\android\tindroid-0.22.12\app\src\main\res\mipmap-xxhdpi\ic_launcher.webp: Error: Duplicate resources
  [mipmap-xxhdpi-v4/ic_launcher_round] G:\android\tindroid-0.22.12\app\src\main\res\mipmap-xxhdpi\ic_launcher_round.png [mipmap-xxhdpi-v4/ic_launcher_round] G:\android\tindroid-0.22.12\app\src\main\res\mipmap-xxhdpi\ic_launcher_round.webp: Error: Duplicate resources
  [mipmap-xxxhdpi-v4/ic_launcher] G:\android\tindroid-0.22.12\app\src\main\res\mipmap-xxxhdpi\ic_launcher.png [mipmap-xxxhdpi-v4/ic_launcher] G:\android\tindroid-0.22.12\app\src\main\res\mipmap-xxxhdpi\ic_launcher.webp: Error: Duplicate resources
  [mipmap-xxxhdpi-v4/ic_launcher_round] G:\android\tindroid-0.22.12\app\src\main\res\mipmap-xxxhdpi\ic_launcher_round.png [mipmap-xxxhdpi-v4/ic_launcher_round] G:\android\tindroid-0.22.12\app\src\main\res\mipmap-xxxhdpi\ic_launcher_round.webp: Error: Duplicate resources

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 18s
62 actionable tasks: 55 executed, 7 up-to-date


суббота, 3 февраля 2024 г. в 21:39:16 UTC+3, Gene:

Gene

unread,
Feb 7, 2024, 12:29:31 PMFeb 7
to Tinode General
On Wednesday, February 7, 2024 at 12:59:20 AM UTC-8 Yofree United wrote:
I remembered, thanks for the reminder

 https://github.com/tinode/tindroid/archive/refs/tags/v0.22.12.zip
I tried to compile again and it didn’t work. 

You keep doing things which break the build. See

G:\android\tindroid-0.22.12\app\src\main\res\mipmap-hdpi\ic_launcher.png
G:\android\tindroid-0.22.12\app\src\main\res\mipmap-hdpi\ic_launcher.webp

Where does the ic_launcher.webp come from? It certainly does not come from the official repo:

Yofree United

unread,
Feb 7, 2024, 3:27:38 PMFeb 7
to Tinode General
Thanks for the answer
You are right and perhaps Android Studio creates . ...webp
After manually removing all .webp
A new  FAILED has appeared

> Task :app:processDebugResources FAILED
AGPBI: {"kind":"error","text":"Android resource linking failed","sources":[{}],"original":"ERROR: AAPT: co.tinode.tindroid.app-mergeDebugResources-63:/values/values.xml:7694: error: resource color/purple_500 (aka co.tinode.tindroidx:color/purple_500) not found.\nco.tinode.tindroid.app-mergeDebugResources-63:/values/values.xml:7695: error: resource color/purple_700 (aka co.tinode.tindroidx:color/purple_700) not found.\nco.tinode.tindroid.app-mergeDebugResources-63:/values/values.xml:7698: error: resource color/teal_200 (aka co.tinode.tindroidx:color/teal_200) not found.\nco.tinode.tindroid.app-mergeDebugResources-63:/values/values.xml:7699: error: resource color/teal_700 (aka co.tinode.tindroidx:color/teal_700) not found.\nco.tinode.tindroid.app-mergeDebugResources-63:/values/values.xml:7700: error: resource color/black (aka co.tinode.tindroidx:color/black) not found.\nco.tinode.tindroid.app-mergeDebugResources-63:/values/values.xml:7694: error: resource color/purple_500 (aka co.tinode.tindroidx:color/purple_500) not found.\nco.tinode.tindroid.app-mergeDebugResources-63:/values/values.xml:7695: error: resource color/purple_700 (aka co.tinode.tindroidx:color/purple_700) not found.\nco.tinode.tindroid.app-mergeDebugResources-63:/values/values.xml:7698: error: resource color/teal_200 (aka co.tinode.tindroidx:color/teal_200) not found.\nco.tinode.tindroid.app-mergeDebugResources-63:/values/values.xml:7699: error: resource color/teal_700 (aka co.tinode.tindroidx:color/teal_700) not found.\nco.tinode.tindroid.app-mergeDebugResources-63:/values/values.xml:7700: error: resource color/black (aka co.tinode.tindroidx:color/black) not found.\nco.tinode.tindroid.app-mergeDebugResources-63:/values-night-v8/values-night-v8.xml:62: error: resource color/purple_200 (aka co.tinode.tindroidx:color/purple_200) not found.\nco.tinode.tindroid.app-mergeDebugResources-63:/values-night-v8/values-night-v8.xml:63: error: resource color/purple_700 (aka co.tinode.tindroidx:color/purple_700) not found.\nco.tinode.tindroid.app-mergeDebugResources-63:/values-night-v8/values-night-v8.xml:64: error: resource color/black (aka co.tinode.tindroidx:color/black) not found.\nco.tinode.tindroid.app-mergeDebugResources-63:/values-night-v8/values-night-v8.xml:66: error: resource color/teal_200 (aka co.tinode.tindroidx:color/teal_200) not found.\nco.tinode.tindroid.app-mergeDebugResources-63:/values-night-v8/values-night-v8.xml:67: error: resource color/teal_200 (aka co.tinode.tindroidx:color/teal_200) not found.\nco.tinode.tindroid.app-mergeDebugResources-63:/values-night-v8/values-night-v8.xml:68: error: resource color/black (aka co.tinode.tindroidx:color/black) not found.\nco.tinode.tindroid.app-mergeDebugResources-63:/values-night-v8/values-night-v8.xml:62: error: resource color/purple_200 (aka co.tinode.tindroidx:color/purple_200) not found.\nco.tinode.tindroid.app-mergeDebugResources-63:/values-night-v8/values-night-v8.xml:63: error: resource color/purple_700 (aka co.tinode.tindroidx:color/purple_700) not found.\nco.tinode.tindroid.app-mergeDebugResources-63:/values-night-v8/values-night-v8.xml:64: error: resource color/black (aka co.tinode.tindroidx:color/black) not found.\nco.tinode.tindroid.app-mergeDebugResources-63:/values-night-v8/values-night-v8.xml:66: error: resource color/teal_200 (aka co.tinode.tindroidx:color/teal_200) not found.\n\n    ","tool":"AAPT"}
ERROR: AAPT: co.tinode.tindroid.app-mergeDebugResources-63:/values/values.xml:7694: error: resource color/purple_500 (aka co.tinode.tindroidx:color/purple_500) not found.
co.tinode.tindroid.app-mergeDebugResources-63:/values/values.xml:7695: error: resource color/purple_700 (aka co.tinode.tindroidx:color/purple_700) not found.
co.tinode.tindroid.app-mergeDebugResources-63:/values/values.xml:7698: error: resource color/teal_200 (aka co.tinode.tindroidx:color/teal_200) not found.
co.tinode.tindroid.app-mergeDebugResources-63:/values/values.xml:7699: error: resource color/teal_700 (aka co.tinode.tindroidx:color/teal_700) not found.
co.tinode.tindroid.app-mergeDebugResources-63:/values/values.xml:7700: error: resource color/black (aka co.tinode.tindroidx:color/black) not found.
co.tinode.tindroid.app-mergeDebugResources-63:/values/values.xml:7694: error: resource color/purple_500 (aka co.tinode.tindroidx:color/purple_500) not found.
co.tinode.tindroid.app-mergeDebugResources-63:/values/values.xml:7695: error: resource color/purple_700 (aka co.tinode.tindroidx:color/purple_700) not found.
co.tinode.tindroid.app-mergeDebugResources-63:/values/values.xml:7698: error: resource color/teal_200 (aka co.tinode.tindroidx:color/teal_200) not found.
co.tinode.tindroid.app-mergeDebugResources-63:/values/values.xml:7699: error: resource color/teal_700 (aka co.tinode.tindroidx:color/teal_700) not found.
co.tinode.tindroid.app-mergeDebugResources-63:/values/values.xml:7700: error: resource color/black (aka co.tinode.tindroidx:color/black) not found.
co.tinode.tindroid.app-mergeDebugResources-63:/values-night-v8/values-night-v8.xml:62: error: resource color/purple_200 (aka co.tinode.tindroidx:color/purple_200) not found.
co.tinode.tindroid.app-mergeDebugResources-63:/values-night-v8/values-night-v8.xml:63: error: resource color/purple_700 (aka co.tinode.tindroidx:color/purple_700) not found.
co.tinode.tindroid.app-mergeDebugResources-63:/values-night-v8/values-night-v8.xml:64: error: resource color/black (aka co.tinode.tindroidx:color/black) not found.
co.tinode.tindroid.app-mergeDebugResources-63:/values-night-v8/values-night-v8.xml:66: error: resource color/teal_200 (aka co.tinode.tindroidx:color/teal_200) not found.
co.tinode.tindroid.app-mergeDebugResources-63:/values-night-v8/values-night-v8.xml:67: error: resource color/teal_200 (aka co.tinode.tindroidx:color/teal_200) not found.
co.tinode.tindroid.app-mergeDebugResources-63:/values-night-v8/values-night-v8.xml:68: error: resource color/black (aka co.tinode.tindroidx:color/black) not found.
co.tinode.tindroid.app-mergeDebugResources-63:/values-night-v8/values-night-v8.xml:62: error: resource color/purple_200 (aka co.tinode.tindroidx:color/purple_200) not found.
co.tinode.tindroid.app-mergeDebugResources-63:/values-night-v8/values-night-v8.xml:63: error: resource color/purple_700 (aka co.tinode.tindroidx:color/purple_700) not found.
co.tinode.tindroid.app-mergeDebugResources-63:/values-night-v8/values-night-v8.xml:64: error: resource color/black (aka co.tinode.tindroidx:color/black) not found.
co.tinode.tindroid.app-mergeDebugResources-63:/values-night-v8/values-night-v8.xml:66: error: resource color/teal_200 (aka co.tinode.tindroidx:color/teal_200) not found.








среда, 7 февраля 2024 г. в 20:29:31 UTC+3, Gene:

Gene

unread,
Feb 7, 2024, 4:07:14 PMFeb 7
to Tinode General
On Wednesday, February 7, 2024 at 12:27:38 PM UTC-8 Yofree United wrote:
Thanks for the answer
You are right and perhaps Android Studio creates . ...webp

I've never heard of that.
 
After manually removing all .webp
A new  FAILED has appeared

> Task :app:processDebugResources FAILED
AGPBI: {"kind":"error","text":"Android resource linking failed","sources":[{}],"original":"ERROR: AAPT: co.tinode.tindroid.app-mergeDebugResources-63:/values/values.xml:7694: error: resource color/purple_500 (aka co.tinode.tindroidx:color/purple_500) not found.

The color purple_500 is not mentioned anywhere in Tindroid:

It's a material color. I guess your build.gradle is not the same as the official build.gradle. Or some such mismatch of API versions and/or dependencies.

Yofree United

unread,
Feb 10, 2024, 7:05:15 AMFeb 10
to Tinode General
You are right as always
Thanks for helping me compile
четверг, 8 февраля 2024 г. в 00:07:14 UTC+3, Gene:
Reply all
Reply to author
Forward
0 new messages