Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle build failing due to keystore.properties file missing

I'm trying to use this alarm app on Android Studio - https://github.com/philliphsu/ClockPlus . However, gradle build is failing (error message below). Please let me know what needs to be fixed for this to work.

Error:/Users/***/Documents/Apps/ClockPlus-master/keystore.properties (No such file or directory). Let me know what exactly is this keystore.properties and is it possible to create this file as it's not available in the github repo files.

like image 334
lovetocode Avatar asked Feb 27 '18 12:02

lovetocode


People also ask

Where is key properties in Android Studio?

Our key. properties file is in flutter_app/android/key. properties .


1 Answers

what exactly is this keystore.properties?

When you want to publish your app in the google play, you need to sign your app. When you create a signing configuration,Android Studio ,by default, adds your signing information in plain text to the module's build.gradle files. If you are working with a team or open-sourcing your code, you should move this sensitive information out of the build files so it is not easily accessible to others. To do this, you should create a separate properties file to store secure information and refer to that file in your build files. That file is the keystore properties file.

Read more about this

Is it possible to create this file as it's not available in the github repo files?

Create a file named keystore.properties in the root directory of your project. This file should contain your signing information, as follows:

    storePassword=myStorePassword
    keyPassword=mykeyPassword
    keyAlias=myKeyAlias
    storeFile=myStoreFileLocation

If you do not have store password, key password etc. you should sign your app.

Read more about this

The whole information about this is in the Android Developer documentation, in the link I provided above.

like image 142
Uriel Frankel Avatar answered Sep 23 '22 08:09

Uriel Frankel