严重的Android Studio更新问题

时间:2015-05-30 06:24:55

标签: 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.com/knownissues/encoding">More Info...</a><br><a href="open.encodings.settings">Open File Encoding Settings</a>

和,

This version of the rendering library is more recent than your version of Android Studio. Please update Android Studio

我已尝试卸载 - 重新安装它已经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:以下问题仍然存在:
[img]http://i.imgur.com/yXNX2TT.png[/img]

编辑3:从MNC更改为Android Lollipop后 enter image description here

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

3 个答案:

答案 0 :(得分:1)

出于任何原因,Android Studio会在windows-1252中生成项目,但IDE中的IDE仍然是UTF-8。 您可以在文件中更改它 - &gt;设置 - &gt;编辑 - &gt;文件编码 - &gt;项目编码;就像韦斯顿在最后一个答案中说的那样。

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

答案 1 :(得分:0)

虽然不是问题的解决方案,但我一次又一次尝试卸载 - 重新安装Android 1.1.2,1.2。然后我尝试了尝试Android 1.1。现在,一切都很完美 所以,我想说的是,有这个问题的人现在可能不得不依赖Android Studio 1.1。我发布它告诉你这个过程中涉及的一个棘手的步骤。如果安装了Android 1.2.1或1.2,则在卸载后删除以下文件夹,

重新安装Android 1.1之前

<Your-current-PC-user-Name>/.AndroidStudio/.AndroidStudio11.2/.gradle否则问题仍将存在。

答案 2 :(得分:0)

当你看到这个:

Issue

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

Alter File Encodings