【发布时间】: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