我开发了一个应用程序,这个应用程序有2个版本。当在旧版本上安装新版本应用程序时,它显示应用程序未安装。
我的清单:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:allowBackup="true"
android:icon="@drawable/smsbox_2_logo"
android:label="@string/app_name"
android:largeHeap="true"
android:screenOrientation="portrait"
android:theme="@style/AppTheme">
<activity
android:name=".activities.Main_Page"
android:label="@string/app_name"
android:screenOrientation="portrait"></activity>
<activity
android:name=".activities.addSMS_Page"
android:label="@string/title_activity_new_sms"
android:screenOrientation="portrait" />
<activity
android:name=".activities.ShowSMS_Page"
android:label="@string/title_activity_show_sms__page"
android:screenOrientation="portrait" />
<activity
android:name=".activities.MySMS_Page"
android:label="@string/title_activity_my_sms__page"
android:screenOrientation="portrait" />
<activity
android:name=".activities.Fav_Page"
android:label="@string/title_activity_fav__page"
android:screenOrientation="portrait" />
<activity
android:name=".activities.login_Page"
android:label="@string/title_activity_login__page"
android:screenOrientation="portrait"></activity>
<activity
android:name=".activities.register_Page"
android:label="@string/title_activity_register__page"></activity>
<activity
android:name=".activities.category_Page"
android:label="@string/title_activity_register__page"></activity>
<activity
android:name=".activities.category_select_Page"
android:label="@string/title_activity_register__page"></activity>
<activity
android:name=".activities.about_Page"
android:label="@string/title_activity_about__page"></activity>
<activity
android:name=".activities.setting_Page"
android:label="@string/title_activity_setting__page"></activity>
<activity
android:name="com.tellfa.smsbox.activities.splash_Page"
android:label="@string/title_activity_splash__page">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".activities.connectus_Page"
android:label="@string/title_activity_connectus__page"></activity>
</application>
</manifest>
Build.Gradle代码:
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "com.tellfa.smsbox"
minSdkVersion 14
targetSdkVersion 22
versionCode 10
versionName "2.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
如何解决?
答案 0 :(得分:2)
只需卸载旧版应用程序,然后安装新版本
答案 1 :(得分:1)
您可能使用了不同的密钥库文件,需要卸载该应用并重新安装
答案 2 :(得分:0)
在mainfest中设置最小和目标Sdk版本
答案 3 :(得分:0)
两个版本的密钥库应该相同。在这种情况下,您必须卸载以前的版本并重新安装新版本将解决此问题。或使用相同的密钥库