There is no debug.keystore in .android folder

2019-01-10 05:01发布

Someone I'm helping with an application needs to locate her debug.keystore - mine is in my .android folder, but when I navigate there on her computer it is not there.

Does something need to be done in order for it to appear? Where is it / how can it be generated again?

7条回答
Explosion°爆炸
2楼-- · 2019-01-10 05:34

I don't know how it work magically! I deleted my debug.keystore, build my project again and look for debug.keystore in default location ~/.android/debug.keystore, din't find debug.keystore.

Again build project and look for debug.keystore, no luck!

Then I open eclipse go to Windows -> Preferences,Select Android -> Build See Default debug keystore: "Path".

Now again looked for debug.keystore in default location ~/.android/debug.keystore, found debug.keystore. Tried so many times, it worked.

查看更多
【Aperson】
3楼-- · 2019-01-10 05:42

If she is using Eclipse then go to Windows -> Preferences

Select Android -> Build

There you will see Default debug keystore: "Path"

See if you can locate it there.

查看更多
不美不萌又怎样
4楼-- · 2019-01-10 05:44

try this....it will generate the file debug.keystore to

C:/

for all versions of Windows

keytool -genkey -v -keystore C:/debug.keystore -alias androiddebugkey -storepass android -keypass android -keyalg RSA -keysize 2048 -validity 999999 -dname "CN=Android Debug,O=Android,C=US"
查看更多
对你真心纯属浪费
5楼-- · 2019-01-10 05:49

The debug.keystore is created automatically on first build that uses it.

查看更多
forever°为你锁心
6楼-- · 2019-01-10 05:51

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"
查看更多
Juvenile、少年°
7楼-- · 2019-01-10 05:56

You can create keystore using this command..

keytool -genkey -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android -keyalg RSA -keysize 2048 -validity 10000 -dname "CN=Android Debug,O=Android,C=US"

查看更多
登录 后发表回答