Error generating final archive: Debug Certificate expired on编译错误
出现Error generating final archive:
Debug Certificate expired on这样的编译错误是由于新版的 android sdk 调试key有1年的试用期限制,
如果当年电脑的Android SDK安装了一年后会出现这样的问题,解决的方法只需要删除早期的key文件即可,
系统默认的key文件在Eclipse的Window菜单的Preferences => Android => Build菜单下其中Default debug keystore可以看到。
比如Android123当前使用的Windows XP系统下为可能为 C:\Documents and Settings\用户名\.android\debug.keystore,
只需要删除debug.keystore文件即可,Eclipse的ADT插件会在下次编译时自动生成一个调试版的密钥使用期限仍然为1年,
但手机上一定别忘了删除老版本的程序,否则会提示Re-installation failed due to different application signatures这样的签名不问错误。
--------------------------------------------------
导入Android工程提示The project was not built since its build path is incomplete
部分网友下载的Android工程,导入到Eclipse时提示The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project的提示,这样的错误一般是Java的JRE没有正确加载,当然了对于Android来说相关的SDK库也没有正确加载,解决的方法很简单,通过Google推荐的Android项目导入方法即可解决,
如下:在Eclipse菜单的File=>New=>Project选择Android=>Android Project 这一步时,选择Create project from existing source选项,这样设置Location为你要导入Android项目的路径即可。
---------------------------------------------
xmlns:android的作用
xmlns:android是一个XML命名空间,告诉 Android开发工具你准备使用Android命名空间里的一些通用属性。在所有Android XML设计文件中最外层的标记必须使用这个树形。
它可以提示你输入什么,不该输入什么,什么是对的,什么是错的,也可以理解为语法文件。或者语法判断器什么的。
出现Error generating final archive:
Debug Certificate expired on这样的编译错误是由于新版的 android sdk 调试key有1年的试用期限制,
如果当年电脑的Android SDK安装了一年后会出现这样的问题,解决的方法只需要删除早期的key文件即可,
系统默认的key文件在Eclipse的Window菜单的Preferences => Android => Build菜单下其中Default debug keystore可以看到。
比如Android123当前使用的Windows XP系统下为可能为 C:\Documents and Settings\用户名\.android\debug.keystore,
只需要删除debug.keystore文件即可,Eclipse的ADT插件会在下次编译时自动生成一个调试版的密钥使用期限仍然为1年,
但手机上一定别忘了删除老版本的程序,否则会提示Re-installation failed due to different application signatures这样的签名不问错误。
--------------------------------------------------
导入Android工程提示The project was not built since its build path is incomplete
部分网友下载的Android工程,导入到Eclipse时提示The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project的提示,这样的错误一般是Java的JRE没有正确加载,当然了对于Android来说相关的SDK库也没有正确加载,解决的方法很简单,通过Google推荐的Android项目导入方法即可解决,
如下:在Eclipse菜单的File=>New=>Project选择Android=>Android Project 这一步时,选择Create project from existing source选项,这样设置Location为你要导入Android项目的路径即可。
---------------------------------------------
xmlns:android的作用
xmlns:android是一个XML命名空间,告诉 Android开发工具你准备使用Android命名空间里的一些通用属性。在所有Android XML设计文件中最外层的标记必须使用这个树形。
它可以提示你输入什么,不该输入什么,什么是对的,什么是错的,也可以理解为语法文件。或者语法判断器什么的。
01
02
03
04
05
06
07
08
|
<?xml version=
"1.0"
encoding=
"utf-8"
?>
<TextView xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@+id/text"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:gravity=
"center_vertical|center_horizontal"
android:text=
"translucent_background"
/>
|
01
02
03
04
05
06
07
|
<?xml version=
"1.0"
encoding=
"utf-8"
?>
<manifest xmlns:android=
"http://schemas.android.com/apk/res/android"
package
=
"org.com.fblife"
android:versionCode=
"1"
android:versionName=
"1.0"
>
......
</manifest>
|