繁体   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