I recently upgraded Gradle, created a new project, and ran it in the simulator, only to find an error that could not be installed.
Installation failed due to invalid APK file
Check the LogCat log and get the error message from the Couldn’t Load memtrack Module.
The simulator is 8.0-API-26 and the gradle configuration is
Installation failed due to invalid APK file
Check the LogCat log and get the error message from the Couldn’t Load memtrack Module.
The simulator is 8.0-API-26 and the gradle configuration is
compileSdkVersion 28
buildToolsVersion "28.0.3"
defaultConfig {
applicationId "my.study"
minSdkVersion 19
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
By comparison, I found that api-28 corresponds to an android9 system, while my emulator is an android8 system. The mismatch here leads to the failure of installation.
Modify targetSdkVersion=26 in Gradle configuration
compileSdkVersion 28
buildToolsVersion "28.0.3"
defaultConfig {
applicationId "my.study"
minSdkVersion 19
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
Problem solving.
Read More:
- Failed to initialize nvml driver / library version mismatch due to automatic update of NVIDIA driver
- Android installation failed due to invalid URI
- Installation failed with message Failed to finalize session : INSTALL_FAILED_INVALID_APK
- In the XML configuration file of spring jdbc.properties The connection to the database failed due to garbled code
- HTTP Error 401.1 – Unauthorized:Access is denied due to invalid credentials
- Cannot read configuration file due to insufficient permissions
- Oracle can’t start the database due to deleting DBF file by mistake
- Apache failed to start due to SSL library certificate has expired
- Word failed to convert PDF, export failed due to an unexpected error
- Failed to load SELinux policy. Freezing due to modification of SELinux by centos7
- KAFKA – ERROR Failed to write meta.properties due to (kafka.server.BrokerMetadataCheckpoint)
- The solution cannot be separated due to a special separator
- IE8: this operation cannot be completed due to error 80020101
- Could not install packages due to anenvironment error: [winerror 5] access denied
- Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package
- ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing…..
- Git authentication failure solution, due to the problem of password modification
- excel VBA: Could not complete due to error 800a0011
- Installation failed with message Invalid File
- Error c2259 cannot instance abstract class due to following members