[INSTALL_FAILED_OLDER_SDK] failed to install Android Wear app

I followed the instructions in this link to create a simple mobile / wearable application in Android Studio. However, trying to start it, I get the error message "Failure [INSTALL_FAILED_OLDER_SDK]". My problem seems to be similar to this link , however, unlike this user, the reddit post associated with it does not contain any information that helped me (this was mostly suggested by adding tools <uses-sdk: node = "replace" / "> in the android manifest, but the Android studio didn’t like the tools." My build.gradle files are exactly the same as in the above. I just updated Android Studio today (0.8.2) and installed all the necessary SDKs. Many people get this error, but mine is unique in that I am focused on Wear material and not related to Android L. Any q appreciated Thank you!

+3
source share
2 answers

I believe that I have an answer here . Basically, instead of deploying to the phone, as the instructions say, you should enable Bluetooth debugging and deploy it directly to the watch.

+1
source

Make these changes to the build.gradle file in the wear module

compileSdkVersion 20 targetSdkVersion 20

Thus, the final wear / build.gradle content will look like this:

apply plugin: 'com.android.application' android { compileSdkVersion 20 buildToolsVersion "20.0.0" defaultConfig { applicationId "your package name" 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:+' } 
0
source

Source: https://habr.com/ru/post/971981/


All Articles