簡體   English   中英

創建簽名APK時出錯

[英]Error during creation of signed apk

我正在使用一個已經上線的應用程序,現在我在其中添加了新功能。添加新功能后我試圖創建一個簽名的apk,但它在現有模塊上顯示錯誤,但是現有模塊在實時創建簽名的apk從舊模塊中獲取錯誤時,錯誤的原因是什么?我需要知道如何為修改后的項目創建簽名的apk

E:\updated one\Wed Studio\app\src\main\AndroidManifest.xml:842: Error: The <activity> element must be a direct child of the <application> element [WrongManifestParent]
            <activity
            ^
E:\updated one\Wed Studio\app\src\main\AndroidManifest.xml:845: Error: The <activity> element must be a direct child of the <application> element [WrongManifestParent]
            <activity
            ^

   Explanation for issues of type "WrongManifestParent":
   The <uses-library> element should be defined as a direct child of the
   <application> tag, not the <manifest> tag or an <activity> tag. Similarly,
   a <uses-sdk> tag much be declared at the root level, and so on. This check
   looks for incorrect declaration locations in the manifest, and complains if
   an element is found in the wrong place.

好吧,在SOF中提問時,您應該更加具體。 根據評論交流,您的項目中沒有任何編譯時/運行時錯誤,但仍無法為項目導出簽名的apk。

這是此處討論的一種有線情況, Android導出被中止這可能是由於項目中的棉絨錯誤,您可以在“問題”視圖或“棉絨警告”視圖中簽入。

如果是這樣,要解決問題:

項目->屬性,

找到Android Lint首選項,在右上角單擊配置工作區設置...->取消單擊“導出應用程序時運行完整錯誤檢查”,應用完成。

要么

窗口>首選項> Android>棉絨錯誤檢查

取消選中導出應用程序時運行完整的錯誤檢查

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM