0

I am trying to test out an Android TV app on my TV. It works in the emulator and I am using Android Studio 0.8.14.

My build.gradle file is:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 21
    buildToolsVersion "21.1.1"

    defaultConfig {
        applicationId "kgibilterra.com.tvgame"
        minSdkVersion 21
        targetSdkVersion 21
        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.android.support:recyclerview-v7:21.0.0'
    compile 'com.android.support:leanback-v17:21.0.0'
    compile 'com.android.support:appcompat-v7:21.0.0'
    compile 'com.squareup.picasso:picasso:2.3.2'
}

I have everything installed in the SDK Manager and in AndroidManifest.xml I have

<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="21"/>

Has anyone else figured this out with AndroidTV specifically?

3
  • I am trying to test out an Android TV app on my TV -- What device is it, specifically?
    – Sebastiano
    Nov 16, 2014 at 20:25
  • ADT-1, it's the dev kit they gave out at Google IO Nov 16, 2014 at 20:54
  • And has your ADT-1 been updated to Lollipop already? Because you may still be running the L preview or a close-to-final Lollipop release. That'd explain the problem.
    – Sebastiano
    Nov 17, 2014 at 6:22

2 Answers 2

1

INSTALL_FAILED_OLDER_SDK you are facing means device you are trying to install your app on, is running lower version than required in your Manifest's android:minSdkVersion. I am almost sure your app is not requiring Lollipop to run, so you need to edit your Manifest and set these values correctly.

See docs: http://developer.android.com/guide/topics/manifest/uses-sdk-element.html

0

change the minSdkVersion value to 19. The issue will solved.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.