I just used android studio to develop, and there was such an error when running the program
Failure [INSTALL_FAILED_OLDER_SDK]
Solution: Check the build.gradle file:
apply plugin: ‘com.android.application’
android { compileSdkVersion 21 buildToolsVersion "22.0.0" defaultConfig { applicationId "com.aitwx.tab" minSdkVersion 19 targetSdkVersion 21 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:21.0.3' }
It is found that minSdkVersion is 19, and the mobile phone version I installed is lower than 19, so an error is reported, which can be modified to 8.
Similar Posts:
- [Solved] Execution failed for task ‘:app:mergeDebugResources’
- Android Stdio Compile project report Error:Failed to find target with hash string ‘android-24
- android unity Error: your hardware does not support this application,sorry!
- Lint found fatal errors while assembling a release target [How to Solve]
- Solution of no debuggable applications after Android monitor connects devices in Android studio
- To solve the version compatibility problem of support library: the support package has a red underline when it is introduced
- [Solved] Duplicate class com.blankj.utilcode.BuildConfig found in modules classes.jar
- [Solved] Version 28 (intended for Android Pie and below) is the last version of the legacy support library
- AndroidStudio 3: How to Export Jar File
- AndroidStudio Error:Failed to resolve: com.android.support:appcompat-v7:29