android开发打包签名出现-failed to export application的解决思路
2015-05-06 20:35
417 查看
在app发布到应用平台的时候需要打包签名,这个时候会遇到一些头疼的事情,比如打包失败会出现failed to export application错误等。我这里就给大家讲一下我的深刻体会。本文为什么说是思路而不是解决方法呢?因为一千个读者就有一千个哈姆雷特,不同的adt环境会出现各种奇葩的问题,所以我不敢保证解决所有打包失败的问题,之体提供给大家一种解决问题的思路。仅供参考。
1、查看错误详情,根据详情搜索错误码的原因
打包时候出现 failed to export application 不要慌,如果可以查看详情,也就是see details 那还好办点,这个时候点击去查看详情,总会有错误提示,然后进行google或者上stackoverflow找找,比如下面这个问题
http://stackoverflow.com/questions/8506781/failed-to-export-android-application-eclipse
或者 http://stackoverflow.com/questions/9098684/android-failed-to-export-application-with-error-1073741819
2、根据log日志中的错误提示去搜索或者修改
这些问题都可以搜得到,但是如果没有查看详细错误的时候怎么办?不要慌,你可以直接找log查看
log就再你的工作空间---workspace的.metadata文件中
如图
在log中的排序是按照时间一直往下累计的。所以只需要找到最后的那条log
比如
!MESSAGE Product adtproduct could not be found.
!ENTRY org.eclipse.egit.ui 2 0 2015-05-06 20:06:44.913
!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
this system level configuration. The Git installation location can be configured on the
Team > Git > Configuration preference page's 'System Settings' tab.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
!ENTRY org.eclipse.egit.ui 2 0 2015-05-06 20:06:44.918
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\ydzy_'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
!ENTRY org.eclipse.ui 2 2 2015-05-06 20:08:20.327
!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
!ENTRY org.tigris.subversion.subclipse.core 4 -6 2015-05-06 20:08:39.031
!MESSAGE Could not remove D:\wo_2015_2_26\SmokerTreasure\bin\dexedLibs\ShareSDK-Core-2.5.7-4ded32aebe63ec39c806e661b9a56f1d.jar
!STACK 0
java.lang.IllegalStateException: Could not remove D:\wo_2015_2_26\SmokerTreasure\bin\dexedLibs\ShareSDK-Core-2.5.7-4ded32aebe63ec39c806e661b9a56f1d.jar
at org.tigris.subversion.subclipse.core.resourcesListeners.RevertResourceManager$RevertWorkspaceJob.revertResources(RevertResourceManager.java:65)
at org.tigris.subversion.subclipse.core.resourcesListeners.RevertResourceManager$RevertWorkspaceJob.runInWorkspace(RevertResourceManager.java:85)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
比如出现Export Wizard Error等字样,你可以查看 具体的原因或者google
1、查看错误详情,根据详情搜索错误码的原因
打包时候出现 failed to export application 不要慌,如果可以查看详情,也就是see details 那还好办点,这个时候点击去查看详情,总会有错误提示,然后进行google或者上stackoverflow找找,比如下面这个问题
http://stackoverflow.com/questions/8506781/failed-to-export-android-application-eclipse
或者 http://stackoverflow.com/questions/9098684/android-failed-to-export-application-with-error-1073741819
2、根据log日志中的错误提示去搜索或者修改
这些问题都可以搜得到,但是如果没有查看详细错误的时候怎么办?不要慌,你可以直接找log查看
log就再你的工作空间---workspace的.metadata文件中
如图
在log中的排序是按照时间一直往下累计的。所以只需要找到最后的那条log
比如
!MESSAGE Product adtproduct could not be found.
!ENTRY org.eclipse.egit.ui 2 0 2015-05-06 20:06:44.913
!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
this system level configuration. The Git installation location can be configured on the
Team > Git > Configuration preference page's 'System Settings' tab.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
!ENTRY org.eclipse.egit.ui 2 0 2015-05-06 20:06:44.918
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\ydzy_'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
!ENTRY org.eclipse.ui 2 2 2015-05-06 20:08:20.327
!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
!ENTRY org.tigris.subversion.subclipse.core 4 -6 2015-05-06 20:08:39.031
!MESSAGE Could not remove D:\wo_2015_2_26\SmokerTreasure\bin\dexedLibs\ShareSDK-Core-2.5.7-4ded32aebe63ec39c806e661b9a56f1d.jar
!STACK 0
java.lang.IllegalStateException: Could not remove D:\wo_2015_2_26\SmokerTreasure\bin\dexedLibs\ShareSDK-Core-2.5.7-4ded32aebe63ec39c806e661b9a56f1d.jar
at org.tigris.subversion.subclipse.core.resourcesListeners.RevertResourceManager$RevertWorkspaceJob.revertResources(RevertResourceManager.java:65)
at org.tigris.subversion.subclipse.core.resourcesListeners.RevertResourceManager$RevertWorkspaceJob.runInWorkspace(RevertResourceManager.java:85)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
比如出现Export Wizard Error等字样,你可以查看 具体的原因或者google
相关文章推荐
- 解决android调试是出现:Re-installation failed due to different application signatures
- android运行时出现Re-installation failed due to different application signatures时,解决办法
- Android开发笔记(2)启动模拟器出现错误"Failed to allocate memory: 8"的解决方法
- android 打包签名时出现Conversion to Dalvik format failed with error 1
- android打包签名时出现conversion to Dalvik format failed with error 1错误
- 解决Android开发中在调试模式下运行一个程序后出现Application (xxx) is waiting for the debugger to attach
- android 打包签名时出现Conversion to Dalvik format failed
- android开发中出现“Failed to create the Java Virtual Machine”时的解决方法
- 打包失败Failed to export application 之完美解决办法
- Android签名打包出现Export aborted because fatal lint errors were found的解决
- android 打包签名时出现Conversion to Dalvik format failed with error 1
- android 打包签名时出现Conversion to Dalvik format failed
- android 打包签名时出现Conversion to Dalvik format failed
- Android Studio出现Failed to pull selection: open failed: Permission denied的解决思路
- idea上使用maven分模块开发时解决spring注入失败问题java.lang.IllegalStateException: Failed to load ApplicationContext
- Android Studio出现Failed to open zip file问题的解决方法
- Android Studio出现Failed to open zip file. Gradle's dependency cache may be corrupt问题的解决
- androidstudio签名打包之后apk安装不上,adb报错Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]的原因及解决方法
- Android出现“Conversion to Dalvik format failed with error 1”的几种情况及解决办法
- Android Studio出现Failed to open zip file问题的解决方法