Where is debug.keystore in Android Studio
EDIT
Step 1) Go to File > Project Structure > select project > go to "signing" and select your default or any keystore you want and fill all the details. In case you are not able to fill the details, hit the green '+' button. I've highlighted in the screenshot.
Step 2) VERY IMPORTANT: Goto Build Types> select your build type and select your "Signing Config". In my case, I've to select "config". Check the highlighted region.
How to change the debug.keystore location in Android Studio?
You can specify the keystore location in your app's build.gradle file like:
android {
signingConfigs {
debug {
storeFile file("/root/.android/debug.keystore")
}
}
}
Oculus Quest 2 Android Studio 'android.debug.keystore' not found error
Finally got the code to run. Here's what I did:
Install Jave SE Development Kit 17.0.1.
Open Command Prompt and enter the following:
cd C:\Program Files\Java\jdk-17.0.1\bin
keytool.exe -genkey -v -keystore android.debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000
The file android.debug.keystore will be created in the directory cd
C:\Program Files\Java\jdk-17.0.1\bin. Move android.debug.keystore
file to the appropriate directory. For me, it was
*C:\Users\thisUser\Downloads\OculusMobileSDK\VrSamples\VrCubeWorld_Framework\Projects\Android*In Android Studio, go to
File-Settings-Build,Execution,Deployment-Build Tools-Gradle. In
Gradle settings, change Gradle JDK to version 15. For me, I had to
download and use corretto-15 Amazon version.
How to copy the debug.keystore file?
Option a)
You can make everyone on your team use the same signing key for debug builds.
I like this solution because when testing you can easily update already installed apps from your colleagues (because the signatures match).
1. Make a prepro keystore
Copy one of your debug keystores in your project root directory. Debug keystore is typically located in ~/.android/debug.keystore
. Let's name the copy prepro.keystore
.
2. Make a prepro signing config
In your app module build.gradle create a new signing config that's using the keystore from step 1.
android {
signingConfigs {
prepro {
storeFile rootProject.file("prepro.keystore")
storePassword "android"
keyAlias "androiddebugkey"
keyPassword "android"
}
}
}
Note the passwords and key alias for all debug keystores.
3. Use the prepro signing config
Make all your debug builds use this new signing config.
android {
buildTypes {
debug {
signingConfig signingConfigs.prepro
}
}
}
Notes
You can name your new signing config anything except debug
and release
.
is it safe to do so
Putting a key in Git is OK as long as it's a key intended for development.
Option b)
Add your colleagues' debug key signatures to the project Google console. Then apps built by them will be able to use Google APIs such as Maps.
More info here: https://developers.google.com/maps/documentation/android-api/signup#getting-the-certificate-information-yourself
I guess it's also encrypted in some way that you can't just view it using cat command.
Correct, see the link above.
Location of debug keystore in Android Studio, does it exist?
As described here in the documentation: http://developer.android.com/tools/publishing/app-signing.html
You can find the debug keystore in $HOME/.android/debug.keystore
Android Studio - debug keystore
It is at the same location: ~/.android/debug.keystore
Where is the debug.keystore on Mac?
The Mono for Android debug.keystore
file is in $HOME/.local/share/Xamarin/Mono for Android
. (Yes, there are spaces in that directory name.)
There is no debug.keystore in .android folder
According to the documentation, performing a build in Eclipse or using ant debug
should automatically generate ~/.android/debug.keystore
.
But in case this doesn't work, you can create one manually by running:
keytool -genkey -v -keystore ~/.android/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"
Related Topics
Playing an Arbitrary Tone With Android
Check If Application Is Installed - Android
How to Download Google Play Services in an Android Emulator
Error Inflating Class Android.Support.Design.Widget.Navigationview
Listen to Volume Buttons in Background Service
Communication Between Activity and Service
Disabling the Fullscreen Editing View for Soft Keyboard Input in Landscape
How to Implement Android Pull-To-Refresh
Show Image View from File Path
Animate Change of View Background Color on Android
Android - Android.View.Inflateexception: Binary Xml File Line #8: Error Inflating Class Fragment
No Resource Found That Matches the Given Name '@Style/Theme.Appcompat.Light'
How to Pass a Variable from Activity to Fragment, and Pass It Back