【问题标题】:Serious Android Studio update issues严重的 Android Studio 更新问题
【发布时间】:2015-05-30 06:24:54
【问题描述】:

我一直在开发 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:这是仍然存在的问题:

编辑 3: 从 MNC 更改为 Android Lollipop 后。

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

【问题讨论】:

  • stackoverflow.com/questions/30012529/… 检查这个。同样的问题。
  • @Shvet : 第一个问题已经消失,但第二个问题仍然存在
  • 最新的 SDK 工具是 24.3,需要对 android studio 进行新的更新。
  • @Shvet : 我用 ADT 插件玩得很开心。

标签: android android-studio auto-update


【解决方案1】:

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

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

【讨论】:

    【解决方案2】:

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

    &lt;Your-current-PC-user-Name&gt;/.AndroidStudio/.AndroidStudio11.2/.gradle在重新安装Android 1.1之前,否则问题仍然存在。

    【讨论】:

      【解决方案3】:

      当你看到这个时:

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

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2023-03-18
        • 2016-09-30
        • 2016-01-25
        • 1970-01-01
        • 2017-03-03
        • 1970-01-01
        • 2016-06-09
        • 1970-01-01
        相关资源
        最近更新 更多