title: Android studio : Installation did not succeed. The application could not be installed: INSTALL_FAILED_OLDER_SDK
body: <p>I've made a modification in my code by adding a second activity and now I have this error :</p>
  <pre><code>01/20 07:14:24: Launching 'app' on 10.1  WXGA (Tablet) API 26.
      Installation did not succeed. The application could not be installed:
      INSTALL_FAILED_OLDER_SDK
      List of apks: [0]
      'C:\Users\Moi\Desktop\EscapeGameSTW\app\build\outputs\apk\debug\app-debug.apk'
      The application's minSdkVersion is newer than the device API level.
  </code></pre>
  <p>The AndroidiManifest.xml</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      package=&quot;com.example.myapplication&quot;&gt;
  
      &lt;uses-permission android:name=&quot;android.permission.WAKE_LOCK&quot; /&gt;
  
      &lt;uses-feature android:name=&quot;android.hardware.type.watch&quot; /&gt;
  
  
  
      &lt;application
          android:allowBackup=&quot;true&quot;
          android:icon=&quot;@mipmap/ic_launcher&quot;
          android:label=&quot;@string/app_name&quot;
          android:roundIcon=&quot;@mipmap/ic_launcher_round&quot;
          android:supportsRtl=&quot;true&quot;
          android:theme=&quot;@style/Theme.AppCompat.NoActionBar&quot;&gt;
          &lt;uses-library
              android:name=&quot;com.google.android.wearable&quot;
              android:required=&quot;true&quot; /&gt;
  
          &lt;!--
                 Set to true if your app is Standalone, that is, it does not require the handheld
                 app to run.
          --&gt;
          &lt;meta-data
              android:name=&quot;com.google.android.wearable.standalone&quot;
              android:value=&quot;true&quot; /&gt;
  
          &lt;activity
              android:name=&quot;.MainActivity&quot;
              android:screenOrientation=&quot;landscape&quot;&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name=&quot;android.intent.action.MAIN&quot; /&gt;
  
                  &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  <p>The build.gradle file</p>
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 29
  
      defaultConfig {
          applicationId &quot;com.example.myapplication&quot;
          minSdkVersion 27
          targetSdkVersion 29
          versionCode 1
          versionName &quot;1.0&quot;
  
          testInstrumentationRunner &quot;androidx.test.runner.AndroidJUnitRunner&quot;
      }
  
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      implementation fileTree(dir: &quot;libs&quot;, include: [&quot;*.jar&quot;])
      implementation 'androidx.appcompat:appcompat:1.2.0'
      implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
      implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
      implementation 'androidx.legacy:legacy-support-v4:1.0.0'
      implementation 'com.google.android.material:material:1.2.1'
      implementation 'androidx.navigation:navigation-fragment:2.3.1'
      implementation 'androidx.navigation:navigation-ui:2.3.1'
      implementation 'androidx.wear:wear:1.0.0'
      testImplementation 'junit:junit:4.12'
      androidTestImplementation 'androidx.test.ext:junit:1.1.2'
      androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
      compileOnly 'com.google.android.wearable:wearable:2.5.0'
  
  }
  </code></pre>
  <p>The deviceSDK I have to use is API26.</p>
  <p>I've deleted the modifications, but the error still occurs.
  I've tried to change the compileSdkVersion to 26
  How can I resume this error ?</p>
  <p>Thanks every body.</p>