我想重置Android Studio 0.2.13为默认状态.这意味着重置所有设置,删除所有项目,所有gradle文件,以便它像新安装一样.为实现这一目标,我必须遵循哪些步骤?
我只是花了一些时间而没有尝试将现有的android studio项目从gradle 1.8迁移到gradle 1.9 final(已于11月19日发布).
我在这里阅读了大部分其他与gradle相关的帖子,但没有一个对我有用.这里列出了我到目前为止所尝试的内容:
gradle wrapper在项目目录中运行命令来更新包装器build.gradle文件
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.6.+'
}
}
apply plugin: 'android'
repositories {
mavenCentral()
}
android {
compileSdkVersion 19
buildToolsVersion "19.0.0"
defaultConfig {
minSdkVersion 14
targetSdkVersion 16
}
}
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
}
dependencies {
compile 'com.android.support:appcompat-v7:18.0.0'
}
Run Code Online (Sandbox Code Playgroud)
所有这些都以"需要gradle 1.8,将你的gradle-wrapper.properties更改为gradle-1.8-all.zip"错误消息结束.