问题描述
我将开始为 fire TV 开发应用程序,我可以成功地使用 Eclipse 创建一个应用程序,但是当我尝试相同的过程来创建使用 Firetv SDK 编译的新应用程序时,在 android studio 上出现了一些 Gradle 错误..我被卡住了这个问题大约一周.错误是 Gradle app neame project refresh failed:在锁定文件中发现意外的锁定协议.预期为 3,发现为 0.Gradle 设置
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 solutionSorry for my bad English.
我的偶数日志说:
Gradle 'Test' 项目刷新失败:在锁定文件中发现意外的锁定协议.预期为 3,发现为 0.摇篮设置我的构建 gradle
Gradle 'Test' project refresh failed: Unexpected lock protocol found in lock file. Expected 3, found 0. Gradle settingsMy 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'])
}
推荐答案
我的情况,删除 ~/.gradle/
突然又一切正常了.
My case, delete ~/.gradle/
and suddenly all working well again.
祝你好运!
这篇关于如何在 android studio IDE 中开始为 fire os 开发应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!