When deploying the wear version of the included Hello, World watch application in Android Studio, I get this error: Error [INSTALL_FAILED_OLDER_SDK]
Update: Removing information about an attempted hacked version of L from a Reddit post, as this is not a solution for me, and this may have created more confusion.
mobile / build.gradle
apply plugin: 'com.android.application' android { compileSdkVersion 20 buildToolsVersion "20.0.0" defaultConfig { applicationId "com.example.erikbabel.myapplication" minSdkVersion 15 targetSdkVersion 20 versionCode 1 versionName "1.0" } buildTypes { release { runProguard false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) wearApp project(':wear') compile 'com.android.support:appcompat-v7:19.+' compile 'com.google.android.gms:play-services-wearable:+' }
clothes / build.gradle
apply plugin: 'com.android.application' android { compileSdkVersion 20 buildToolsVersion "20.0.0" defaultConfig { applicationId "com.example.erikbabel.myapplication" minSdkVersion 20 targetSdkVersion 20 versionCode 1 versionName "1.0" } buildTypes { release { runProguard false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.google.android.support:wearable:+' compile 'com.google.android.gms:play-services-wearable:+' }
Everything else is untouched from the new draft directions . I work on my Moto Ultra 4.4 and LG G watches.
source share