markpairdha / WhatsApp-Clone

Android Chat Application that's developed using Android Studios & Firebase.Supports 1-1 chat,Group chats including sharing of Media(docs,images & contacts) & deleting a message too!
MIT License
117 stars 50 forks source link

Unable to build in android 4.2.2 #12

Open kunalvaibhav opened 3 years ago

kunalvaibhav commented 3 years ago

android studio unable to load app from source code, no gradle option is available, no make/build available.

please provide steps to build and run this app. Git_WhatsappClone_NotWorkingIssue

gnongsiej commented 2 years ago

Don't import the root directory. Import only the "WhatsApp" directory.

kunalvaibhav commented 2 years ago

It is not simply buildable. project has many build issues and resource file missing. Sync done by upgrading gradle, managing additional resources etc. but it is still failing due to error in code image

gnongsiej commented 2 years ago

Try this pull request : #13 .

Alternatively, you can use my fork : gnongsiej/WhatsApp-Clone

The build issues are fixed. But there are some things that need to be done in order to make it work -- mainly integration with Firebase.

gnongsiej commented 2 years ago

@kunalvaibhav : Did that help?

kunalvaibhav commented 2 years ago

sadly no, I used gnongsiej/WhatsApp-Clone and got android studio version error thrown. I am using Android studio 4.2.2 image

image

gnongsiej commented 2 years ago

I am using the latest version which is available on the site: 2020.3.1. Maybe try that.

I'm sorry but I cannot downgrade to 4.2.2 now.

kunalvaibhav commented 2 years ago

First of all Thanks @gnongsiej. I upgraded Android studio to latest version 2020.3.1 patch 4. Able to sync your fork https://github.com/gnongsiej/WhatsApp-Clone but installation failed due to below error: Algorithm HmacPBESHA256 not available (debug.keystore: Integrity check failed: java.security.NoSuchAlgorithmException: Algorithm HmacPBESHA256 not available)

is keystore file missing or I need to generate it? and what about about Algo error?

gnongsiej commented 2 years ago

I obviously did not include my keystore. You will need to generate your own certificate and add it to the keystone. If I am not mistaken, it is part of the setup for Firebase things. Basically, you need a certificate to communicate to your Firebase instance.

The algorithm error is probably dependent on how Firebase sets up the certificate to use.