Main forum > GLBasic - en

Android debug certificate has expired!

(1/2) > >>

MrTAToad:
It appears that the Android debug certificate has expired (Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:278: com.android.sdklib.build.ApkCreationException: Debug Certificate expired on 24/04/12 00:28) - this happens in both V10 and the  V11 beta and prevents the debug application from being made, and stops the application being installed on the device.

Kitty Hello:
Yes. I fixed that!!

I did this:

--- Code: GLBasic ---C:\Users\GF\.android>"c:\Program Files (x86)\Java\jdk1.6.0_24\bin\keytool.exe"-genkey -keypass android -keystore debug.keystore -alias androiddebugkey -storepass android -validity 1000 -dname "CN=Android Debug,O=Android,C=US"
 
The file debug.keystore will be created in C:\Users\<username>\.android (which is a hidden directory)

MrTAToad:
I'll try that

Yes, that's fine!

ChristianB:
I tried your solution
And still have problems:
I opened a command prompt as administrator, changed direcory to c:\users\[my current logged in user]\.android
and executed:
"C:\Program Files (x86)\Java\jdk1.6.0_31\bin\keytool.exe" -genkey -keypass android -keystore debug.keystore -alias androiddebugkey -storepass android -validity 1000 -dname "CN=Android debug,O=Android,C=US"

First it complained that the key already existed, sp I removed it with -delete switch and executed:
"C:\Program Files (x86)\Java\jdk1.6.0_31\bin\keytool.exe" -genkey -keypass android -keystore debug.keystore -alias androiddebugkey -storepass android -validity 1000 -dname "CN=Android debug,O=Android,C=US"

When I used the switch -list I can see the key.

When I compile I get following error.


*** Configuration: ANDROID ***
precompiling:
GPC - GLBasic Precompiler V.9.829 SN:86a45f58 - 3D, NET
Wordcount:345 commands
compile+link:
running Android build-script...
BUILD STAGE 1: Compile and pack RELEASE
     [echo] Gathering info for glbasic...
     [echo] Creating output directories if needed...
     [echo] ----------
     [echo] Handling aidl files...
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...
     [echo] No key.store and key.alias properties found in build.properties.
     [echo] Please sign L:\Code\GLBasic\BubblePop\distribute\Android\bin\glbasic-release-unsigned.apk manually
     [echo] and run zipalign from the Android SDK tools.

BUILD SUCCESSFUL
Total time: 5 seconds
.
BUILD STAGE 2: Build DEBUG and install on device
     [echo] Gathering info for glbasic...
     [echo] Creating output directories if needed...
     [echo] ----------
     [echo] Handling aidl files...
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...
     [echo] Debug Package: L:\Code\GLBasic\BubblePop\distribute\Android\bin\glbasic-debug.apk
     [echo] Installing L:\Code\GLBasic\BubblePop\distribute\Android\bin\glbasic-debug.apk onto default emulator or device...

BUILD FAILED
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:1100: The following error occurred while executing this line:
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:1114: exec returned: 1

ChristianB:
Problem solved, it worked after restart of phone....

Navigation

[0] Message Index

[#] Next page

Go to full version