cometchat / cometchat-sample-app-react-native

Voice & Video Calling and Text Chat App for React Native
https://www.cometchat.com
Other
328 stars 158 forks source link

Cannot build Android App - No version of NDK matched #65

Closed majirosstefan closed 1 year ago

majirosstefan commented 2 years ago

Describe the problem

No version of NDK matched the requested version 21.0.6113669.

Screen Shot 2022-08-31 at 6 06 36 PM

What was the expected behavior?

I can run the example app.

Currently I need to edit app/build.gradle manually like this so the build will proceed:

Screen Shot 2022-08-31 at 6 14 42 PM

Reproduction

yarn install
yarn android

Environment

I am using M1 Macbook with Java 11, Android Studio Chipmunk - 2021.2.1 Patch 2 trying to run the example app in this repo

cometchat-helpcenter-bot commented 2 years ago

Mayur (CometChat Team) replied:

Hi there,

You can simply remove the following line ndkVersion = "21.4.7075529" from the build.gradle file and try to run the project. This would use the ndk version which you have locally installed on your system.

Hope this helps.

Mayur Bhandari CometChat

cometchat-helpcenter-bot commented 2 years ago

Mayur (CometChat Team) replied:

Hi there,

Can you please let us know if you were able to resolve the issue by removing the ndkVersion from the build gradle file ?

Mayur Bhandari CometChat