Through the toss, finally put Unity3d demo release Android (problem)

Source: Internet
Author: User

As long as there are two more problems with egg pain:

1.

Error Generating final Archive:debug certificate expired on * * * *

The literal understanding is caused by the expiration of the debug certificate.

Android apps must be digitally signed by a developer's own self-signed certificate before they can be installed on Android. In the development debugging phase, by default, the ADT helper helps us to sign the APK file, using the default debug version of the signature file.

After installation, the Android SDK generates a debug signing certificate that is saved in the Debug.keystore file. ADT uses this certificate to digitally sign each generated application (application). Unfortunately, the validity period for each debug certificate is 365 days, so there will inevitably be a problem with the certificate expiring. And the Android SDK is more rigid, found that the certificate expired, will not give you a new, will only give you the error hint.
Under Windows System, this debug certificate is stored under the C:/Documents and Settings/administrator/.android directory. Looked at, found that the date of modification of this certificate is November 9, 2009, almost a year ago, just for a while did not use the Android SDK, this time the use of this problem.
The workaround is simple: Remove the debug.keystore directly. Android SDK found Debug.keystore lost, will be generated from a new one. Run the SDK again, everything is fine.

2.

Error building player:win32exception:applicationname= ' D:/android/android-sdk-windows-1.6_r1\tools\zipalign.exe ', Commandline= ' 4 "C:\Users\Administrator.OTCITZ1YGXVV59Z\Documents\New Unity Project 1\temp/stagingarea/package_ unaligned.apk "" C:\Users\Administrator.OTCITZ1YGXVV59Z\Documents\New Unity Project 1\temp/stagingarea/package.apk " ', currentdirectory= ' Temp/stagingarea '

Found under the D:/android/android-sdk-windows-1.6_r1\tools\ directory does not zipalign.exe this executable file, literally should be packaged only with

I found it in the D:\android\android-sdk-windows-1.6_r1\build-tools\20.0.0 directory, copy it to the previous directory, again released on OK ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.