Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/190.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
严重的Android Studio更新问题_Android_Android Studio_Auto Update - Fatal编程技术网

严重的Android Studio更新问题

严重的Android Studio更新问题,android,android-studio,auto-update,Android,Android Studio,Auto Update,我一直在开发Android Studio 1.1版。2-3天前,它要求更新到1.2。我以为会好起来的。但是,现在我面临以下问题: Warning:The project encoding (windows-1252) does not match the encoding specified in the Gradle build files (UTF-8). This can lead to serious bugs. <a href="http://tools.android

我一直在开发Android Studio 1.1版。2-3天前,它要求更新到1.2。我以为会好起来的。但是,现在我面临以下问题:

Warning:The project encoding (windows-1252) does not match the encoding specified in the Gradle build files (UTF-8).
This can lead to serious bugs.
<a href="http://tools.android.com/knownissues/encoding">More Info...</a><br><a href="open.encodings.settings">Open File Encoding Settings</a>
我已经尝试过7次卸载和重新安装,但问题并没有消失。我从未弄乱过Android Studio的设置。

为什么会这样?我该怎么解决这个问题呢?我当时正准备格式化我的电脑,但这是一项艰巨的任务,所以我在这里发问。

p.S:我尝试更改编码,但没有效果。 谢谢。

编辑1:遵循Sandspy的建议
build.gradle
包含以下内容,但没有支持库。

apply plugin: 'com.android.application'

android {
    compileSdkVersion 22
    buildToolsVersion "22.0.1"

    defaultConfig {
        applicationId "com.example.mankum93.geoquiz"
        minSdkVersion 15
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:22.2.0'
}
编辑2:问题仍然存在:

编辑3:从MNC改为Android棒棒糖后。


编辑4:我想我会下载1.2稳定二进制文件,直到1.3稳定版本发布后才会更新。如果有人具体解决了这个问题,请在这里发布解决方案。

虽然不是问题的解决方案,但我已经尝试过一次又一次地卸载并重新安装Android 1.1.2、1.2。然后我尝试了安卓1.1。现在,一切都很顺利。
所以,我的意思是,有这个问题的人现在可能不得不依赖Android Studio 1.1。我发布它是为了告诉你这个过程中涉及的一个棘手的步骤。如果您安装了Android 1.2.1或1.2,卸载后,请删除以下文件夹,

重新安装Android 1.1之前,请先安装.AndroidStudio或
/.AndroidStudio11.2
/.gradle
,否则问题将持续存在。

当您看到以下情况时:

单击打开文件编码设置并从windows-1252更改为UTF-8:


无论出于何种原因,Android Studio都会以windows-1252加密方式生成项目,但IDE加密方式仍然是UTF-8。 可以在文件->设置->编辑器->文件编码->项目编码中进行修改;就像韦斯顿在最后的回答中说的

作为参考,本网站回答了相同的问题:


检查此项。同样的问题。@Shvet:第一个问题已经过去,但第二个问题仍然存在。最新的SDK工具是24.3,它需要为android studio进行新的更新。@Shvet:我在使用ADT插件时玩得很开心。
apply plugin: 'com.android.application'

android {
    compileSdkVersion 22
    buildToolsVersion "22.0.1"

    defaultConfig {
        applicationId "com.example.mankum93.geoquiz"
        minSdkVersion 15
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:22.2.0'
}