Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to start develop application for fire os in android studio IDE

I am going to start develop application for fire TV i can create an application using Eclipse successfully, But when i try the same procedure to create new application which compile with Firetv SDK got some Gradle error on android studio.. i am stuck with this issues for around one week. The error is Gradle app neame project refresh failed: Unexpected lock protocol found in lock file. Expected 3, found 0. Gradle settings

I searched lot about this error in google but cant get any solution Sorry for my bad English.

My even log says:

Gradle 'Test' project refresh failed: Unexpected lock protocol found in lock file. Expected 3, found 0. Gradle settings My build gradle

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'])
}
like image 590
Rakki s Avatar asked Mar 19 '23 20:03

Rakki s


2 Answers

My case, delete ~/.gradle/ and suddenly all working well again.

good luck!

like image 87
dklt Avatar answered Apr 06 '23 18:04

dklt


Invalidate Caches And Restart Also Works. Try It Out By Going To File and selecting Invalidate caches and restart

like image 22
Devam03 Avatar answered Apr 06 '23 17:04

Devam03