About This Ticket

Missing Keystore

by rodlucas / May 17, 2017, 12:28 am

HI trying to configure app however I get the error of missing keystore, I have checked the files and the key .jks file is missing

Staff

Hi,

You need to create unique keystore file for your application. Please follow the steps from following link.  

https://drive.google.com/open?id=1F6a7mPam-sOqRRzO16jJjqD7v32bcZ0tPbO-hsWDnAs

 

 

Hi

That fixed that problem however now when a user tries to add an avatar the app crashes with this error, I have already tried adding the permission listed to the android manifest 

 

Exception java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://media/external/images/media/52 }} to activity {com.rodlucas.lara/com.itobuz.android.awesomechat.profile.ProfileActivity}: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media/52 from pid=6351, uid=10080 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission() 
android.app.ActivityThread.deliverResults (ActivityThread.java:4089
android.app.ActivityThread.handleSendResult (ActivityThread.java:4132
android.app.ActivityThread.-wrap20 (ActivityThread.java) 
android.app.ActivityThread$H.handleMessage (ActivityThread.java:1533
android.os.Handler.dispatchMessage (Handler.java:102
android.os.Looper.loop (Looper.java:154
android.app.ActivityThread.main (ActivityThread.java:6119
java.lang.reflect.Method.invoke (Method.java) 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:886
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:776)
Staff

Hi,

  Check in manifest file user permisstion

If you wanna give read permissions under API 21, you must declare them as:

<uses-permission 
    android:name="android.permission.READ_EXTERNAL_STORAGE"
    android:maxSdkVersion="21" />

IMPORTANT:

This only make sense when you need to give extra permissions because some old api's require permissions that new versions doesn't, so user experience get's improved because you only ask for certain permissions when needed.


So (in this case) the correct way will be:

<uses-permission 
    android:name="android.permission.READ_EXTERNAL_STORAGE" />

 

Please check the package name throughout in the app . Find and replace the package name  com.itobuz.android.awesomechat with com.rodlucas.lara 

Hi,

Tried that, still doesn't seem to work, same error as last time. I also went through and refactored the app so that the package name is com.rodlucas.lara, anything else I can try?

Thank you for your help so far.

Rod Lucas

Staff

Hi ,

I need to check the error which is showing after making above changes. Can you please post the full error with line number? 

Hi, 

It turns out that specific error only occurs when the app is being run in the android studio emulator, so when run on a physical device and with that permission added it runs fine, only thing I did notice was that the app says to the user that they need to confirm their email but no email is sent to the user when they sign up to confirm they own the email, however, emails are sent to the user when they need to reset their password.

Rod