How to start developing an application for fire os in the Android studio IDE

I am about to start developing an application for fire TV. I can create an application using Eclipse successfully. But when I try to follow the same procedure to create a new application that is compiled with the Firetv SDK, some Gradle error appeared on android studio. I am stuck on this issue for about a week. ErrorGradle app neame project refresh failed: Unexpected lock protocol found in lock file. Expected 3, found 0. Gradle settings

I searched a lot about this error on google, but cannot get any solution. Sorry for my bad english.

My even magazine says:

Gradle Project update failed 'Test': An unexpected lock protocol was found in the lock file. Expected 3, found 0. Gradle settings My Gradle build

apply plugin: 'android'

android {
    compileSdkVersion 17
    buildToolsVersion "19.0.3"

    defaultConfig {
        minSdkVersion 17
        targetSdkVersion 17
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            runProguard false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
}
+4
4

~/.gradle/ .

!

+6

.

+1

Android Studio → → . . .

0

enter image description here

~/.gradle/folder... ! !

0

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


All Articles