Помогите скомпилировать андроид версию / Help compiling android version

294 views
Skip to first unread message

Swim United

unread,
Aug 10, 2022, 6:23:54 AM8/10/22
to Tinode General
Hello I'm new just learning Tried to compile https://github.com/tinode/tindroid.git didn't work
Mistakes...

Tried two options
https://github.com/tinode/tindroid/archive/refs/heads/master.zip
1 Via gradlew.bat inside archive
2 Via Android studio

Error one
Build file '....\StudioProjects\tindroid\app\build.gradle' line: 9

A problem occurred evaluating project ':app'.
> C:\Users\....\StudioProjects\tindroid\keystore.properties (�� ������� ����� ��������� ����)

Привет я новичок только учусь Пробовал скомпилировать https://github.com/tinode/tindroid.git не получилось
Ошибки ...

Пробовал два варианта
https://github.com/tinode/tindroid/archive/refs/heads/master.zip
1 Через gradlew.bat внутри архива
2 Через Аndroid studio

Ошибка одна
Build file '....\StudioProjects\tindroid\app\build.gradle' line: 9

A problem occurred evaluating project ':app'.
> C:\Users\...\StudioProjects\tindroid\keystore.properties (�� ������� ����� ��������� ����)

Gene Sokolov

unread,
Aug 10, 2022, 9:38:26 AM8/10/22
to tin...@googlegroups.com
Apparently you did not create keystore.properties as explained in the app/build.gradle. Please read the stackoverflow link provided there.

--
You received this message because you are subscribed to the Google Groups "Tinode General" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tinode+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tinode/0587bad6-cfb6-4acb-ad69-fdd2d5743306n%40googlegroups.com.

Swim United

unread,
Aug 10, 2022, 5:56:54 PM8/10/22
to Tinode General
Thank you received app-debug.apk Which does not work The application closes immediately on startup with an error
Спасибо получил app-debug.apk Который не работает Приложение при запуске сразу закрывается с ошибкой

What did I do before / Что мне пришлось сделать 
1.
A problem occurred evaluating project ':app'.
> C:\Users\....\StudioProjects\tindroid\keystore.properties

Created a keystore.properties file with the text: / Создал файл keystore.properties с текстом:
storePassword=my.keystore
keyPassword=key_password
keyAlias=my_key_alias
storeFile=store_file

2. 
Execution failed for task ':app:processDebugGoogleServices'.
> File google-services.json is missing. The Google Services Plugin cannot function without it.
   Searched Location:
...\StudioProjects\tindroid\app\src\debug\google-services.json
 ....\StudioProjects\tindroid\app\src\google-services.json
 .....\StudioProjects\tindroid\app\google-services.json
* 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
Created tindroid\app empty google-services.json file / Создал tindroid\app пустой файл google-services.json

3.
Execution failed for task ':app:processDebugGoogleServices'.
> Malformed root json

tindroid\app\build.gradle
line 2 //apply plugin: 'com.google.gms.google-services'

Please tell me what did you do wrong? Why is the app not working? / Подскажите пожалуйста что не правильно сделал ? Почему приложение не работает ?

среда, 10 августа 2022 г. в 16:38:26 UTC+3, Gene:

Gene

unread,
Aug 10, 2022, 7:19:26 PM8/10/22
to Tinode General
On Wednesday, August 10, 2022 at 2:56:54 PM UTC-7 Swim United wrote:
Thank you received app-debug.apk Which does not work The application closes immediately on startup with an error
Спасибо получил app-debug.apk Который не работает Приложение при запуске сразу закрывается с ошибкой

What did I do before / Что мне пришлось сделать 
1.
A problem occurred evaluating project ':app'.
> C:\Users\....\StudioProjects\tindroid\keystore.properties

Created a keystore.properties file with the text: / Создал файл keystore.properties с текстом:
storePassword=my.keystore
keyPassword=key_password
keyAlias=my_key_alias
storeFile=store_file

2. 
Execution failed for task ':app:processDebugGoogleServices'.
> File google-services.json is missing. The Google Services Plugin cannot function without it.

Swim United

unread,
Aug 11, 2022, 10:24:02 AM8/11/22
to Tinode General
Tell me please / Подскажите пожалуйста
How to deal with it? / Как с этим поступить? 

 Task :app:uploadCrashlyticsMappingFileRelease FAILED
Execution failed for task ':app:uploadCrashlyticsMappingFileRelease'.
> Failed to calculate the value of task ':app:uploadCrashlyticsMappingFileRelease' property 'googleServicesResourceRoot'.
   > Could not get unknown property 'intermediateDir' for task ':app:processReleaseGoogleServices' of type com.google.gms.googleservices.GoogleServicesTask.



четверг, 11 августа 2022 г. в 02:19:26 UTC+3, Gene:

Gene

