溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

android開(kāi)發(fā)打包簽名出現(xiàn)-failed to export application的解決思路

發(fā)布時(shí)間:2020-05-26 04:28:16 來(lái)源:網(wǎng)絡(luò) 閱讀:4383 作者:poarry 欄目:移動(dòng)開(kāi)發(fā)

       在app發(fā)布到應(yīng)用平臺(tái)的時(shí)候需要打包簽名,這個(gè)時(shí)候會(huì)遇到一些頭疼的事情,比如打包失敗會(huì)出現(xiàn)failed to export application錯(cuò)誤等。我這里就給大家講一下我的深刻體會(huì)。本文為什么說(shuō)是思路而不是解決方法呢?因?yàn)橐磺€(gè)讀者就有一千個(gè)哈姆雷特,不同的adt環(huán)境會(huì)出現(xiàn)各種奇葩的問(wèn)題,所以我不敢保證解決所有打包失敗的問(wèn)題,之體提供給大家一種解決問(wèn)題的思路。僅供參考。

 

1、查看錯(cuò)誤詳情,根據(jù)詳情搜索錯(cuò)誤碼的原因

      打包時(shí)候出現(xiàn) failed to export application 不要慌,如果可以查看詳情,也就是see details 那還好辦點(diǎn),這個(gè)時(shí)候點(diǎn)擊去查看詳情,總會(huì)有錯(cuò)誤提示,然后進(jìn)行g(shù)oogle或者上stackoverflow找找,比如下面這個(gè)問(wèn)題

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、根據(jù)log日志中的錯(cuò)誤提示去搜索或者修改

這些問(wèn)題都可以搜得到,但是如果沒(méi)有查看詳細(xì)錯(cuò)誤的時(shí)候怎么辦?不要慌,你可以直接找log查看

log就再你的工作空間---workspace的.metadata文件中

如圖

android開(kāi)發(fā)打包簽名出現(xiàn)-failed to export application的解決思路

在log中的排序是按照時(shí)間一直往下累計(jì)的。所以只需要找到最后的那條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)


比如出現(xiàn)Export Wizard Error等字樣,你可以查看 具體的原因或者google



向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI