Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Serious Android Studio update issues

I had been working on Android Studio version 1.1. 2-3 days before, it asked for update to 1.2. I thought it was gonna get all the better. But, now I am facing the following problems:

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>

and,

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

I have tried uninstalling-reinstalling it like 7 time already but problems don't go away. I have never messed up with Android Studio settings.

Why is this happening? and What should I do to resolve it? I am just enough desperate that I was gonna Format my computer but thats a mammoth task so I am asking here.

P.S: I tried changing the encoding but nothing works. Thanks.

EDIT 1 : Following Sandspy's advice build.gradle contains the following with no support library.

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'
}

EDIT 2: Here is the problem still persisting:
[img]http://i.imgur.com/yXNX2TT.png[/img]

EDIT 3: After changing from MNC to Android Lollipop.
enter image description here

EDIT 4: I guess I am gonna download the 1.2 stable binary and not update until 1.3 stable is released. If anyone solves this problem concretely please post the solution here.

like image 266
Manish Kumar Sharma Avatar asked Nov 09 '22 12:11

Manish Kumar Sharma


1 Answers

For any reason, Android Studio generates the projects in windows-1252 enconding, but the IDE enconding still being UTF-8. You can change it in File -> Settings -> Editor -> File encoding -> Project Encoding; like weston said in the last answer.

For reference, the same issue was answered in this sites:

  • https://stackoverflow.com/a/30012572
  • http://tools.android.com/knownissues/encoding
  • http://forums.bignerdranch.com/viewtopic.php?f=396&t=9107&start=20
like image 175
Ernesto Vega Avatar answered Nov 14 '22 23:11

Ernesto Vega