4

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'])
}
yole
  • 92,896
  • 20
  • 260
  • 197
Rakki s
  • 1,426
  • 1
  • 18
  • 42
  • Can you please post your build.gradle file? Also, could you post more of the log output for this error? The more detail you can provide the easier it is to identify the problem. Thank-you. – AndroidGuy Apr 21 '14 at 15:36
  • @AndroidGuy i have added the information above . I just create new application which compile with fire tv sdk not working but if i create same application with compile api 17 mean it works ... so my problem is in fire tv sdk. – Rakki s Apr 22 '14 at 05:00

4 Answers4

6

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

good luck!

dklt
  • 1,703
  • 1
  • 12
  • 12
1

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

Devam03
  • 141
  • 1
  • 7
0

Just go to Android Studio -> File -> Close project. After closing the project,reopen it afresh. This solved the problem for me.

mungaih pk
  • 1,809
  • 8
  • 31
  • 57
0

enter image description here

I couldn't understand about ~/.gradle/ folder... but now I got it and solved! delete here folder!

user2458645
  • 103
  • 1
  • 11