gpt4 book ai didi

java - 安装失败,并显示消息 INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

转载 作者:行者123 更新时间:2023-12-01 09:38:55 27 4
gpt4 key购买 nike

我在安装应用程序时遇到奇怪的问题。如果我在 Android 5.0 版本及更高版本上安装应用程序,则应用程序将安装并正常工作。但如果我在 4.4 或 4.2 等较低版本上安装应用程序,那么在安装时会出现此错误。 Getting error while installing app

经过大量 RND 之后,我发现如果您的包名称包含大写字母,那么您会收到此类错误,但在我的包名称中没有大写字母。以下是我的 list 文件代码:-` 包=“com.aznimo”>

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
////////////////
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />

<permission
android:name="com.example.gcm.permission.C2D_MESSAGE"
android:protectionLevel="signature" />

<uses-permission android:name="com.example.gcm.permission.C2D_MESSAGE" />

<application
android:name="Comman.MyApplication"
android:allowBackup="true"
android:hardwareAccelerated="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="@string/app_id" />

<activity
android:name=".Splash_Screen"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@style/AppTheme"
android:windowSoftInputMode="stateHidden">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".Login_Screen"
android:label="@string/title_activity_login__screen"
android:screenOrientation="portrait"
android:theme="@style/AppTheme"
android:windowSoftInputMode="stateHidden|adjustResize" />
<activity
android:name=".Signup_Screen"
android:label="@string/title_activity_signup__screen"
android:screenOrientation="portrait"
android:theme="@style/AppTheme"
android:windowSoftInputMode="stateHidden|adjustResize" />
<activity
android:name=".Forgot_Password"
android:label="@string/title_activity_forgot__password"
android:screenOrientation="portrait"
android:theme="@style/AppTheme"
android:windowSoftInputMode="stateHidden|adjustResize" />
<activity
android:name="com.facebook.FacebookActivity"
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:label="@string/app_name"
android:theme="@android:style/Theme.Translucent.NoTitleBar" />

<provider
android:name="com.facebook.FacebookContentProvider"
android:authorities="com.facebook.app.FacebookContentProvider922739857843448"
android:exported="true" />

<activity
android:name=".Privacy_Policy_Screen"
android:label="@string/title_activity_privacy__policy__screen"
android:screenOrientation="portrait"
android:theme="@style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Home_Screen"
android:label="@string/title_activity_home__screen"
android:screenOrientation="portrait"
android:theme="@style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Product_View_All"
android:screenOrientation="portrait"
android:theme="@style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Category_List_Screen"
android:screenOrientation="portrait"
android:theme="@style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Product_detail"
android:screenOrientation="portrait"
android:theme="@style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".GalleryActivity"
android:screenOrientation="portrait"
android:theme="@style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".You_Tube_Screen"
android:screenOrientation="landscape"
android:theme="@style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Profile_Screen"
android:screenOrientation="portrait"
android:theme="@style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Edit_Profile_Screen"
android:screenOrientation="portrait"
android:theme="@style/AppTheme"
android:windowSoftInputMode="stateHidden|adjustResize">
<intent-filter>
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />

<data
android:host="t4jsample"
android:scheme="oauth" />
</intent-filter>
</activity>
<activity
android:name=".New_Address_Screen"
android:screenOrientation="portrait"
android:theme="@style/AppTheme"
android:windowSoftInputMode="stateHidden|adjustResize" />
<activity
android:name=".Twitter_Webview_Screen"
android:screenOrientation="portrait"
android:theme="@style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Address_List_Screen"
android:screenOrientation="portrait"
android:theme="@style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Order_List_Screen"
android:screenOrientation="portrait"
android:theme="@style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Order_Detail_Screen"
android:screenOrientation="portrait"
android:theme="@style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Search_Screen"
android:screenOrientation="portrait"
android:theme="@style/AppTheme"
android:windowSoftInputMode="stateAlwaysVisible" />
<activity
android:name=".Cart_Screen"
android:screenOrientation="portrait"
android:theme="@style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Delivery_Screen"
android:screenOrientation="portrait"
android:theme="@style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Payment_Confirmation_Screen"
android:screenOrientation="portrait"
android:theme="@style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Payment_Method_Screen"
android:screenOrientation="portrait"
android:theme="@style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".New_Address_Screen_Map"
android:screenOrientation="portrait"
android:theme="@style/AppTheme"
android:windowSoftInputMode="stateHidden" />
/////////////
<receiver
android:name="com.google.android.gms.gcm.GcmReceiver"
android:exported="true"
android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />

<category android:name="com.aznimo" />
</intent-filter>
</receiver>

<service
android:name=".PushNotificationService"
android:exported="false">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
</intent-filter>
</service>
<!--
Optionally, register AnalyticsReceiver and AnalyticsService to support background
dispatching on non-Google Play devices
-->
<receiver
android:name="com.google.android.gms.analytics.AnalyticsReceiver"
android:enabled="true">
<intent-filter>
<action android:name="com.google.android.gms.analytics.ANALYTICS_DISPATCH" />
</intent-filter>
</receiver>

<service
android:name="com.google.android.gms.analytics.AnalyticsService"
android:enabled="true"
android:exported="false" />

<!--
Optionally, register CampaignTrackingReceiver and CampaignTrackingService to enable
installation campaign reporting
-->
<receiver
android:name="com.google.android.gms.analytics.CampaignTrackingReceiver"
android:exported="true">
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>

<service android:name="com.google.android.gms.analytics.CampaignTrackingService" />

<!--
The API key for Google Maps-based APIs is defined as a string resource.
(See the file "res/values/google_maps_api.xml").
Note that the API key is linked to the encryption key used to sign the APK.
You need a different API key for each encryption key, including the release key that is used to
sign the APK for publishing.
You can define the keys for the debug and release targets in src/debug/ and src/release/.
-->
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="@string/google_maps_key" />


</application>

`

我什至在 logcat 部分没有收到任何错误。任何人都可以告诉我问题是什么或者我做错了什么。提前致谢。

最佳答案

至少这会导致“明显格式错误”错误:

<application
android:name="Comman.MyApplication"

如果应用程序类名包含 .,则将其视为完全限定的包名称。包部分必须以 az 之间的小写字母开头,而您的则以大写字母 C 开头。

请参阅PackageParser source对于安装可能因“ list 格式错误”而失败的各种方式。在这种情况下,从 buildClassName() 返回 null解析 application 元素时。

关于java - 安装失败,并显示消息 INSTALL_PARSE_FAILED_MANIFEST_MALFORMED,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38607440/

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