Create a project with Eclipse in Ubuntu and compile it incorrectly

Source: Internet
Author: User
Ubuntu with Eclipse new project and compilation, the following error prompt: [2011-12-11:23:06-MyOpenGLES] Errorgeneratingfinalarchive: Debugcertificateexpiredon11-2-05! Cause Analysis: Android requires that all programs have signatures; otherwise, the program will not be installed. In the development process, ADT

The following error message is displayed when you use Eclipse to create and compile a project in Ubuntu:
[11:23:06-MyOpenGLES] Error generating final archive: Debug certificate expired on 11-2-05 am!

Cause analysis:
Android requires that all programs have signatures; otherwise, the program will not be installed.

During development, ADT uses debug. keystore,
In the Eclipse menu [Window]-> [Preferences]-> [Android]-> [Build]-> "Default debug keystore"
The debug. keystore file in the path shown in has expired.

Debug. keystore is valid for one year by default. If you develop android programs from a year ago,
After one year, the debug. keystore expired, causing you to fail to generate the apk file.

Solution:
You only need to delete debug. keystore and ddms. cfg, and the system will generate a debug. keystore valid for one year,
In the Eclipse menu [Project]-> [clean], clear the Project and re-compile it.

Create a custom keystore:
[File]-> [Export...]-> "Export android application" under "Androd"->
"Select the project to export"-> "Keystore selection", Select "Create new keystore", and then add as prompted!

Related Article

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.