![](/img/trans.png)
[英]Error installing split apks: com.android.ddmlib.InstallException: Failed to finalize session : INSTALL_FAILED_INVALID_APK
[英]error (INSTALL_FAILED_INVALID_APK)
我一直收到此錯誤消息。 你能幫我嗎?
07/20 15:28:03:啟動app $ adb push C:\\ Users \\ La la Meesh \\ Desktop \\ ELM \\ Veery \\ myVeery \\ app \\ build \\ outputs \\ apk \\ app-debug.apk / data / local / tmp / myveery $ adb shell pm install -r“ / data / local / tmp / myveery” pkg:/ data / local / tmp / myveery失敗[INSTALL_FAILED_INVALID_APK]
$ adb shell pm在安裝APK時卸載myveery未知失敗(失敗)錯誤
AndroidMainfest.xml
<!-- To auto-complete the email text field in the login form with the user's emails -->
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.READ_PROFILE" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-feature
android:name="android.hardware.camera"
android:required="true" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:name="myveery"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name=".myVs"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".NewVeery"
android:parentActivityName=".myVs">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".myVs" />
</activity>
<activity
android:name=".LoginActivity"
android:label="@string/title_activity_login"></activity>
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="com.example.android.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths"></meta-data>
</provider>
</application>
這是
build.gradle(模塊:應用)
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "myveery"
minSdkVersion 15
targetSdkVersion 25
multiDexEnabled true
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
} }
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.2.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:design:25.2.0'
compile 'com.github.bumptech.glide:glide:3.7.0'
testCompile 'junit:junit:4.12' }
您正在運行的設備對您的應用程序集的MinSdkVersion滿意嗎 ? 您也可以檢查本機庫支持。 您可以使用一個應用程序以及所有內容,但它們不會為您提供所有CPU架構信息。 對於Android設備,使用簡單的adb命令將為您提供有關設備的所有信息。 例如,通過cmd或終端發出以下命令以查找設備是arm,arm 64還是x86:
adb shell getprop ro.product.cpu.abi
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.