关键字:Android,Eclipse,Debug Certificate expired on
用Eclipse编译的APK默认的Certificate是Debug类型的,Debug类型的证书的有效期限一般是一年。
当我们用Eclipse编译遇到下面的问题时,可以用后面的方法解决。
Error generating final archive: Debug Certificate expired on 10-11-20 下午6:40
The simple solution is to just delete the file “debug.keystore” which is stored in your home directory under “~/.android” (OSX, Linux). A Windows Vista/7 user will find the file in the “C:\Users\<user<\.android folder.
To prevent this brain training procedure for a while a decided to generate a key which lasts 1000 days instead of just the full year. Startup the OSX terminal app or the Linux terminal and go to the “.android” folder. Delete the old certificate file first. Then issue the following command from the command line:
keytool -genkey -keypass android -keystore debug.keystore -alias androiddebugkey -storepass android -validity 1000 -dname “CN=Android Debug,O=Android,C=US”
Now there should be a new certificate file sitting in the folder which lasts 1000 days。
用Eclipse编译的APK默认的Certificate是Debug类型的,Debug类型的证书的有效期限一般是一年。
当我们用Eclipse编译遇到下面的问题时,可以用后面的方法解决。
Error generating final archive: Debug Certificate expired on 10-11-20 下午6:40
The simple solution is to just delete the file “debug.keystore” which is stored in your home directory under “~/.android” (OSX, Linux). A Windows Vista/7 user will find the file in the “C:\Users\<user<\.android folder.
To prevent this brain training procedure for a while a decided to generate a key which lasts 1000 days instead of just the full year. Startup the OSX terminal app or the Linux terminal and go to the “.android” folder. Delete the old certificate file first. Then issue the following command from the command line:
keytool -genkey -keypass android -keystore debug.keystore -alias androiddebugkey -storepass android -validity 1000 -dname “CN=Android Debug,O=Android,C=US”
Now there should be a new certificate file sitting in the folder which lasts 1000 days。