unread,
Aug 11, 2022, 12:01:32 PM8/11/22
to Tinode General
On Thursday, August 11, 2022 at 7:24:02 AM UTC-7 Swim United wrote:
Tell me please / Подскажите пожалуйста
How to deal with it? / Как с этим поступить? 

 Task :app:uploadCrashlyticsMappingFileRelease FAILED
Execution failed for task ':app:uploadCrashlyticsMappingFileRelease'.
> Failed to calculate the value of task ':app:uploadCrashlyticsMappingFileRelease' property 'googleServicesResourceRoot'.
   > Could not get unknown property 'intermediateDir' for task ':app:processReleaseGoogleServices' of type com.google.gms.googleservices.GoogleServicesTask.

Please try searching for answers first: 

Swim United

unread,
Aug 12, 2022, 5:10:29 AM8/12/22
to Tinode General
Thanks, I managed to get app-release.apk versions 0.19.3 and 0.20.0rc-1
It is very reminiscent of dancing with a tambourine. Not everything is as smooth as we would like.

Further not on this topic is the question of organization. There is a list of broken functionality.
For example, which can work on the web, but not in the mobile application (android). I wanted to understand, is this relevant for developers?

....

Спасибо у меня получилось получить app-release.apk 0.19.3 и 0.20.0rc-1 версий
Довольно напоминает танцы с бубном Не так все гладко как хотелось бы 

Дальше не по этой теме вопрос по организации. Есть список неработающего функционала. 
Например который может работать в вебе но не в мобильном приложении (android). Хотелось понять это актуально разработчикам ?


четверг, 11 августа 2022 г. в 19:01:32 UTC+3, Gene:

Gene

unread,
Aug 12, 2022, 12:40:50 PM8/12/22
to Tinode General
On Friday, August 12, 2022 at 2:10:29 AM UTC-7 Swim United wrote:
Thanks, I managed to get app-release.apk versions 0.19.3 and 0.20.0rc-1
It is very reminiscent of dancing with a tambourine. Not everything is as smooth as we would like.

You are welcome to fix it. Looking forward to your pull requests.
 
Further not on this topic is the question of organization. There is a list of broken functionality.
For example, which can work on the web, but not in the mobile application (android). I wanted to understand, is this relevant for developers?

You are saying you created such a list? Please post it here. Thanks.

Yofree United

unread,
Aug 24, 2022, 4:55:58 AM8/24/22
to Tinode General
When I compile, there are errors, but I don’t understand what’s wrong?

Android studio......
Gradle sync failed: For input string: ""
Executing tasks: [clean] in project G:\tindroid-next

Starting Gradle Daemon...
Gradle Daemon started in 1 s 335 ms

FAILURE: Build failed with an exception.

* Where:
Build file 'G:\tindroid-next\build.gradle' line: 52

* What went wrong:
A problem occurred evaluating root project 'tindroid-next'.
> For input string: ""


* 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.
....
------------------------------------------------------------------------

I fix it with my hands file 'G:\tindroid-next\build.gradle'

static def gitVersionCode() {
def process = "git rev-list --count HEAD".execute()
return 20//process.text.toInteger()
}

static def gitVersionName() {
def process = "git describe --tags".execute()
// Remove trailing CR and remove leading 'v' as in 'v1.2.3'
return '20rc'//process.text.trim().substring(1)
}

Am I doing something wrong?

Gene

unread,
Aug 24, 2022, 2:39:10 PM8/24/22
to Tinode General
I would guess that you are building the app in a folder without a git repo. See what is returned by executing

git rev-list --count HEAD

It should return a number.

Message has been deleted

Gene

unread,
Mar 26, 2023, 1:52:10 PM3/26/23
to Tinode General
There is no '/layout/dialog_add_credential.xml' in 'https://github.com/tinode/tindroid/tree/v0.22.0/app/src/main/res/layout'.
I'm not sure what you are building.

On Sunday, March 26, 2023 at 1:44:48 AM UTC-7 Yofree United wrote:
error compiling 
condole android studio 

> Task :app:mergeReleaseNativeDebugMetadata NO-SOURCE

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:processReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
   > Android resource linking failed
     co.tinode.tindroid.app-main-58:/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.



* 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.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:bundleReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.Aapt2ProcessResourcesRunnable
   > Android resource linking failed
     co.tinode.tindroid.app-main-58:/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.



* 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 1m 55s
63 actionable tasks: 63 executed
     error: failed linking file resources.



Yofree United

unread,
Mar 29, 2023, 5:44:28 AM3/29/23
to Tinode General

There is no '/layout/dialog_add_credential.xml' in 'https://github.com/tinode/tindroid/tree/v0.22.0/app/src/main/res/layout'.
I'm not sure what you are building.

Thanks for the quick response, problem solved 
Reply all
Reply to author
Forward
0 new messages