gpt4 book ai didi

android - Zipaligned 应用程序出错

转载 作者:行者123 更新时间:2023-11-30 02:08:59 26 4
gpt4 key购买 nike

应用程序在 zipaligned 之前运行良好。签名后,该应用无法安装在我的手机或平板电脑上。我把它上传到 playstore 。它不显示错误,但支持的设备显示 0。有什么问题吗 ?这是 manifest.xml。

    <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.emapps.easystudy"
android:versionCode="1"
android:versionName="0.6" >

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<uses-feature android:name="android.hardware.screen.portraits" />

<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="22" />

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".StartActivity"
android:label="@string/app_name"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<activity
android:name=".AwardsGrid"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".AwardsGreyGrid"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="screenslide.ScreenSlideActivity"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".MainActivity"
android:screenOrientation="portrait" >
</activity>


<receiver android:name=".Notificationmassage" >
</receiver>
<receiver android:name=".StudyingNotification" >
</receiver>

<activity
android:name=".Setting"
android:label="@string/title_activity_setting"
android:screenOrientation="portrait" >
</activity>
</application>

</manifest>

最佳答案

如果您使用的是 IDE“构建签名的 apk”GUI 功能,则不需要 zipalign,因为最后一步将由 IDE 完成。
如果您使用命令行,请执行以下步骤:Signing manually


Zipalign

Caution: zipalign must only be performed after the .apk file has been signed with your private key. If you perform zipalign before signing, then the signing procedure will undo the alignment. Also, do not make alterations to the aligned package. Alterations to the archive, such as renaming or deleting entries, will potentially disrupt the alignment of the modified entry and all later entries. And any files added to an "aligned" archive will not be aligned.

关于android - Zipaligned 应用程序出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30376021/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com