创建签名apk时出错

时间:2015-09-10 05:46:16

标签: android android-layout android-fragments

我正在使用已经处于活动状态的应用程序。现在我已经在其中添加了新功能。我在添加新功能后尝试创建已签名的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.

1 个答案:

答案 0 :(得分:0)

好吧,在SOF中提问时你应该更具体一点。根据评论的沟通,在您的项目中,您的项目中没有任何编译时/运行时错误,但仍无法为项目导出已签名的apk。

这是此处讨论的有线情况Android Export aborted这可能是因为项目中的lint错误可以检入&#34;问题&#34;查看,或者&#34; Lint警告&#34;图。

如果是这样,要解决问题:

  

项目 - &gt;特性,

     

找到Android Lint偏好设置,在右上角单击配置   工作区设置... - &gt; unlick&#34;导出时运行完整的错误检查   app&#34;,申请完成。

  

窗口&gt;偏好设置&gt; Android&gt; Lint错误检查

     

取消选中导出应用时运行完整错误检查