How to start develop application for fire os in an

2020-03-24 07:03发布

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'])
}

4条回答
你好瞎i
2楼-- · 2020-03-24 07:22

enter image description here

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

查看更多
爱情/是我丢掉的垃圾
3楼-- · 2020-03-24 07:23

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

查看更多
劫难
4楼-- · 2020-03-24 07:37

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

good luck!

查看更多
女痞
5楼-- · 2020-03-24 07:39

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

查看更多
登录 后发表回答