Rocket.chat.reactnative: Android gradle sync failed on single-server

Created on 21 Dec 2020  路  5Comments  路  Source: RocketChat/Rocket.Chat.ReactNative

Description:

Android gradle sync and also yarn android failed on single-server branch with error:

A problem occurred evaluating project ':app'.
> No signature of method: build_9su1sax1oamyt1xqgxd00k8ze.android() is applicable for argument types: (build_9su1sax1oamyt1xqgxd00k8ze$_run_closure1) values: [build_9su1sax1oamyt1xqgxd00k8ze$_run_closure1@7710e97e]

It's work with master branch but I have this issue with single-server

Most helpful comment

Change line 146 of /android/app/build.gradle (single-server branch)

from

versionCode VERSIONCODE

to

versionCode VERSIONCODE as Integer

Fixed it for me

All 5 comments

Change line 146 of /android/app/build.gradle (single-server branch)

from

versionCode VERSIONCODE

to

versionCode VERSIONCODE as Integer

Fixed it for me

project is totally messed up not working

@arsalan-arshad If you have an issue, please report it.
I'm marking your comment as disruptive, because I won't tolerate this kind of behaviour.

@arsalan-arshad If you have an issue, please report it.
I'm marking your comment as disruptive, because I won't tolerate this kind of behaviour.

i follow all the points from docs

npx react-native run-android --variant=experimentalPlayRelease

not working throwing this error
Task 'experimentalPlayRelease' not found in project ':app'.

@arsalan-arshad Can you open a new issue?
Your question might not be related to this one.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ggazzo picture ggazzo  路  6Comments

LeeThompson picture LeeThompson  路  4Comments

Perflyst picture Perflyst  路  5Comments

jacotec picture jacotec  路  5Comments

venkatasubramanis picture venkatasubramanis  路  5Comments